about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/errors.rs
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-08-09 15:16:19 -0700
committerJosh Triplett <josh@joshtriplett.org>2025-08-14 13:53:57 -0700
commit8fb98ef36846f74c8a642e856808ad5600ae4110 (patch)
treeb99fb21a9f7d1a9be132370d3526e40c7416f4fe /compiler/rustc_expand/src/errors.rs
parent2c1ac85679678dfe5cce7ea8037735b0349ceaf3 (diff)
downloadrust-8fb98ef36846f74c8a642e856808ad5600ae4110.tar.gz
rust-8fb98ef36846f74c8a642e856808ad5600ae4110.zip
mbe: Parse macro `derive` rules
This handles various kinds of errors, but does not allow applying the
derive yet.

This adds the feature gate `macro_derive`.
Diffstat (limited to 'compiler/rustc_expand/src/errors.rs')
-rw-r--r--compiler/rustc_expand/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_expand/src/errors.rs b/compiler/rustc_expand/src/errors.rs
index e58269991fc..ba9d76970f0 100644
--- a/compiler/rustc_expand/src/errors.rs
+++ b/compiler/rustc_expand/src/errors.rs
@@ -490,6 +490,7 @@ pub(crate) struct MacroArgsBadDelim {
     pub span: Span,
     #[subdiagnostic]
     pub sugg: MacroArgsBadDelimSugg,
+    pub rule_kw: Symbol,
 }
 
 #[derive(Subdiagnostic)]