Skip to content

Conversation

logicalsingular
Copy link

@logicalsingular logicalsingular commented Sep 23, 2025

#416

Since /#[doc = "..."] outer attribute is not valid for macro expansion. Recommendation to follow Rust conventions.

Official documentation.
Attributes section:

Quote:

Attributes may be applied to many things in the language:

All item declarations accept outer attributes while external blocks, functions, implementations, and modules accept inner attributes.
Most statements accept outer attributes (see Expression Attributes for limitations on expression statements).
Block expressions accept outer and inner attributes, but only when they are the outer expression of an expression statement or the final expression of another block expression.
Enum variants and struct and union fields accept outer attributes.
Match expression arms accept outer attributes.
Generic lifetime or type parameter accept outer attributes.
Expressions accept outer attributes in limited situations, see Expression Attributes for details.
Function, closure and function pointer parameters accept outer attributes. This includes attributes on variadic parameters denoted with ... in function pointers and external blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant