-
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
Account for suggestions for complete removal of lines #94788
Conversation
(rust-highfive has picked a reviewer for you, use r? to override) |
Ooh, does it also fix #92741? |
@compiler-errors it doesn't :( The problem for that is that the machinery didn't account for the possibility of the removed code spanning multiple lines. I started looking at what would be necessary to get that to work well, and it will need a larger refactor than I can dedicate myself to. For what is worth, a good repro case for this:
It should show all of the lines being removed. Thankfully this is only on the cli output, |
d248287
to
ac2afa0
Compare
Alrighty! Thanks for the explanation :) |
@bors r+ |
📌 Commit ac2afa0 has been approved by |
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#92150 (Improve suggestion when casting usize to (possibly) wide pointer) - rust-lang#94635 (Merge `#[deprecated]` and `#[rustc_deprecated]`) - rust-lang#94657 (Constify `Index{,Mut}` for `[T]`, `str`, and `[T; N]`) - rust-lang#94746 (diagnostics: use rustc_on_unimplemented to recommend `[].iter()`) - rust-lang#94788 (Account for suggestions for complete removal of lines) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Fix #94192.