-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Revert "fix: Filter suggestion parts that match existing code" #148043
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
base: master
Are you sure you want to change the base?
Conversation
Some changes occurred in src/tools/clippy cc @rust-lang/clippy
cc @Muscraft |
|
|
I wanted to wait for the reviewer to at least see the PR before nominating for a backport, or for CI to pass. |
The job Click to see the possible cause of the failure (guessed by this bot)
|
Alright, so it seems likely we already have overlapping spans being emitted in the wild, but we didn't notice as we don't have tests that trigger this debug assertion. I could maybe make these tests rust/compiler/rustc_errors/src/lib.rs Lines 404 to 408 in 6501e64
What do you think @wesleywiser? |
I think making the tests |
As requested by @wesleywiser in #147973 (comment) this is a revert of #146121 due to the handful of diagnostics ICEs that have been since reported, and found in the beta crater run.
This should thus also be backported to beta so the ICEs don't make it to next week's stable.
Works around (after backport)
all spans must be disjoint
#146261left == right
failed: all spans must be disjoint #146706The proper fix would likely be #147849 but it's still currently at the MCP stage. In the meantime, this PR would still emit the same overlapping suggestions, but still use a debug-assert...
r? @wesleywiser