diff options
| author | bors <bors@rust-lang.org> | 2025-01-22 14:46:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-01-22 14:46:41 +0000 |
| commit | dee7d0e730a3a3ed98c89dd33c4ac16edc82de8a (patch) | |
| tree | 3d6e80304bba9a0899e5ecb00f8a378c72514c68 /tests/ui/drop | |
| parent | b2728d5426bab1d8c39709768c7e22b7f66dde5d (diff) | |
| parent | 2de21ad7d4a14894463816ac5dedc337ae3a2941 (diff) | |
| download | rust-dee7d0e730a3a3ed98c89dd33c4ac16edc82de8a.tar.gz rust-dee7d0e730a3a3ed98c89dd33c4ac16edc82de8a.zip | |
Auto merge of #134478 - compiler-errors:attr-span, r=oli-obk
Properly record metavar spans for other expansions other than TT This properly records metavar spans for nonterminals other than tokentree. This means that we operations like `span.to(other_span)` work correctly for macros. As you can see, other diagnostics involving metavars have improved as a result. Fixes #132908 Alternative to #133270 cc `@ehuss` cc `@petrochenkov`
Diffstat (limited to 'tests/ui/drop')
| -rw-r--r-- | tests/ui/drop/lint-if-let-rescope-with-macro.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/drop/lint-if-let-rescope-with-macro.stderr b/tests/ui/drop/lint-if-let-rescope-with-macro.stderr index d73a878c74f..029d5c74929 100644 --- a/tests/ui/drop/lint-if-let-rescope-with-macro.stderr +++ b/tests/ui/drop/lint-if-let-rescope-with-macro.stderr @@ -2,7 +2,7 @@ error: `if let` assigns a shorter lifetime since Edition 2024 --> $DIR/lint-if-let-rescope-with-macro.rs:12:12 | LL | if let $p = $e { $($conseq)* } else { $($alt)* } - | ^^^ + | ^^^^^^^^^^^ ... LL | / edition_2021_if_let! { LL | | Some(_value), |
