Skip to content

Commit fa6fc39

Browse files
committed
Add attribute template rules for derive
1 parent 6b2a4af commit fa6fc39

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/attributes/derive.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ The *`derive` [attribute][attributes]* allows new [items] to be automatically ge
2929
r[attributes.derive.syntax]
3030
The `derive` attribute uses the [MetaListPaths] syntax to specify a list of paths to [derive macros] to process.
3131
32+
r[attributes.derive.allowed-positions]
33+
The `derive` attribute may be applied to [structs][items.struct], [enums][items.enum], and [unions][items.union].
34+
35+
r[attributes.derive.duplicates]
36+
The `derive` attribute may be specified multiple times on an item, with all entries from all attributes being processed.
37+
38+
r[attributes.derive.stdlib]
39+
The `derive` attribute is exported in the standard library prelude as [`core::prelude::v1::derive`].
3240
3341
3442
r[attributes.derive.automatically_derived]

0 commit comments

Comments
 (0)