Skip to content

Commit 6359adf

Browse files
committed
unwrap
1 parent 1c7a1b8 commit 6359adf

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/attributes/type_system.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,8 @@ let message = Message::Quit;
131131
r[attributes.type-system.non_exhaustive.match]
132132
There are limitations when matching on non-exhaustive types outside of the defining crate:
133133

134-
- When pattern matching on a non-exhaustive variant ([`struct`][struct] or [`enum` variant][enum]),
135-
a [StructPattern] must be used which must include a `..`. A tuple enum variant's constructor's
136-
[visibility] is reduced to be no greater than `pub(crate)`.
137-
- When pattern matching on a non-exhaustive [`enum`][enum], matching on a variant does not
138-
contribute towards the exhaustiveness of the arms.
139-
140-
The following examples of matching do not compile when outside the defining crate:
134+
- When pattern matching on a non-exhaustive variant ([`struct`][struct] or [`enum` variant][enum]), a [StructPattern] must be used which must include a `..`. A tuple enum variant's constructor's [visibility] is reduced to be no greater than `pub(crate)`.
135+
- When pattern matching on a non-exhaustive [`enum`][enum], matching on a variant does not contribute towards the exhaustiveness of the arms.The following examples of matching do not compile when outside the defining crate:
141136

142137
<!-- ignore: requires external crates -->
143138
```rust, ignore

src/tokens.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,8 +628,7 @@ TUPLE_INDEX -> DEC_LITERAL | BIN_LITERAL | OCT_LITERAL | HEX_LITERAL
628628
```
629629

630630
r[lex.token.literal.int.tuple-field.intro]
631-
A tuple index is used to refer to the fields of [tuples], [tuple structs], and
632-
[tuple enum variants].
631+
A tuple index is used to refer to the fields of [tuples], [tuple structs], and [tuple enum variants].
633632

634633
r[lex.token.literal.int.tuple-field.eq]
635634
Tuple indices are compared with the literal token directly. Tuple indices

0 commit comments

Comments
 (0)