Skip to content

Avoid ICE when suggestion span is at Eof - #62995

Merged
bors merged 2 commits into
rust-lang:masterfrom
estebank:issue-62973
Jul 29, 2019
Merged

Avoid ICE when suggestion span is at Eof#62995
bors merged 2 commits into
rust-lang:masterfrom
estebank:issue-62973

Conversation

@estebank

Copy link
Copy Markdown
Contributor

Fix#62973.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @varkor

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 25, 2019
@estebank

Copy link
Copy Markdown
ContributorAuthor

Fun:

tidy error: /checkout/src/test/ui/parser/issue-62973.rs: too many trailing newlines (3)
tidy error: /checkout/src/test/ui/parser/issue-62973.rs: ignoring trailing whitespace unnecessarily

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@estebank
estebankforce-pushed the issue-62973 branch 2 times, most recently from 49754fc to b2aa095CompareJuly 26, 2019 01:31
@rust-highfive

This comment has been minimized.

@dwrensha

Copy link
Copy Markdown
Contributor

For what it's worth, here is a way to trigger the bug with fewer trailing newlines: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=4cce30e8d42e50ab4eb2a3efe1b2c5b0

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@varkor

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Jul 28, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit 6263eb4 has been approved by varkor

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 28, 2019
Centril added a commit to Centril/rust that referenced this pull request Jul 28, 2019
@CentrilCentril mentioned this pull request Jul 28, 2019
bors added a commit that referenced this pull request Jul 28, 2019
Rollup of 8 pull requests
Successful merges:
- #61856 (Lint attributes on function arguments)
- #62360 (Document that ManuallyDrop::drop should not called more than once)
- #62392 (Update minifier-rs version)
- #62871 (Explicit error message for async recursion.)
- #62995 (Avoid ICE when suggestion span is at Eof)
- #63053 (SystemTime docs: recommend Instant for elapsed time)
- #63081 (tidy: Cleanup the directory whitelist)
- #63088 (Remove anonymous_parameters from unrelated test)
Failed merges:
r? @ghost
@bors
bors merged commit 6263eb4 into rust-lang:masterJul 29, 2019
@estebank
estebank deleted the issue-62973 branch November 9, 2023 05:19
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE on "byte index 1 is out of bounds of ``"

5 participants

@estebank@rust-highfive@dwrensha@varkor@bors