Skip to content

Commit e49d5d9

Browse files
ehusstraviscross
authored andcommitted
Update proc_macro for updated attribute template
1 parent 27bb505 commit e49d5d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/procedural-macros.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ by ensuring that generated functions have names that are unlikely to clash with
8080
other functions (like `__internal_foo` instead of `foo`).
8181
8282
<!-- TODO: rule name needs improvement -->
83+
<!-- template:attributes -->
8384
r[macro.proc.proc_macro]
8485
## The `proc_macro` attribute
8586
@@ -116,7 +117,7 @@ The *`proc_macro` [attribute][attributes]* defines a procedural macro for [funct
116117
> ```
117118
118119
r[macro.proc.proc_macro.syntax]
119-
The `proc_macro` attribute uses the [MetaWord] syntax and thus does not take any inputs.
120+
The `proc_macro` attribute uses the [MetaWord] syntax.
120121
121122
r[macro.proc.proc_macro.allowed-positions]
122123
The `proc_macro` attribute may only be applied to a function with the signature of `pub fn(TokenStream) -> TokenStream` where [`TokenStream`] comes from the [`proc_macro` crate]. It must have the ["Rust" ABI][items.fn.extern]. No other function qualifiers are allowed.

0 commit comments

Comments
 (0)