-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Highlight whole expression for E0599 #108609
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
8e0e9b2
to
85ca415
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we somehow only include this highlighting in multiline cases? I feel like most of the cases in tests are not improvements...
Yeah, I agree with @WaffleLapkin on this. There's an |
85ca415
to
6c2a952
Compare
That looks nicer. I left the compiletest changes because it seems reasonable to ignore textless notes, but I can revert that too |
@bors r+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
…iaskrgr Rollup of 5 pull requests Successful merges: - rust-lang#108516 (Restrict `#[rustc_box]` to `Box::new` calls) - rust-lang#108575 (Erase **all** regions when probing for associated types on ambiguity in astconv) - rust-lang#108585 (Run compiler test suite in parallel on Fuchsia) - rust-lang#108606 (Add test case for mismatched open/close delims) - rust-lang#108609 (Highlight whole expression for E0599) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fixes #108603
This adds a secondary label to highlight the whole expression leading to the error. It also prevents empty labels being recognised as 'unexpected' by compiletest - otherwise, tests with NOTE annotations would pick up empty labels.
@rustbot label +A-diagnostics