Skip to content

Commit 0b0f993

Browse files
authored
Merge pull request #2311 from ehuss/attr-macro-inner
Document prohibition on inner attribute macros
2 parents 9dbf03a + 8c63558 commit 0b0f993

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/procedural-macros.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,9 @@ Attribute macros can only be used on:
317317
- Inherent and trait [implementations]
318318
- [Trait definitions]
319319
320+
r[macro.proc.attribute.inner]
321+
Attribute macros cannot be used as an [inner attribute].
322+
320323
r[macro.proc.attribute.outline-mod]
321324
For any [outline modules] present in the macro's input, only the tokens of the module declaration are passed; the file contents of the module are not loaded or included in the input.
322325
@@ -397,6 +400,7 @@ Note that neither declarative nor procedural macros support doc comment tokens (
397400
[function]: items/functions.md
398401
[implementations]: items/implementations.md
399402
[inert]: attributes.md#active-and-inert-attributes
403+
[inner attribute]: attributes.inner
400404
[item]: items.md
401405
[items]: items.md
402406
[macro namespace]: names/namespaces.md

0 commit comments

Comments
 (0)