Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/procedural-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ Attribute macros can only be used on:
- Inherent and trait [implementations]
- [Trait definitions]

r[macro.proc.attribute.inner]
Attribute macros cannot be used as an [inner attribute].

r[macro.proc.attribute.behavior]
The first [`TokenStream`] parameter is the delimited token tree following the attribute's name but not including the outer delimiters. If the applied attribute contains only the attribute name or the attribute name followed by empty delimiters, the [`TokenStream`] is empty.

Expand Down Expand Up @@ -394,6 +397,7 @@ Note that neither declarative nor procedural macros support doc comment tokens (
[function]: items/functions.md
[implementations]: items/implementations.md
[inert]: attributes.md#active-and-inert-attributes
[inner attribute]: attributes.inner
[item]: items.md
[items]: items.md
[macro namespace]: names/namespaces.md
Expand Down
Loading