-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix overlapping spans in removing extra arguments #108239
Conversation
r? @jackh726 (rustbot has picked a reviewer for you, use r? to override) |
2088382
to
45a313a
Compare
I've added a new commit which merges contiguous |
This comment has been minimized.
This comment has been minimized.
Hm, I'm not sure if I have a strong opinion about it, though I think that change somewhat obscures the declared purpose of the PR in the title. |
Given #108244 seems to fix this without regressing other stuff I'll just revert back to the first commit |
45a313a
to
3779c59
Compare
This comment has been minimized.
This comment has been minimized.
3779c59
to
93594bf
Compare
This comment has been minimized.
This comment has been minimized.
93594bf
to
0b9a3e2
Compare
This code is kinda a mess (not your fault, pre-existing), but whatever. It could probably use some refactoring, but I won't let that block this PR landing. @bors r+ rollup |
…piler-errors Fix overlapping spans in removing extra arguments Fixes rust-lang#108225 Each span is already extended to include the previous comma, so extending to the *next* comma is unecessary and causes an ICE with assertions on. `@rustbot` label +A-diagnostics
…llaumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#108110 (Move some `InferCtxt` methods to `EvalCtxt` in new solver) - rust-lang#108168 (Fix ICE on type alias in recursion) - rust-lang#108230 (Convert a hard-warning about named static lifetimes into lint "unused_lifetimes") - rust-lang#108239 (Fix overlapping spans in removing extra arguments) - rust-lang#108246 (Add an InstCombine for redundant casts) - rust-lang#108264 (no-fail-fast support for tool testsuites) - rust-lang#108310 (rustdoc: Fix duplicated attributes for first reexport) - rust-lang#108318 (Remove unused FileDesc::get_cloexec) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
…, r=compiler-errors Use span of semicolon for eager recovery in expression Instead of the span of the token after the semicolon. This will hopefully cause fewer errors from overlapping spans. fixes rust-lang#108242 based on rust-lang#108239
…, r=compiler-errors Use span of semicolon for eager recovery in expression Instead of the span of the token after the semicolon. This will hopefully cause fewer errors from overlapping spans. fixes rust-lang#108242 based on rust-lang#108239
Fixes #108225
Each span is already extended to include the previous comma, so extending to the next comma is unecessary and causes an ICE with assertions on.
@rustbot label +A-diagnostics