11error: unreachable pattern
2- --> $DIR/match-empty-exhaustive_patterns.rs:47 :9
2+ --> $DIR/match-empty-exhaustive_patterns.rs:48 :9
33 |
44LL | _ => {},
55 | ^
66 |
77note: the lint level is defined here
8- --> $DIR/match-empty-exhaustive_patterns.rs:3 :9
8+ --> $DIR/match-empty-exhaustive_patterns.rs:4 :9
99 |
1010LL | #![deny(unreachable_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
1313error: unreachable pattern
14- --> $DIR/match-empty-exhaustive_patterns.rs:50 :9
14+ --> $DIR/match-empty-exhaustive_patterns.rs:51 :9
1515 |
1616LL | _ if false => {},
1717 | ^
1818
1919error: unreachable pattern
20- --> $DIR/match-empty-exhaustive_patterns.rs:57:9
20+ --> $DIR/match-empty-exhaustive_patterns.rs:58:9
21+ |
22+ LL | _ => {},
23+ | ^
24+
25+ error: unreachable pattern
26+ --> $DIR/match-empty-exhaustive_patterns.rs:61:9
27+ |
28+ LL | _ if false => {},
29+ | ^
30+
31+ error: unreachable pattern
32+ --> $DIR/match-empty-exhaustive_patterns.rs:68:9
2133 |
2234LL | Some(_) => {}
2335 | ^^^^^^^
2436
2537error: unreachable pattern
26- --> $DIR/match-empty-exhaustive_patterns.rs:61 :9
38+ --> $DIR/match-empty-exhaustive_patterns.rs:72 :9
2739 |
2840LL | Some(_) => {}
2941 | ^^^^^^^
3042
3143error[E0004]: non-exhaustive patterns: type `u8` is non-empty
32- --> $DIR/match-empty-exhaustive_patterns.rs:64 :18
44+ --> $DIR/match-empty-exhaustive_patterns.rs:75 :18
3345 |
3446LL | match_empty!(0u8);
3547 | ^^^
@@ -38,7 +50,7 @@ LL | match_empty!(0u8);
3850 = note: the matched value is of type `u8`
3951
4052error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty
41- --> $DIR/match-empty-exhaustive_patterns.rs:66 :18
53+ --> $DIR/match-empty-exhaustive_patterns.rs:77 :18
4254 |
4355LL | struct NonEmptyStruct(bool);
4456 | ---------------------------- `NonEmptyStruct` defined here
@@ -50,7 +62,7 @@ LL | match_empty!(NonEmptyStruct(true));
5062 = note: the matched value is of type `NonEmptyStruct`
5163
5264error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
53- --> $DIR/match-empty-exhaustive_patterns.rs:68 :18
65+ --> $DIR/match-empty-exhaustive_patterns.rs:79 :18
5466 |
5567LL | / union NonEmptyUnion1 {
5668LL | | foo: (),
@@ -64,7 +76,7 @@ LL | match_empty!((NonEmptyUnion1 { foo: () }));
6476 = note: the matched value is of type `NonEmptyUnion1`
6577
6678error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
67- --> $DIR/match-empty-exhaustive_patterns.rs:70 :18
79+ --> $DIR/match-empty-exhaustive_patterns.rs:81 :18
6880 |
6981LL | / union NonEmptyUnion2 {
7082LL | | foo: (),
@@ -79,7 +91,7 @@ LL | match_empty!((NonEmptyUnion2 { foo: () }));
7991 = note: the matched value is of type `NonEmptyUnion2`
8092
8193error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
82- --> $DIR/match-empty-exhaustive_patterns.rs:72 :18
94+ --> $DIR/match-empty-exhaustive_patterns.rs:83 :18
8395 |
8496LL | / enum NonEmptyEnum1 {
8597LL | | Foo(bool),
@@ -96,7 +108,7 @@ LL | match_empty!(NonEmptyEnum1::Foo(true));
96108 = note: the matched value is of type `NonEmptyEnum1`
97109
98110error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
99- --> $DIR/match-empty-exhaustive_patterns.rs:74 :18
111+ --> $DIR/match-empty-exhaustive_patterns.rs:85 :18
100112 |
101113LL | / enum NonEmptyEnum2 {
102114LL | | Foo(bool),
@@ -117,7 +129,7 @@ LL | match_empty!(NonEmptyEnum2::Foo(true));
117129 = note: the matched value is of type `NonEmptyEnum2`
118130
119131error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
120- --> $DIR/match-empty-exhaustive_patterns.rs:76 :18
132+ --> $DIR/match-empty-exhaustive_patterns.rs:87 :18
121133 |
122134LL | / enum NonEmptyEnum5 {
123135LL | | V1, V2, V3, V4, V5,
@@ -131,7 +143,7 @@ LL | match_empty!(NonEmptyEnum5::V1);
131143 = note: the matched value is of type `NonEmptyEnum5`
132144
133145error[E0004]: non-exhaustive patterns: `_` not covered
134- --> $DIR/match-empty-exhaustive_patterns.rs:79 :18
146+ --> $DIR/match-empty-exhaustive_patterns.rs:90 :18
135147 |
136148LL | match_false!(0u8);
137149 | ^^^ pattern `_` not covered
@@ -140,7 +152,7 @@ LL | match_false!(0u8);
140152 = note: the matched value is of type `u8`
141153
142154error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered
143- --> $DIR/match-empty-exhaustive_patterns.rs:81 :18
155+ --> $DIR/match-empty-exhaustive_patterns.rs:92 :18
144156 |
145157LL | struct NonEmptyStruct(bool);
146158 | ---------------------------- `NonEmptyStruct` defined here
@@ -152,7 +164,7 @@ LL | match_false!(NonEmptyStruct(true));
152164 = note: the matched value is of type `NonEmptyStruct`
153165
154166error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
155- --> $DIR/match-empty-exhaustive_patterns.rs:83 :18
167+ --> $DIR/match-empty-exhaustive_patterns.rs:94 :18
156168 |
157169LL | / union NonEmptyUnion1 {
158170LL | | foo: (),
@@ -166,7 +178,7 @@ LL | match_false!((NonEmptyUnion1 { foo: () }));
166178 = note: the matched value is of type `NonEmptyUnion1`
167179
168180error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
169- --> $DIR/match-empty-exhaustive_patterns.rs:85 :18
181+ --> $DIR/match-empty-exhaustive_patterns.rs:96 :18
170182 |
171183LL | / union NonEmptyUnion2 {
172184LL | | foo: (),
@@ -181,7 +193,7 @@ LL | match_false!((NonEmptyUnion2 { foo: () }));
181193 = note: the matched value is of type `NonEmptyUnion2`
182194
183195error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
184- --> $DIR/match-empty-exhaustive_patterns.rs:87 :18
196+ --> $DIR/match-empty-exhaustive_patterns.rs:98 :18
185197 |
186198LL | / enum NonEmptyEnum1 {
187199LL | | Foo(bool),
@@ -198,7 +210,7 @@ LL | match_false!(NonEmptyEnum1::Foo(true));
198210 = note: the matched value is of type `NonEmptyEnum1`
199211
200212error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
201- --> $DIR/match-empty-exhaustive_patterns.rs:89 :18
213+ --> $DIR/match-empty-exhaustive_patterns.rs:100 :18
202214 |
203215LL | / enum NonEmptyEnum2 {
204216LL | | Foo(bool),
@@ -219,7 +231,7 @@ LL | match_false!(NonEmptyEnum2::Foo(true));
219231 = note: the matched value is of type `NonEmptyEnum2`
220232
221233error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
222- --> $DIR/match-empty-exhaustive_patterns.rs:91 :18
234+ --> $DIR/match-empty-exhaustive_patterns.rs:102 :18
223235 |
224236LL | / enum NonEmptyEnum5 {
225237LL | | V1, V2, V3, V4, V5,
@@ -232,6 +244,6 @@ LL | match_false!(NonEmptyEnum5::V1);
232244 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
233245 = note: the matched value is of type `NonEmptyEnum5`
234246
235- error: aborting due to 18 previous errors
247+ error: aborting due to 20 previous errors
236248
237249For more information about this error, try `rustc --explain E0004`.
0 commit comments