1
1
error: unreachable pattern
2
- --> $DIR/empty-match.rs:37 :9
2
+ --> $DIR/empty-match.rs:58 :9
3
3
|
4
4
LL | _ => {},
5
5
| ^
@@ -11,25 +11,25 @@ LL | #![deny(unreachable_patterns)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
13
error: unreachable pattern
14
- --> $DIR/empty-match.rs:40 :9
14
+ --> $DIR/empty-match.rs:61 :9
15
15
|
16
16
LL | _ if false => {},
17
17
| ^
18
18
19
19
error: unreachable pattern
20
- --> $DIR/empty-match.rs:47 :9
20
+ --> $DIR/empty-match.rs:68 :9
21
21
|
22
22
LL | _ => {},
23
23
| ^
24
24
25
25
error: unreachable pattern
26
- --> $DIR/empty-match.rs:50 :9
26
+ --> $DIR/empty-match.rs:71 :9
27
27
|
28
28
LL | _ if false => {},
29
29
| ^
30
30
31
31
error[E0005]: refutable pattern in local binding
32
- --> $DIR/empty-match.rs:55 :9
32
+ --> $DIR/empty-match.rs:76 :9
33
33
|
34
34
LL | let None = x;
35
35
| ^^^^ pattern `Some(_)` not covered
@@ -44,19 +44,19 @@ LL | if let None = x { todo!() };
44
44
| ++ +++++++++++
45
45
46
46
error: unreachable pattern
47
- --> $DIR/empty-match.rs:61 :9
47
+ --> $DIR/empty-match.rs:88 :9
48
48
|
49
49
LL | _ => {},
50
50
| ^
51
51
52
52
error: unreachable pattern
53
- --> $DIR/empty-match.rs:64 :9
53
+ --> $DIR/empty-match.rs:91 :9
54
54
|
55
55
LL | _ if false => {},
56
56
| ^
57
57
58
58
error[E0004]: non-exhaustive patterns: type `u8` is non-empty
59
- --> $DIR/empty-match.rs:82 :20
59
+ --> $DIR/empty-match.rs:109 :20
60
60
|
61
61
LL | match_no_arms!(0u8);
62
62
| ^^^
@@ -65,69 +65,69 @@ LL | match_no_arms!(0u8);
65
65
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
66
66
67
67
error[E0004]: non-exhaustive patterns: type `NonEmptyStruct1` is non-empty
68
- --> $DIR/empty-match.rs:83 :20
68
+ --> $DIR/empty-match.rs:111 :20
69
69
|
70
70
LL | match_no_arms!(NonEmptyStruct1);
71
71
| ^^^^^^^^^^^^^^^
72
72
|
73
73
note: `NonEmptyStruct1` defined here
74
- --> $DIR/empty-match.rs:14 :8
74
+ --> $DIR/empty-match.rs:15 :8
75
75
|
76
76
LL | struct NonEmptyStruct1;
77
77
| ^^^^^^^^^^^^^^^
78
78
= note: the matched value is of type `NonEmptyStruct1`
79
79
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
80
80
81
81
error[E0004]: non-exhaustive patterns: type `NonEmptyStruct2` is non-empty
82
- --> $DIR/empty-match.rs:84 :20
82
+ --> $DIR/empty-match.rs:113 :20
83
83
|
84
84
LL | match_no_arms!(NonEmptyStruct2(true));
85
85
| ^^^^^^^^^^^^^^^^^^^^^
86
86
|
87
87
note: `NonEmptyStruct2` defined here
88
- --> $DIR/empty-match.rs:15 :8
88
+ --> $DIR/empty-match.rs:18 :8
89
89
|
90
90
LL | struct NonEmptyStruct2(bool);
91
91
| ^^^^^^^^^^^^^^^
92
92
= note: the matched value is of type `NonEmptyStruct2`
93
93
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
94
94
95
95
error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
96
- --> $DIR/empty-match.rs:85 :20
96
+ --> $DIR/empty-match.rs:115 :20
97
97
|
98
98
LL | match_no_arms!((NonEmptyUnion1 { foo: () }));
99
99
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100
100
|
101
101
note: `NonEmptyUnion1` defined here
102
- --> $DIR/empty-match.rs:16 :7
102
+ --> $DIR/empty-match.rs:21 :7
103
103
|
104
104
LL | union NonEmptyUnion1 {
105
105
| ^^^^^^^^^^^^^^
106
106
= note: the matched value is of type `NonEmptyUnion1`
107
107
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
108
108
109
109
error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
110
- --> $DIR/empty-match.rs:86 :20
110
+ --> $DIR/empty-match.rs:117 :20
111
111
|
112
112
LL | match_no_arms!((NonEmptyUnion2 { foo: () }));
113
113
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114
114
|
115
115
note: `NonEmptyUnion2` defined here
116
- --> $DIR/empty-match.rs:19 :7
116
+ --> $DIR/empty-match.rs:26 :7
117
117
|
118
118
LL | union NonEmptyUnion2 {
119
119
| ^^^^^^^^^^^^^^
120
120
= note: the matched value is of type `NonEmptyUnion2`
121
121
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
122
122
123
123
error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
124
- --> $DIR/empty-match.rs:87 :20
124
+ --> $DIR/empty-match.rs:119 :20
125
125
|
126
126
LL | match_no_arms!(NonEmptyEnum1::Foo(true));
127
127
| ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
128
128
|
129
129
note: `NonEmptyEnum1` defined here
130
- --> $DIR/empty-match.rs:24 :5
130
+ --> $DIR/empty-match.rs:33 :5
131
131
|
132
132
LL | enum NonEmptyEnum1 {
133
133
| -------------
@@ -137,39 +137,40 @@ LL | Foo(bool),
137
137
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern
138
138
139
139
error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
140
- --> $DIR/empty-match.rs:88 :20
140
+ --> $DIR/empty-match.rs:122 :20
141
141
|
142
142
LL | match_no_arms!(NonEmptyEnum2::Foo(true));
143
143
| ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
144
144
|
145
145
note: `NonEmptyEnum2` defined here
146
- --> $DIR/empty-match.rs:27 :5
146
+ --> $DIR/empty-match.rs:40 :5
147
147
|
148
148
LL | enum NonEmptyEnum2 {
149
149
| -------------
150
150
LL | Foo(bool),
151
151
| ^^^ not covered
152
+ ...
152
153
LL | Bar,
153
154
| ^^^ not covered
154
155
= note: the matched value is of type `NonEmptyEnum2`
155
156
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms
156
157
157
158
error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
158
- --> $DIR/empty-match.rs:89 :20
159
+ --> $DIR/empty-match.rs:125 :20
159
160
|
160
161
LL | match_no_arms!(NonEmptyEnum5::V1);
161
162
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
162
163
|
163
164
note: `NonEmptyEnum5` defined here
164
- --> $DIR/empty-match.rs:30 :6
165
+ --> $DIR/empty-match.rs:49 :6
165
166
|
166
167
LL | enum NonEmptyEnum5 {
167
168
| ^^^^^^^^^^^^^
168
169
= note: the matched value is of type `NonEmptyEnum5`
169
170
= help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms
170
171
171
172
error[E0004]: non-exhaustive patterns: `_` not covered
172
- --> $DIR/empty-match.rs:91 :24
173
+ --> $DIR/empty-match.rs:129 :24
173
174
|
174
175
LL | match_guarded_arm!(0u8);
175
176
| ^^^ pattern `_` not covered
@@ -182,13 +183,13 @@ LL + _ => todo!()
182
183
|
183
184
184
185
error[E0004]: non-exhaustive patterns: `NonEmptyStruct1` not covered
185
- --> $DIR/empty-match.rs:92 :24
186
+ --> $DIR/empty-match.rs:133 :24
186
187
|
187
188
LL | match_guarded_arm!(NonEmptyStruct1);
188
189
| ^^^^^^^^^^^^^^^ pattern `NonEmptyStruct1` not covered
189
190
|
190
191
note: `NonEmptyStruct1` defined here
191
- --> $DIR/empty-match.rs:14 :8
192
+ --> $DIR/empty-match.rs:15 :8
192
193
|
193
194
LL | struct NonEmptyStruct1;
194
195
| ^^^^^^^^^^^^^^^
@@ -200,13 +201,13 @@ LL + NonEmptyStruct1 => todo!()
200
201
|
201
202
202
203
error[E0004]: non-exhaustive patterns: `NonEmptyStruct2(_)` not covered
203
- --> $DIR/empty-match.rs:93 :24
204
+ --> $DIR/empty-match.rs:137 :24
204
205
|
205
206
LL | match_guarded_arm!(NonEmptyStruct2(true));
206
207
| ^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct2(_)` not covered
207
208
|
208
209
note: `NonEmptyStruct2` defined here
209
- --> $DIR/empty-match.rs:15 :8
210
+ --> $DIR/empty-match.rs:18 :8
210
211
|
211
212
LL | struct NonEmptyStruct2(bool);
212
213
| ^^^^^^^^^^^^^^^
@@ -218,13 +219,13 @@ LL + NonEmptyStruct2(_) => todo!()
218
219
|
219
220
220
221
error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
221
- --> $DIR/empty-match.rs:94 :24
222
+ --> $DIR/empty-match.rs:141 :24
222
223
|
223
224
LL | match_guarded_arm!((NonEmptyUnion1 { foo: () }));
224
225
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered
225
226
|
226
227
note: `NonEmptyUnion1` defined here
227
- --> $DIR/empty-match.rs:16 :7
228
+ --> $DIR/empty-match.rs:21 :7
228
229
|
229
230
LL | union NonEmptyUnion1 {
230
231
| ^^^^^^^^^^^^^^
@@ -236,13 +237,13 @@ LL + NonEmptyUnion1 { .. } => todo!()
236
237
|
237
238
238
239
error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
239
- --> $DIR/empty-match.rs:95 :24
240
+ --> $DIR/empty-match.rs:145 :24
240
241
|
241
242
LL | match_guarded_arm!((NonEmptyUnion2 { foo: () }));
242
243
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered
243
244
|
244
245
note: `NonEmptyUnion2` defined here
245
- --> $DIR/empty-match.rs:19 :7
246
+ --> $DIR/empty-match.rs:26 :7
246
247
|
247
248
LL | union NonEmptyUnion2 {
248
249
| ^^^^^^^^^^^^^^
@@ -254,13 +255,13 @@ LL + NonEmptyUnion2 { .. } => todo!()
254
255
|
255
256
256
257
error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
257
- --> $DIR/empty-match.rs:96 :24
258
+ --> $DIR/empty-match.rs:149 :24
258
259
|
259
260
LL | match_guarded_arm!(NonEmptyEnum1::Foo(true));
260
261
| ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
261
262
|
262
263
note: `NonEmptyEnum1` defined here
263
- --> $DIR/empty-match.rs:24 :5
264
+ --> $DIR/empty-match.rs:33 :5
264
265
|
265
266
LL | enum NonEmptyEnum1 {
266
267
| -------------
@@ -274,18 +275,19 @@ LL + NonEmptyEnum1::Foo(_) => todo!()
274
275
|
275
276
276
277
error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
277
- --> $DIR/empty-match.rs:97 :24
278
+ --> $DIR/empty-match.rs:153 :24
278
279
|
279
280
LL | match_guarded_arm!(NonEmptyEnum2::Foo(true));
280
281
| ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
281
282
|
282
283
note: `NonEmptyEnum2` defined here
283
- --> $DIR/empty-match.rs:27 :5
284
+ --> $DIR/empty-match.rs:40 :5
284
285
|
285
286
LL | enum NonEmptyEnum2 {
286
287
| -------------
287
288
LL | Foo(bool),
288
289
| ^^^ not covered
290
+ ...
289
291
LL | Bar,
290
292
| ^^^ not covered
291
293
= note: the matched value is of type `NonEmptyEnum2`
@@ -296,13 +298,13 @@ LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!()
296
298
|
297
299
298
300
error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
299
- --> $DIR/empty-match.rs:98 :24
301
+ --> $DIR/empty-match.rs:157 :24
300
302
|
301
303
LL | match_guarded_arm!(NonEmptyEnum5::V1);
302
304
| ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
303
305
|
304
306
note: `NonEmptyEnum5` defined here
305
- --> $DIR/empty-match.rs:30 :6
307
+ --> $DIR/empty-match.rs:49 :6
306
308
|
307
309
LL | enum NonEmptyEnum5 {
308
310
| ^^^^^^^^^^^^^
0 commit comments