Skip to content

Commit f73cbd2

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

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
@@ -555,6 +555,8 @@ declare_features! (
555555
(unstable, link_arg_attribute, "1.76.0", Some(99427)),
556556
/// Allows fused `loop`/`match` for direct intraprocedural jumps.
557557
(incomplete, loop_match, "CURRENT_RUSTC_VERSION", Some(132306)),
558+
/// Allow `macro_rules!` attribute rules
559+
(unstable, macro_attr, "CURRENT_RUSTC_VERSION", Some(83527)),
558560
/// Give access to additional metadata about declarative macro meta-variables.
559561
(unstable, macro_metavar_expr, "1.61.0", Some(83527)),
560562
/// 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
@@ -1310,6 +1310,7 @@ symbols! {
13101310
lt,
13111311
m68k_target_feature,
13121312
macro_at_most_once_rep,
1313+
macro_attr,
13131314
macro_attributes_in_derive_output,
13141315
macro_concat,
13151316
macro_escape,

0 commit comments

Comments
 (0)