Skip to content

Commit 1596141

Browse files
committed
Remove attributes.derive.proc-macro
This moves the text into the intro. I think it's fine to have this be more of a high-level introduction. The details and rules of derive proc-macros are covered in the proc-macro chapter, so there doesn't need to be an explicit rule here.
1 parent 55d9464 commit 1596141

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/attributes/derive.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ r[attributes.derive]
22
# Derive
33

44
r[attributes.derive.intro]
5-
The *`derive` attribute* allows new [items] to be automatically generated for data structures.
5+
The *`derive` [attribute][attributes]* allows new [items] to be automatically generated for data structures. You can implement custom `derive` macros through [procedural macros].
66

77
> [!EXAMPLE]
88
> The following example will create an [`impl` item] for the [`PartialEq`] and [`Clone`] traits for `Foo`, and the type parameter `T` will be given the `PartialEq` or `Clone` constraints for the appropriate `impl`:
@@ -30,8 +30,6 @@ r[attributes.derive.syntax]
3030
It uses the [MetaListPaths] syntax to specify a list of traits to implement or paths to [derive macros] to process.
3131
3232
33-
r[attributes.derive.proc-macro]
34-
You can implement `derive` for your own traits through [procedural macros].
3533
3634
r[attributes.derive.automatically_derived]
3735
## The `automatically_derived` attribute

0 commit comments

Comments
 (0)