@@ -7,9 +7,36 @@ LL | match_no_arms!(0u8);
7
7
= note: the matched value is of type `u8`
8
8
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
9
9
10
- error[E0004]: non-exhaustive patterns: type `NonEmptyStruct1 ` is non-empty
10
+ error[E0004]: non-exhaustive patterns: type `i8 ` is non-empty
11
11
--> $DIR/empty-match.rs:47:20
12
12
|
13
+ LL | match_no_arms!(0i8);
14
+ | ^^^
15
+ |
16
+ = note: the matched value is of type `i8`
17
+ = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
18
+
19
+ error[E0004]: non-exhaustive patterns: type `usize` is non-empty
20
+ --> $DIR/empty-match.rs:48:20
21
+ |
22
+ LL | match_no_arms!(0usize);
23
+ | ^^^^^^
24
+ |
25
+ = note: the matched value is of type `usize`
26
+ = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
27
+
28
+ error[E0004]: non-exhaustive patterns: type `isize` is non-empty
29
+ --> $DIR/empty-match.rs:49:20
30
+ |
31
+ LL | match_no_arms!(0isize);
32
+ | ^^^^^^
33
+ |
34
+ = note: the matched value is of type `isize`
35
+ = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
36
+
37
+ error[E0004]: non-exhaustive patterns: type `NonEmptyStruct1` is non-empty
38
+ --> $DIR/empty-match.rs:50:20
39
+ |
13
40
LL | match_no_arms!(NonEmptyStruct1);
14
41
| ^^^^^^^^^^^^^^^
15
42
|
@@ -22,7 +49,7 @@ LL | struct NonEmptyStruct1;
22
49
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
23
50
24
51
error[E0004]: non-exhaustive patterns: type `NonEmptyStruct2` is non-empty
25
- --> $DIR/empty-match.rs:48 :20
52
+ --> $DIR/empty-match.rs:51 :20
26
53
|
27
54
LL | match_no_arms!(NonEmptyStruct2(true));
28
55
| ^^^^^^^^^^^^^^^^^^^^^
@@ -36,7 +63,7 @@ LL | struct NonEmptyStruct2(bool);
36
63
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
37
64
38
65
error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
39
- --> $DIR/empty-match.rs:49 :20
66
+ --> $DIR/empty-match.rs:52 :20
40
67
|
41
68
LL | match_no_arms!((NonEmptyUnion1 { foo: () }));
42
69
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -50,7 +77,7 @@ LL | union NonEmptyUnion1 {
50
77
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
51
78
52
79
error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
53
- --> $DIR/empty-match.rs:50 :20
80
+ --> $DIR/empty-match.rs:53 :20
54
81
|
55
82
LL | match_no_arms!((NonEmptyUnion2 { foo: () }));
56
83
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -64,7 +91,7 @@ LL | union NonEmptyUnion2 {
64
91
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
65
92
66
93
error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
67
- --> $DIR/empty-match.rs:51 :20
94
+ --> $DIR/empty-match.rs:54 :20
68
95
|
69
96
LL | match_no_arms!(NonEmptyEnum1::Foo(true));
70
97
| ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
@@ -80,7 +107,7 @@ LL | Foo(bool),
80
107
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern
81
108
82
109
error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
83
- --> $DIR/empty-match.rs:52 :20
110
+ --> $DIR/empty-match.rs:55 :20
84
111
|
85
112
LL | match_no_arms!(NonEmptyEnum2::Foo(true));
86
113
| ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
@@ -98,7 +125,7 @@ LL | Bar,
98
125
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms
99
126
100
127
error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
101
- --> $DIR/empty-match.rs:53 :20
128
+ --> $DIR/empty-match.rs:56 :20
102
129
|
103
130
LL | match_no_arms!(NonEmptyEnum5::V1);
104
131
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
@@ -121,22 +148,64 @@ LL | V5,
121
148
= note: the matched value is of type `NonEmptyEnum5`
122
149
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms
123
150
124
- error[E0004]: non-exhaustive patterns: `_ ` not covered
125
- --> $DIR/empty-match.rs:55 :24
151
+ error[E0004]: non-exhaustive patterns: `0_u8..=u8::MAX ` not covered
152
+ --> $DIR/empty-match.rs:58 :24
126
153
|
127
154
LL | match_guarded_arm!(0u8);
128
- | ^^^ pattern `_ ` not covered
155
+ | ^^^ pattern `0_u8..=u8::MAX ` not covered
129
156
|
130
157
= note: the matched value is of type `u8`
131
158
= note: match arms with guards don't count towards exhaustivity
132
159
help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
133
160
|
134
161
LL ~ _ if false => {},
162
+ LL + 0_u8..=u8::MAX => todo!()
163
+ |
164
+
165
+ error[E0004]: non-exhaustive patterns: `i8::MIN..=i8::MAX` not covered
166
+ --> $DIR/empty-match.rs:59:24
167
+ |
168
+ LL | match_guarded_arm!(0i8);
169
+ | ^^^ pattern `i8::MIN..=i8::MAX` not covered
170
+ |
171
+ = note: the matched value is of type `i8`
172
+ = note: match arms with guards don't count towards exhaustivity
173
+ help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
174
+ |
175
+ LL ~ _ if false => {},
176
+ LL + i8::MIN..=i8::MAX => todo!()
177
+ |
178
+
179
+ error[E0004]: non-exhaustive patterns: `0_usize..` not covered
180
+ --> $DIR/empty-match.rs:60:24
181
+ |
182
+ LL | match_guarded_arm!(0usize);
183
+ | ^^^^^^ pattern `0_usize..` not covered
184
+ |
185
+ = note: the matched value is of type `usize`
186
+ = note: match arms with guards don't count towards exhaustivity
187
+ help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
188
+ |
189
+ LL ~ _ if false => {},
190
+ LL + 0_usize.. => todo!()
191
+ |
192
+
193
+ error[E0004]: non-exhaustive patterns: `_` not covered
194
+ --> $DIR/empty-match.rs:61:24
195
+ |
196
+ LL | match_guarded_arm!(0isize);
197
+ | ^^^^^^ pattern `_` not covered
198
+ |
199
+ = note: the matched value is of type `isize`
200
+ = note: match arms with guards don't count towards exhaustivity
201
+ help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown
202
+ |
203
+ LL ~ _ if false => {},
135
204
LL + _ => todo!()
136
205
|
137
206
138
207
error[E0004]: non-exhaustive patterns: `NonEmptyStruct1` not covered
139
- --> $DIR/empty-match.rs:56 :24
208
+ --> $DIR/empty-match.rs:62 :24
140
209
|
141
210
LL | match_guarded_arm!(NonEmptyStruct1);
142
211
| ^^^^^^^^^^^^^^^ pattern `NonEmptyStruct1` not covered
@@ -155,7 +224,7 @@ LL + NonEmptyStruct1 => todo!()
155
224
|
156
225
157
226
error[E0004]: non-exhaustive patterns: `NonEmptyStruct2(_)` not covered
158
- --> $DIR/empty-match.rs:57 :24
227
+ --> $DIR/empty-match.rs:63 :24
159
228
|
160
229
LL | match_guarded_arm!(NonEmptyStruct2(true));
161
230
| ^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct2(_)` not covered
@@ -174,7 +243,7 @@ LL + NonEmptyStruct2(_) => todo!()
174
243
|
175
244
176
245
error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
177
- --> $DIR/empty-match.rs:58 :24
246
+ --> $DIR/empty-match.rs:64 :24
178
247
|
179
248
LL | match_guarded_arm!((NonEmptyUnion1 { foo: () }));
180
249
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered
@@ -193,7 +262,7 @@ LL + NonEmptyUnion1 { .. } => todo!()
193
262
|
194
263
195
264
error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
196
- --> $DIR/empty-match.rs:59 :24
265
+ --> $DIR/empty-match.rs:65 :24
197
266
|
198
267
LL | match_guarded_arm!((NonEmptyUnion2 { foo: () }));
199
268
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered
@@ -212,7 +281,7 @@ LL + NonEmptyUnion2 { .. } => todo!()
212
281
|
213
282
214
283
error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
215
- --> $DIR/empty-match.rs:60 :24
284
+ --> $DIR/empty-match.rs:66 :24
216
285
|
217
286
LL | match_guarded_arm!(NonEmptyEnum1::Foo(true));
218
287
| ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
@@ -233,7 +302,7 @@ LL + NonEmptyEnum1::Foo(_) => todo!()
233
302
|
234
303
235
304
error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
236
- --> $DIR/empty-match.rs:61 :24
305
+ --> $DIR/empty-match.rs:67 :24
237
306
|
238
307
LL | match_guarded_arm!(NonEmptyEnum2::Foo(true));
239
308
| ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
@@ -256,7 +325,7 @@ LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!()
256
325
|
257
326
258
327
error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
259
- --> $DIR/empty-match.rs:62 :24
328
+ --> $DIR/empty-match.rs:68 :24
260
329
|
261
330
LL | match_guarded_arm!(NonEmptyEnum5::V1);
262
331
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
@@ -284,6 +353,6 @@ LL ~ _ if false => {},
284
353
LL + _ => todo!()
285
354
|
286
355
287
- error: aborting due to 16 previous errors
356
+ error: aborting due to 22 previous errors
288
357
289
358
For more information about this error, try `rustc --explain E0004`.
0 commit comments