Skip to content

Commit b852c36

Browse files
committed
Add attributes.derive.behavior
This adds a basic rule for the behavior of derive. I think there is more to be said here, this is just a starting point. See things like rust-lang#540 and rust-lang#1074.
1 parent c63e167 commit b852c36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/attributes/derive.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ Built-in derives are defined in the [language prelude][names.preludes.lang]. The
5151
- [`PartialEq`]
5252
- [`PartialOrd`]
5353
54+
r[attributes.derive.behavior]
55+
During macro expansion, for each element in the list of derives, the corresponding derive macro expands to zero or more [items].
5456
5557
r[attributes.derive.automatically_derived]
5658
## The `automatically_derived` attribute

0 commit comments

Comments
 (0)