Skip to content

Commit a65a851

Browse files
authored
Merge pull request rust-lang#2223 from ehuss/derive-export
Update `derive` export locations
2 parents e7c0021 + 9fe9584 commit a65a851

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/attributes/derive.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ r[attributes.derive.duplicates]
4343
The `derive` attribute may be used any number of times on an item. All derive macros listed in all attributes are invoked.
4444
4545
r[attributes.derive.stdlib]
46-
The `derive` attribute is exported in the standard library prelude as [`core::prelude::v1::derive`].
46+
The `derive` attribute is exported in the standard library as:
47+
48+
- [`core::derive`]
49+
- [`std::derive`]
50+
- [`core::prelude::v1::derive`]
51+
- [`std::prelude::v1::derive`]
4752
4853
r[attributes.derive.built-in]
4954
Built-in derives are defined in the [language prelude][names.preludes.lang]. The list of built-in derives are:

0 commit comments

Comments
 (0)