Skip to content

Commit f10e8eb

Browse files
committed
Remove attributes.type-system.non_exhaustive.external-crate
This statement isn't really a rule, but more of a high-level explanation. I have moved it to the intro where I think it better belongs.
1 parent f37eb61 commit f10e8eb

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/attributes/type_system.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ r[attributes.type-system.non_exhaustive]
77
## The `non_exhaustive` attribute
88

99
r[attributes.type-system.non_exhaustive.intro]
10-
The *`non_exhaustive` attribute* indicates that a type or variant may have more fields or variants added in the future.
10+
The *`non_exhaustive` attribute* indicates that a type or variant may have more fields or variants added in the future. Outside of the defining crate, types annotated with `non_exhaustive` have limitations that preserve backwards compatibility when new fields or variants are added.
1111

1212
> [!EXAMPLE]
1313
> The following non-exhaustive definitions will be used in the examples that follow.
@@ -78,10 +78,6 @@ Within the defining crate, `non_exhaustive` has no effect.
7878
> }
7979
> ```
8080
81-
82-
r[attributes.type-system.non_exhaustive.external-crate]
83-
Outside of the defining crate, types annotated with `non_exhaustive` have limitations that preserve backwards compatibility when new fields or variants are added.
84-
8581
r[attributes.type-system.non_exhaustive.construction]
8682
Non-exhaustive types cannot be constructed outside of the defining crate:
8783

0 commit comments

Comments
 (0)