Skip to content

Commit 34f5a1e

Browse files
committed
Add proc_macro attributes to attributes page
1 parent a092db2 commit 34f5a1e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/attributes.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,20 @@ which can be used to control type layout.
161161

162162
- `macro_reexport` on an `extern crate` — re-export the named macros.
163163

164-
- `macro_export` - export a macro for cross-crate usage.
164+
- `macro_export` - export a `macro_rules` macro for cross-crate usage.
165165

166166
- `no_link` on an `extern crate` — even if we load this crate for macros, don't
167167
link it into the output.
168168

169169
See the [macros section of the first edition of the
170170
book](../book/first-edition/macros.html#scoping-and-macro-importexport) for more
171-
information on macro scope.
171+
information on `macro_rules` macro scope.
172+
173+
- `proc_macro` - Defines a [bang macro].
174+
175+
- `proc_macro_derive` - Defines a [derive macro].
176+
177+
- `proc_macro_attribute` - Defines an [attribute macro].
172178

173179
## Miscellaneous attributes
174180

@@ -525,9 +531,11 @@ You can implement `derive` for your own traits through [procedural macros].
525531
[match expressions]: expressions/match-expr.html
526532
[external blocks]: items/external-blocks.html
527533
[items]: items.html
534+
[attribute macro]: procedural-macros.html#attribute-macros
535+
[bang macro]: procedural-macros.html#bang-macros
528536
[conditional compilation]: conditional-compilation.html
529-
[trait]: items/traits.html
530-
[main]: crates-and-source-files.html
537+
[derive macro]: procedural-macros.html#derive-macros
538+
[trait]: items/traits.html[main]: crates-and-source-files.html
531539
[`Termination`]: ../std/process/trait.Termination.html
532540
[where clause]: items/where-clauses.html
533541
[trait or lifetime bounds]: trait-bounds.html

0 commit comments

Comments
 (0)