about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-09-19 23:06:44 +0800
committerJosh Triplett <josh@joshtriplett.org>2025-09-19 23:17:12 +0800
commit3ab89abac41443b125f2440b8f525f56536d8ffc (patch)
treebc956643a7836fdc59ee556ae3ab7ceceab9f791 /compiler
parent2f4dfc753fd86c672aa4145940db075a8a149f17 (diff)
downloadrust-3ab89abac41443b125f2440b8f525f56536d8ffc.tar.gz
rust-3ab89abac41443b125f2440b8f525f56536d8ffc.zip
mbe: Fix feature gate for `macro_derive`
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_expand/src/mbe/macro_rules.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_rules.rs b/compiler/rustc_expand/src/mbe/macro_rules.rs
index 946265eba8b..1d147a0385c 100644
--- a/compiler/rustc_expand/src/mbe/macro_rules.rs
+++ b/compiler/rustc_expand/src/mbe/macro_rules.rs
@@ -702,7 +702,7 @@ pub fn compile_declarative_macro(
             kinds |= MacroKinds::DERIVE;
             let derive_keyword_span = p.prev_token.span;
             if !features.macro_derive() {
-                feature_err(sess, sym::macro_attr, span, "`macro_rules!` derives are unstable")
+                feature_err(sess, sym::macro_derive, span, "`macro_rules!` derives are unstable")
                     .emit();
             }
             if let Some(guar) = check_no_eof(sess, &p, "expected `()` after `derive`") {