about summary refs log tree commit diff
path: root/compiler/rustc_feature/src/unstable.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_feature/src/unstable.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_feature/src/unstable.rs')
-rw-r--r--compiler/rustc_feature/src/unstable.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs
index acc21f6c6d2..e119a8fc033 100644
--- a/compiler/rustc_feature/src/unstable.rs
+++ b/compiler/rustc_feature/src/unstable.rs
@@ -556,6 +556,8 @@ declare_features! (
     (incomplete, loop_match, "1.90.0", Some(132306)),
     /// Allow `macro_rules!` attribute rules
     (unstable, macro_attr, "CURRENT_RUSTC_VERSION", Some(83527)),
+    /// Allow `macro_rules!` derive rules
+    (unstable, macro_derive, "CURRENT_RUSTC_VERSION", Some(143549)),
     /// Give access to additional metadata about declarative macro meta-variables.
     (unstable, macro_metavar_expr, "1.61.0", Some(83527)),
     /// Provides a way to concatenate identifiers using metavariable expressions.