Is the order of procedural macro attribute execution guaranteed per item? #63336
Labels
A-attributes
Area: Attributes (`#[…]`, `#![…]`)
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Hiya, is there an intentional guarantee that procedural macro attributes are executed outward-in per item? To illustrate (repo):
generates:
That's the behaviour, but I'd like to confirm if I can rely on it (and if it should be documented).
#56058 may be related, but I haven't checked the details whether the "each invocation" is per procedural macro (and potentially losing the order guarantee).
The text was updated successfully, but these errors were encountered: