about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/tests
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2025-07-08 22:50:29 -0500
committerGitHub <noreply@github.com>2025-07-08 22:50:29 -0500
commit5f9a70ec9f6bae58842b36f80f8f125617fa6071 (patch)
tree8d4e5dcf3da19772965e5ed09aebe7284515b431 /compiler/rustc_pattern_analysis/tests
parent00aa4e1627bfb0890302da9fcb715cd34926f8c8 (diff)
parentb63f920ccf6e148547aea4c0fd045c4536aac483 (diff)
downloadrust-5f9a70ec9f6bae58842b36f80f8f125617fa6071.tar.gz
rust-5f9a70ec9f6bae58842b36f80f8f125617fa6071.zip
Rollup merge of #143532 - compiler-errors:mut-ref-sugg, r=davidtwco
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
Diffstat (limited to 'compiler/rustc_pattern_analysis/tests')
0 files changed, 0 insertions, 0 deletions