Skip to content

Commit

Permalink
Auto merge of #134478 - compiler-errors:attr-span, r=oli-obk
Browse files Browse the repository at this point in the history
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`
  • Loading branch information
bors committed Jan 22, 2025
2 parents 2421d6b + 9c7674d commit 0159fe3
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0159fe3

Please sign in to comment.