Closed
Description
This issue tracks feature unrestricted_attribute_tokens
introduced for future-compatibility during stabilization of macros 1.2.
The feature allows using the full macro attribute grammar for non-macro attributes:
PATH
PATH `(` TOKEN_STREAM `)`
PATH `[` TOKEN_STREAM `]`
PATH `{` TOKEN_STREAM `}`
Additionally, the feature extends the grammar of value in key-value attributes (#[key = "value"]
) to arbitrary token trees:
PATH = TOKEN_TREE
More information and proposed path to stabilization can be found in https://internals.rust-lang.org/t/unrestricted-attribute-tokens-feature-status/8561.
Metadata
Metadata
Assignees
Labels
Area: Attributes (`#[…]`, `#![…]`)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFCRelevant to the language team, which will review and decide on the PR/issue.