-
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
Fix #58270, fix off-by-one error in error diagnostics. #60160
Fix #58270, fix off-by-one error in error diagnostics. #60160
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @matthewjasper (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
439e7de
to
6c34a8b
Compare
r? @estebank |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
The change looks good. You'll have to rebase información top of latest master and rerun bless, but other than that r=me. |
6c34a8b
to
69e20e6
Compare
69e20e6
to
4a073dd
Compare
r=estebank I rebased an ran bless (it updated one test case). |
@bors r+ |
📌 Commit 4a073dd has been approved by |
…annotation, r=estebank Fix rust-lang#58270, fix off-by-one error in error diagnostics. This fixes rust-lang#58270 by checking if two diagnostics overlap completely when we're calculating the line offset for each message.
Rollup of 6 pull requests Successful merges: - #59560 (MIR generation cleanup) - #59697 (tweak unresolved label suggestion) - #60038 (Add codegen test for PGO instrumentation.) - #60160 (Fix #58270, fix off-by-one error in error diagnostics.) - #60185 (Reexport IntErrorKind in std) - #60243 (Add regression test for #53249.) Failed merges: r? @ghost
Remove old fixme fixed in rust-lang#60160 r? @Centril
Remove old fixme fixed in rust-lang#60160 r? @Centril
Remove old fixme fixed in rust-lang#60160 r? @Centril
Remove old fixme fixed in rust-lang#60160 r? @Centril
This fixes #58270 by checking if two diagnostics overlap completely when we're calculating the line offset for each message.