1
Fork 0
rust/compiler/rustc_expand/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
..
mbe Auto merge of #134478 - compiler-errors:attr-span, r=oli-obk 2025-01-22 14:46:41 +00:00
base.rs Rename PatKind::Lit to Expr 2025-01-08 07:34:59 +00:00
build.rs Rename PatKind::Lit to Expr 2025-01-08 07:34:59 +00:00
config.rs 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
expand.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
lib.rs Add warn(unreachable_pub) to rustc_expand. 2024-08-27 12:40:38 +10:00
mbe.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
module.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
placeholders.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
proc_macro.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
proc_macro_server.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00