11error: unreachable pattern
2- --> $DIR/match-empty-exhaustive_patterns.rs:41 :9
2+ --> $DIR/match-empty-exhaustive_patterns.rs:47 :9
33 |
44LL | _ => {},
55 | ^
@@ -11,108 +11,114 @@ LL | #![deny(unreachable_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
1313error: unreachable pattern
14- --> $DIR/match-empty-exhaustive_patterns.rs:44 :9
14+ --> $DIR/match-empty-exhaustive_patterns.rs:50 :9
1515 |
1616LL | _ if false => {},
1717 | ^
1818
1919error: unreachable pattern
20- --> $DIR/match-empty-exhaustive_patterns.rs:51 :9
20+ --> $DIR/match-empty-exhaustive_patterns.rs:57 :9
2121 |
2222LL | Some(_) => {}
2323 | ^^^^^^^
2424
2525error: unreachable pattern
26- --> $DIR/match-empty-exhaustive_patterns.rs:55 :9
26+ --> $DIR/match-empty-exhaustive_patterns.rs:61 :9
2727 |
2828LL | Some(_) => {}
2929 | ^^^^^^^
3030
3131error[E0004]: non-exhaustive patterns: type `u8` is non-empty
32- --> $DIR/match-empty-exhaustive_patterns.rs:58 :18
32+ --> $DIR/match-empty-exhaustive_patterns.rs:64 :18
3333 |
3434LL | match_empty!(0u8);
3535 | ^^^
3636 |
3737 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
3838
3939error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty
40- --> $DIR/match-empty-exhaustive_patterns.rs:60 :18
40+ --> $DIR/match-empty-exhaustive_patterns.rs:66 :18
4141 |
4242LL | match_empty!(NonEmptyStruct(true));
4343 | ^^^^^^^^^^^^^^^^^^^^
4444 |
4545 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
4646
4747error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
48- --> $DIR/match-empty-exhaustive_patterns.rs:62 :18
48+ --> $DIR/match-empty-exhaustive_patterns.rs:68 :18
4949 |
5050LL | match_empty!((NonEmptyUnion1 { foo: () }));
5151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5252 |
5353 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
5454
5555error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
56- --> $DIR/match-empty-exhaustive_patterns.rs:64 :18
56+ --> $DIR/match-empty-exhaustive_patterns.rs:70 :18
5757 |
5858LL | match_empty!((NonEmptyUnion2 { foo: () }));
5959 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6060 |
6161 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
6262
63- error[E0004]: non-exhaustive patterns: pattern `Foo` of type `NonEmptyEnum1` is not handled
64- --> $DIR/match-empty-exhaustive_patterns.rs:66 :18
63+ error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
64+ --> $DIR/match-empty-exhaustive_patterns.rs:72 :18
6565 |
6666LL | / enum NonEmptyEnum1 {
6767LL | | Foo(bool),
68- | | --- variant not covered
68+ | | --- not covered
69+ LL | |
70+ LL | |
6971LL | | }
7072 | |_- `NonEmptyEnum1` defined here
7173...
7274LL | match_empty!(NonEmptyEnum1::Foo(true));
73- | ^^^^^^^^^^^^^^^^^^^^^^^^
75+ | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered
7476 |
7577 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
7678
77- error[E0004]: non-exhaustive patterns: multiple patterns of type `NonEmptyEnum2` are not handled
78- --> $DIR/match-empty-exhaustive_patterns.rs:68 :18
79+ error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
80+ --> $DIR/match-empty-exhaustive_patterns.rs:74 :18
7981 |
8082LL | / enum NonEmptyEnum2 {
8183LL | | Foo(bool),
82- | | --- variant not covered
84+ | | --- not covered
85+ LL | |
86+ LL | |
8387LL | | Bar,
84- | | --- variant not covered
88+ | | --- not covered
89+ LL | |
90+ LL | |
8591LL | | }
8692 | |_- `NonEmptyEnum2` defined here
8793...
8894LL | match_empty!(NonEmptyEnum2::Foo(true));
89- | ^^^^^^^^^^^^^^^^^^^^^^^^
95+ | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered
9096 |
9197 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9298
93- error[E0004]: non-exhaustive patterns: multiple patterns of type `NonEmptyEnum5` are not handled
94- --> $DIR/match-empty-exhaustive_patterns.rs:70 :18
99+ error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
100+ --> $DIR/match-empty-exhaustive_patterns.rs:76 :18
95101 |
96102LL | / enum NonEmptyEnum5 {
97103LL | | V1, V2, V3, V4, V5,
98104LL | | }
99105 | |_- `NonEmptyEnum5` defined here
100106...
101107LL | match_empty!(NonEmptyEnum5::V1);
102- | ^^^^^^^^^^^^^^^^^
108+ | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered
103109 |
104110 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
105111
106112error[E0004]: non-exhaustive patterns: `0u8..=std::u8::MAX` not covered
107- --> $DIR/match-empty-exhaustive_patterns.rs:73 :18
113+ --> $DIR/match-empty-exhaustive_patterns.rs:79 :18
108114 |
109115LL | match_false!(0u8);
110116 | ^^^ pattern `0u8..=std::u8::MAX` not covered
111117 |
112118 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
113119
114120error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered
115- --> $DIR/match-empty-exhaustive_patterns.rs:75 :18
121+ --> $DIR/match-empty-exhaustive_patterns.rs:81 :18
116122 |
117123LL | struct NonEmptyStruct(bool);
118124 | ---------------------------- `NonEmptyStruct` defined here
@@ -123,7 +129,7 @@ LL | match_false!(NonEmptyStruct(true));
123129 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
124130
125131error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
126- --> $DIR/match-empty-exhaustive_patterns.rs:77 :18
132+ --> $DIR/match-empty-exhaustive_patterns.rs:83 :18
127133 |
128134LL | / union NonEmptyUnion1 {
129135LL | | foo: (),
@@ -136,7 +142,7 @@ LL | match_false!((NonEmptyUnion1 { foo: () }));
136142 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
137143
138144error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
139- --> $DIR/match-empty-exhaustive_patterns.rs:79 :18
145+ --> $DIR/match-empty-exhaustive_patterns.rs:85 :18
140146 |
141147LL | / union NonEmptyUnion2 {
142148LL | | foo: (),
@@ -150,11 +156,13 @@ LL | match_false!((NonEmptyUnion2 { foo: () }));
150156 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
151157
152158error[E0004]: non-exhaustive patterns: `Foo(_)` not covered
153- --> $DIR/match-empty-exhaustive_patterns.rs:81 :18
159+ --> $DIR/match-empty-exhaustive_patterns.rs:87 :18
154160 |
155161LL | / enum NonEmptyEnum1 {
156162LL | | Foo(bool),
157163 | | --- not covered
164+ LL | |
165+ LL | |
158166LL | | }
159167 | |_- `NonEmptyEnum1` defined here
160168...
@@ -164,13 +172,17 @@ LL | match_false!(NonEmptyEnum1::Foo(true));
164172 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
165173
166174error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered
167- --> $DIR/match-empty-exhaustive_patterns.rs:83 :18
175+ --> $DIR/match-empty-exhaustive_patterns.rs:89 :18
168176 |
169177LL | / enum NonEmptyEnum2 {
170178LL | | Foo(bool),
171179 | | --- not covered
180+ LL | |
181+ LL | |
172182LL | | Bar,
173183 | | --- not covered
184+ LL | |
185+ LL | |
174186LL | | }
175187 | |_- `NonEmptyEnum2` defined here
176188...
@@ -180,7 +192,7 @@ LL | match_false!(NonEmptyEnum2::Foo(true));
180192 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
181193
182194error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered
183- --> $DIR/match-empty-exhaustive_patterns.rs:85 :18
195+ --> $DIR/match-empty-exhaustive_patterns.rs:91 :18
184196 |
185197LL | / enum NonEmptyEnum5 {
186198LL | | V1, V2, V3, V4, V5,
0 commit comments