rust/compiler/rustc_parse/src
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
..
lexer Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
parser Run clippy --fix for unnecessary_map_or lint 2025-01-19 19:15:00 +00:00
errors.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
validate_attr.rs Properly record metavar spans for other expansions other than TT 2024-12-21 20:37:27 +00:00