How to treat inert attributes on macro invocations? (original) (raw)

Examples of inert attributes on macro invocations:

#[inert] bang_macro!();

#[inert] #[attr_macro] struct S;

#[inert] #[derive(DeriveMacro)] struct S;

// Doc comments are also attributes (attribute literals if you wish).

/// Doc. bang_macro!();

/// Doc. #[attr_macro] struct S;

/// Doc. #[derive(DeriveMacro)] struct S;

How these attributes are treated currently (ad hoc, there's no RFC or anything):

Related issues: #61733 (comment).