11error: unreachable pattern
2- --> $DIR/match- empty-exhaustive_patterns .rs:52 :9
2+ --> $DIR/empty-match .rs:53 :9
33 |
44LL | _ => {},
55 | ^
66 |
77note: the lint level is defined here
8- --> $DIR/match- empty-exhaustive_patterns .rs:5 :9
8+ --> $DIR/empty-match .rs:6 :9
99 |
1010LL | #![deny(unreachable_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
1313error: unreachable pattern
14- --> $DIR/match- empty-exhaustive_patterns .rs:55 :9
14+ --> $DIR/empty-match .rs:56 :9
1515 |
1616LL | _ if false => {},
1717 | ^
1818
1919error: unreachable pattern
20- --> $DIR/match- empty-exhaustive_patterns .rs:62 :9
20+ --> $DIR/empty-match .rs:63 :9
2121 |
2222LL | _ => {},
2323 | ^
2424
2525error: unreachable pattern
26- --> $DIR/match- empty-exhaustive_patterns .rs:65 :9
26+ --> $DIR/empty-match .rs:66 :9
2727 |
2828LL | _ if false => {},
2929 | ^
3030
3131error: unreachable pattern
32- --> $DIR/match- empty-exhaustive_patterns .rs:72 :9
32+ --> $DIR/empty-match .rs:73 :9
3333 |
3434LL | _ => {},
3535 | ^
3636
3737error: unreachable pattern
38- --> $DIR/match- empty-exhaustive_patterns .rs:75 :9
38+ --> $DIR/empty-match .rs:76 :9
3939 |
4040LL | _ if false => {},
4141 | ^
4242
4343error: unreachable pattern
44- --> $DIR/match- empty-exhaustive_patterns .rs:82 :9
44+ --> $DIR/empty-match .rs:83 :9
4545 |
4646LL | Some(_) => {}
4747 | ^^^^^^^
4848
4949error: unreachable pattern
50- --> $DIR/match- empty-exhaustive_patterns .rs:86 :9
50+ --> $DIR/empty-match .rs:87 :9
5151 |
5252LL | Some(_) => {}
5353 | ^^^^^^^
5454
5555error[E0004]: non-exhaustive patterns: type `u8` is non-empty
56- --> $DIR/match- empty-exhaustive_patterns .rs:89 :18
56+ --> $DIR/empty-match .rs:90 :18
5757 |
5858LL | match_empty!(0u8);
5959 | ^^^
@@ -62,7 +62,7 @@ LL | match_empty!(0u8);
6262 = note: the matched value is of type `u8`
6363
6464error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty
65- --> $DIR/match- empty-exhaustive_patterns .rs:91 :18
65+ --> $DIR/empty-match .rs:92 :18
6666 |
6767LL | struct NonEmptyStruct(bool);
6868 | ---------------------------- `NonEmptyStruct` defined here
@@ -74,7 +74,7 @@ LL | match_empty!(NonEmptyStruct(true));
7474 = note: the matched value is of type `NonEmptyStruct`
7575
7676error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
77- --> $DIR/match- empty-exhaustive_patterns .rs:93 :18
77+ --> $DIR/empty-match .rs:94 :18
7878 |
7979LL | / union NonEmptyUnion1 {
8080LL | | foo: (),
@@ -88,7 +88,7 @@ LL | match_empty!((NonEmptyUnion1 { foo: () }));
8888 = note: the matched value is of type `NonEmptyUnion1`
8989
9090error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
91- --> $DIR/match- empty-exhaustive_patterns .rs:95 :18
91+ --> $DIR/empty-match .rs:96 :18
9292 |
9393LL | / union NonEmptyUnion2 {
9494LL | | foo: (),
@@ -103,7 +103,7 @@ LL | match_empty!((NonEmptyUnion2 { foo: () }));
103103 = note: the matched value is of type `NonEmptyUnion2`
104104
105105error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
106- --> $DIR/match- empty-exhaustive_patterns .rs:97 :18
106+ --> $DIR/empty-match .rs:98 :18
107107 |
108108LL | / enum NonEmptyEnum1 {
109109LL | | Foo(bool),
@@ -120,7 +120,7 @@ LL | match_empty!(NonEmptyEnum1::Foo(true));
120120 = note: the matched value is of type `NonEmptyEnum1`
121121
122122error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
123- --> $DIR/match- empty-exhaustive_patterns .rs:99 :18
123+ --> $DIR/empty-match .rs:100 :18
124124 |
125125LL | / enum NonEmptyEnum2 {
126126LL | | Foo(bool),
@@ -141,7 +141,7 @@ LL | match_empty!(NonEmptyEnum2::Foo(true));
141141 = note: the matched value is of type `NonEmptyEnum2`
142142
143143error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
144- --> $DIR/match- empty-exhaustive_patterns .rs:101 :18
144+ --> $DIR/empty-match .rs:102 :18
145145 |
146146LL | / enum NonEmptyEnum5 {
147147LL | | V1, V2, V3, V4, V5,
@@ -155,7 +155,7 @@ LL | match_empty!(NonEmptyEnum5::V1);
155155 = note: the matched value is of type `NonEmptyEnum5`
156156
157157error[E0004]: non-exhaustive patterns: `_` not covered
158- --> $DIR/match- empty-exhaustive_patterns .rs:104 :18
158+ --> $DIR/empty-match .rs:105 :18
159159 |
160160LL | match_false!(0u8);
161161 | ^^^ pattern `_` not covered
@@ -164,7 +164,7 @@ LL | match_false!(0u8);
164164 = note: the matched value is of type `u8`
165165
166166error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered
167- --> $DIR/match- empty-exhaustive_patterns .rs:106 :18
167+ --> $DIR/empty-match .rs:107 :18
168168 |
169169LL | struct NonEmptyStruct(bool);
170170 | ---------------------------- `NonEmptyStruct` defined here
@@ -176,7 +176,7 @@ LL | match_false!(NonEmptyStruct(true));
176176 = note: the matched value is of type `NonEmptyStruct`
177177
178178error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
179- --> $DIR/match- empty-exhaustive_patterns .rs:108 :18
179+ --> $DIR/empty-match .rs:109 :18
180180 |
181181LL | / union NonEmptyUnion1 {
182182LL | | foo: (),
@@ -190,7 +190,7 @@ LL | match_false!((NonEmptyUnion1 { foo: () }));
190190 = note: the matched value is of type `NonEmptyUnion1`
191191
192192error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
193- --> $DIR/match- empty-exhaustive_patterns .rs:110 :18
193+ --> $DIR/empty-match .rs:111 :18
194194 |
195195LL | / union NonEmptyUnion2 {
196196LL | | foo: (),
@@ -205,7 +205,7 @@ LL | match_false!((NonEmptyUnion2 { foo: () }));
205205 = note: the matched value is of type `NonEmptyUnion2`
206206
207207error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
208- --> $DIR/match- empty-exhaustive_patterns .rs:112 :18
208+ --> $DIR/empty-match .rs:113 :18
209209 |
210210LL | / enum NonEmptyEnum1 {
211211LL | | Foo(bool),
@@ -222,7 +222,7 @@ LL | match_false!(NonEmptyEnum1::Foo(true));
222222 = note: the matched value is of type `NonEmptyEnum1`
223223
224224error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
225- --> $DIR/match- empty-exhaustive_patterns .rs:114 :18
225+ --> $DIR/empty-match .rs:115 :18
226226 |
227227LL | / enum NonEmptyEnum2 {
228228LL | | Foo(bool),
@@ -243,7 +243,7 @@ LL | match_false!(NonEmptyEnum2::Foo(true));
243243 = note: the matched value is of type `NonEmptyEnum2`
244244
245245error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
246- --> $DIR/match- empty-exhaustive_patterns .rs:116 :18
246+ --> $DIR/empty-match .rs:117 :18
247247 |
248248LL | / enum NonEmptyEnum5 {
249249LL | | V1, V2, V3, V4, V5,
0 commit comments