-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
How to treat inert attributes on macro invocations? #63221
Copy link
Copy link
Open
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)T-langRelevant to the language teamRelevant to the language team
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)T-langRelevant to the language teamRelevant to the language team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Examples of inert attributes on macro invocations:
How these attributes are treated currently (ad hoc, there's no RFC or anything):
Effectively,
#[inert] #[macro_attr] struct S;->macro_attr! { #[inert] struct S; }.Related issues: #61733 (comment).