@@ -176,14 +176,15 @@ LL | match_guarded_arm!(0u8);
176176 | ^^^ pattern `_` not covered
177177 |
178178 = note: the matched value is of type `u8`
179+ = note: match arms with guards don't count towards exhaustivity
179180help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
180181 |
181182LL ~ _ if false => {},
182183LL + _ => todo!()
183184 |
184185
185186error[E0004]: non-exhaustive patterns: `NonEmptyStruct1` not covered
186- --> $DIR/empty-match.rs:133 :24
187+ --> $DIR/empty-match.rs:134 :24
187188 |
188189LL | match_guarded_arm!(NonEmptyStruct1);
189190 | ^^^^^^^^^^^^^^^ pattern `NonEmptyStruct1` not covered
@@ -194,14 +195,15 @@ note: `NonEmptyStruct1` defined here
194195LL | struct NonEmptyStruct1;
195196 | ^^^^^^^^^^^^^^^
196197 = note: the matched value is of type `NonEmptyStruct1`
198+ = note: match arms with guards don't count towards exhaustivity
197199help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
198200 |
199201LL ~ _ if false => {},
200202LL + NonEmptyStruct1 => todo!()
201203 |
202204
203205error[E0004]: non-exhaustive patterns: `NonEmptyStruct2(_)` not covered
204- --> $DIR/empty-match.rs:137 :24
206+ --> $DIR/empty-match.rs:139 :24
205207 |
206208LL | match_guarded_arm!(NonEmptyStruct2(true));
207209 | ^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct2(_)` not covered
@@ -212,14 +214,15 @@ note: `NonEmptyStruct2` defined here
212214LL | struct NonEmptyStruct2(bool);
213215 | ^^^^^^^^^^^^^^^
214216 = note: the matched value is of type `NonEmptyStruct2`
217+ = note: match arms with guards don't count towards exhaustivity
215218help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
216219 |
217220LL ~ _ if false => {},
218221LL + NonEmptyStruct2(_) => todo!()
219222 |
220223
221224error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
222- --> $DIR/empty-match.rs:141 :24
225+ --> $DIR/empty-match.rs:144 :24
223226 |
224227LL | match_guarded_arm!((NonEmptyUnion1 { foo: () }));
225228 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered
@@ -230,14 +233,15 @@ note: `NonEmptyUnion1` defined here
230233LL | union NonEmptyUnion1 {
231234 | ^^^^^^^^^^^^^^
232235 = note: the matched value is of type `NonEmptyUnion1`
236+ = note: match arms with guards don't count towards exhaustivity
233237help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
234238 |
235239LL ~ _ if false => {},
236240LL + NonEmptyUnion1 { .. } => todo!()
237241 |
238242
239243error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
240- --> $DIR/empty-match.rs:145 :24
244+ --> $DIR/empty-match.rs:149 :24
241245 |
242246LL | match_guarded_arm!((NonEmptyUnion2 { foo: () }));
243247 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered
@@ -248,14 +252,15 @@ note: `NonEmptyUnion2` defined here
248252LL | union NonEmptyUnion2 {
249253 | ^^^^^^^^^^^^^^
250254 = note: the matched value is of type `NonEmptyUnion2`
255+ = note: match arms with guards don't count towards exhaustivity
251256help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
252257 |
253258LL ~ _ if false => {},
254259LL + NonEmptyUnion2 { .. } => todo!()
255260 |
256261
257262error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
258- --> $DIR/empty-match.rs:149 :24
263+ --> $DIR/empty-match.rs:154 :24
259264 |
260265LL | match_guarded_arm!(NonEmptyEnum1::Foo(true));
261266 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
@@ -268,14 +273,15 @@ LL | enum NonEmptyEnum1 {
268273LL | Foo(bool),
269274 | ^^^ not covered
270275 = note: the matched value is of type `NonEmptyEnum1`
276+ = note: match arms with guards don't count towards exhaustivity
271277help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
272278 |
273279LL ~ _ if false => {},
274280LL + NonEmptyEnum1::Foo(_) => todo!()
275281 |
276282
277283error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
278- --> $DIR/empty-match.rs:153 :24
284+ --> $DIR/empty-match.rs:159 :24
279285 |
280286LL | match_guarded_arm!(NonEmptyEnum2::Foo(true));
281287 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
@@ -291,14 +297,15 @@ LL | Foo(bool),
291297LL | Bar,
292298 | ^^^ not covered
293299 = note: the matched value is of type `NonEmptyEnum2`
300+ = note: match arms with guards don't count towards exhaustivity
294301help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms
295302 |
296303LL ~ _ if false => {},
297304LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!()
298305 |
299306
300307error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
301- --> $DIR/empty-match.rs:157 :24
308+ --> $DIR/empty-match.rs:164 :24
302309 |
303310LL | match_guarded_arm!(NonEmptyEnum5::V1);
304311 | ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
@@ -309,6 +316,7 @@ note: `NonEmptyEnum5` defined here
309316LL | enum NonEmptyEnum5 {
310317 | ^^^^^^^^^^^^^
311318 = note: the matched value is of type `NonEmptyEnum5`
319+ = note: match arms with guards don't count towards exhaustivity
312320help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms
313321 |
314322LL ~ _ if false => {},
0 commit comments