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/parser | |
| 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/parser')
| -rw-r--r-- | tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr b/tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr index 76259b40a93..dda37d83282 100644 --- a/tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr +++ b/tests/ui/parser/issues/issue-65122-mac-invoc-in-mut-patterns.stderr @@ -30,7 +30,7 @@ error: `mut` must be followed by a named binding --> $DIR/issue-65122-mac-invoc-in-mut-patterns.rs:13:13 | LL | let mut $eval = (); - | ^^^ + | ^^^^ ... LL | mac2! { does_not_exist!() } | --------------------------- in this macro invocation @@ -40,7 +40,7 @@ LL | mac2! { does_not_exist!() } help: remove the `mut` prefix | LL - let mut $eval = (); -LL + let $eval = (); +LL + let $eval = (); | error: cannot find macro `does_not_exist` in this scope |
