Skip to content

Commit cef3940

Browse files
committed
Add feature gate macro_attr for declarative macro_rules! attribute macros
1 parent a980cd4 commit cef3940

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/rustc_feature/src/unstable.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ declare_features! (
554554
(unstable, link_arg_attribute, "1.76.0", Some(99427)),
555555
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
556556
(incomplete, loop_match, "1.90.0", Some(132306)),
557+
/// Allow `macro_rules!` attribute rules
558+
(unstable, macro_attr, "CURRENT_RUSTC_VERSION", Some(83527)),
557559
/// Give access to additional metadata about declarative macro meta-variables.
558560
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
559561
/// Provides a way to concatenate identifiers using metavariable expressions.

compiler/rustc_span/src/symbol.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,7 @@ symbols! {
13111311
lt,
13121312
m68k_target_feature,
13131313
macro_at_most_once_rep,
1314+
macro_attr,
13141315
macro_attributes_in_derive_output,
13151316
macro_concat,
13161317
macro_escape,

0 commit comments

Comments
 (0)