bors dee7d0e730 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`
2025-01-22 14:46:41 +00:00
..
2025-01-08 21:26:39 +01:00
2024-07-29 08:26:52 +10:00
2024-12-22 17:12:42 -03:00
2024-11-22 11:12:15 -08:00
2024-07-29 08:26:52 +10:00