-
Couldn't load subscription status.
- Fork 13.9k
fix incorrect line number when building trimmed multi-line suggestions #147785
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
Conversation
This comment has been minimized.
This comment has been minimized.
|
You have to update tests with Also, I'm not sure if this a rustc problem, because issue you reffering is from clippy, which is slightly different project, so would be nice if you could give a small explanation of what exactly you trying to fix, maybe example of current incorrect behavior or something |
Thank you, I forgot it. I'm sure the issue is from rustc. But this PR has some problems I will continue to solve it tomorrow. clippy uses the API from rustc_errors, I researched the issue and found the bug point. |
|
I came across this PR and realized that |
Thank you. It sounds a little bit complex for me. I need some times to understand those changes in your PR. But I think it's very useful, thank you again! Tracking original span was my initial idea (I thought this was a small bug before😂) |
ad02716 to
50f9807
Compare
|
cc @Muscraft |
|
rustbot has assigned @petrochenkov. Use |
This comment has been minimized.
This comment has been minimized.
50f9807 to
ad67c9d
Compare
|
@bors r+ |
Rollup of 4 pull requests Successful merges: - #147577 (Improve error message for ambiguous numeric types in closure parameters) - #147785 (fix incorrect line number when building trimmed multi-line suggestions) - #147814 (btree: some cleanup with less unsafe) - #147843 (Change the tidy license checker) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #147785 - relaxcn:emitter_sugg_line, r=petrochenkov fix incorrect line number when building trimmed multi-line suggestions While fixing the issue rust-lang/rust-clippy#15883 from `rust-clippy`, I tracked it down to a problem in `rustc` where line numbers were incorrect when building trimmed multi-line suggestions.
Rollup of 4 pull requests Successful merges: - rust-lang/rust#147577 (Improve error message for ambiguous numeric types in closure parameters) - rust-lang/rust#147785 (fix incorrect line number when building trimmed multi-line suggestions) - rust-lang/rust#147814 (btree: some cleanup with less unsafe) - rust-lang/rust#147843 (Change the tidy license checker) r? `@ghost` `@rustbot` modify labels: rollup
While fixing the issue rust-lang/rust-clippy#15883 from
rust-clippy, I tracked it down to a problem inrustcwhere line numbers were incorrect when building trimmed multi-line suggestions.