Skip to content

Commit 1124ff3

Browse files
ehusstraviscross
authored andcommitted
Move proc_macro_attribute rules below the templated rules
1 parent b70c647 commit 1124ff3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/procedural-macros.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ The *`proc_macro_derive` [attribute][attributes]* defines a *derive macro* which
166166
> }
167167
> ```
168168
169-
r[macro.proc.derive.namespace]
170-
The `proc_macro_derive` attribute defines the custom derive in the [macro namespace] in the root of the crate.
171-
172-
r[macro.proc.derive.output]
173-
The input [`TokenStream`] is the token stream of the item that has the `derive` attribute on it. The output [`TokenStream`] must be a set of items that are then appended to the [module] or [block] that the item from the input [`TokenStream`] is in.
174169
r[macro.proc.derive.syntax]
175170
The `proc_macro_derive` attribute uses the following syntax:
176171
@@ -192,6 +187,11 @@ The `proc_macro_derive` attribute may only be applied to a function with the sig
192187
r[macro.proc.derive.duplicates]
193188
The `proc_macro_derive` attribute may only be specified once on a function.
194189

190+
r[macro.proc.derive.namespace]
191+
The `proc_macro_derive` attribute publicly defines the custom derive in the [macro namespace] in the root of the crate with the name given in the attribute.
192+
193+
r[macro.proc.derive.output]
194+
The input [`TokenStream`] is the token stream of the item that has the `derive` attribute on it. The output [`TokenStream`] must be a set of items that are then appended to the [module] or [block] that the item from the input [`TokenStream`] is in.
195195

196196
r[macro.proc.derive.attributes]
197197
### Derive macro helper attributes

0 commit comments

Comments
 (0)