mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 19:28:29 +00:00

More carefully consider span context when suggesting remove `&mut` Use `find_ancestor_inside` to compute a relative span that is macro-aware, rather than falling back to using BytePos arithmetic which is wrong for `&mut`. Fixes https://github.com/rust-lang/rust/issues/143523