11error: unreachable pattern
2- --> $DIR/empty-match.rs:37 :9
2+ --> $DIR/empty-match.rs:58 :9
33 |
44LL | _ => {},
55 | ^
@@ -11,25 +11,25 @@ LL | #![deny(unreachable_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
1313error: unreachable pattern
14- --> $DIR/empty-match.rs:40 :9
14+ --> $DIR/empty-match.rs:61 :9
1515 |
1616LL | _ if false => {},
1717 | ^
1818
1919error: unreachable pattern
20- --> $DIR/empty-match.rs:47 :9
20+ --> $DIR/empty-match.rs:68 :9
2121 |
2222LL | _ => {},
2323 | ^
2424
2525error: unreachable pattern
26- --> $DIR/empty-match.rs:50 :9
26+ --> $DIR/empty-match.rs:71 :9
2727 |
2828LL | _ if false => {},
2929 | ^
3030
3131error[E0005]: refutable pattern in local binding
32- --> $DIR/empty-match.rs:55 :9
32+ --> $DIR/empty-match.rs:76 :9
3333 |
3434LL | let None = x;
3535 | ^^^^ pattern `Some(_)` not covered
@@ -44,19 +44,19 @@ LL | if let None = x { todo!() };
4444 | ++ +++++++++++
4545
4646error: unreachable pattern
47- --> $DIR/empty-match.rs:61 :9
47+ --> $DIR/empty-match.rs:88 :9
4848 |
4949LL | _ => {},
5050 | ^
5151
5252error: unreachable pattern
53- --> $DIR/empty-match.rs:64 :9
53+ --> $DIR/empty-match.rs:91 :9
5454 |
5555LL | _ if false => {},
5656 | ^
5757
5858error[E0004]: non-exhaustive patterns: type `u8` is non-empty
59- --> $DIR/empty-match.rs:82 :20
59+ --> $DIR/empty-match.rs:109 :20
6060 |
6161LL | match_no_arms!(0u8);
6262 | ^^^
@@ -65,69 +65,69 @@ LL | match_no_arms!(0u8);
6565 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
6666
6767error[E0004]: non-exhaustive patterns: type `NonEmptyStruct1` is non-empty
68- --> $DIR/empty-match.rs:83 :20
68+ --> $DIR/empty-match.rs:111 :20
6969 |
7070LL | match_no_arms!(NonEmptyStruct1);
7171 | ^^^^^^^^^^^^^^^
7272 |
7373note: `NonEmptyStruct1` defined here
74- --> $DIR/empty-match.rs:14 :8
74+ --> $DIR/empty-match.rs:15 :8
7575 |
7676LL | struct NonEmptyStruct1;
7777 | ^^^^^^^^^^^^^^^
7878 = note: the matched value is of type `NonEmptyStruct1`
7979 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
8080
8181error[E0004]: non-exhaustive patterns: type `NonEmptyStruct2` is non-empty
82- --> $DIR/empty-match.rs:84 :20
82+ --> $DIR/empty-match.rs:113 :20
8383 |
8484LL | match_no_arms!(NonEmptyStruct2(true));
8585 | ^^^^^^^^^^^^^^^^^^^^^
8686 |
8787note: `NonEmptyStruct2` defined here
88- --> $DIR/empty-match.rs:15 :8
88+ --> $DIR/empty-match.rs:18 :8
8989 |
9090LL | struct NonEmptyStruct2(bool);
9191 | ^^^^^^^^^^^^^^^
9292 = note: the matched value is of type `NonEmptyStruct2`
9393 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
9494
9595error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty
96- --> $DIR/empty-match.rs:85 :20
96+ --> $DIR/empty-match.rs:115 :20
9797 |
9898LL | match_no_arms!((NonEmptyUnion1 { foo: () }));
9999 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
100100 |
101101note: `NonEmptyUnion1` defined here
102- --> $DIR/empty-match.rs:16 :7
102+ --> $DIR/empty-match.rs:21 :7
103103 |
104104LL | union NonEmptyUnion1 {
105105 | ^^^^^^^^^^^^^^
106106 = note: the matched value is of type `NonEmptyUnion1`
107107 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
108108
109109error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty
110- --> $DIR/empty-match.rs:86 :20
110+ --> $DIR/empty-match.rs:117 :20
111111 |
112112LL | match_no_arms!((NonEmptyUnion2 { foo: () }));
113113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114114 |
115115note: `NonEmptyUnion2` defined here
116- --> $DIR/empty-match.rs:19 :7
116+ --> $DIR/empty-match.rs:26 :7
117117 |
118118LL | union NonEmptyUnion2 {
119119 | ^^^^^^^^^^^^^^
120120 = note: the matched value is of type `NonEmptyUnion2`
121121 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern
122122
123123error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
124- --> $DIR/empty-match.rs:87 :20
124+ --> $DIR/empty-match.rs:119 :20
125125 |
126126LL | match_no_arms!(NonEmptyEnum1::Foo(true));
127127 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
128128 |
129129note: `NonEmptyEnum1` defined here
130- --> $DIR/empty-match.rs:24 :5
130+ --> $DIR/empty-match.rs:33 :5
131131 |
132132LL | enum NonEmptyEnum1 {
133133 | -------------
@@ -137,39 +137,40 @@ LL | Foo(bool),
137137 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern
138138
139139error[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
141141 |
142142LL | match_no_arms!(NonEmptyEnum2::Foo(true));
143143 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
144144 |
145145note: `NonEmptyEnum2` defined here
146- --> $DIR/empty-match.rs:27 :5
146+ --> $DIR/empty-match.rs:40 :5
147147 |
148148LL | enum NonEmptyEnum2 {
149149 | -------------
150150LL | Foo(bool),
151151 | ^^^ not covered
152+ ...
152153LL | Bar,
153154 | ^^^ not covered
154155 = note: the matched value is of type `NonEmptyEnum2`
155156 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms
156157
157158error[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
159160 |
160161LL | match_no_arms!(NonEmptyEnum5::V1);
161162 | ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
162163 |
163164note: `NonEmptyEnum5` defined here
164- --> $DIR/empty-match.rs:30 :6
165+ --> $DIR/empty-match.rs:49 :6
165166 |
166167LL | enum NonEmptyEnum5 {
167168 | ^^^^^^^^^^^^^
168169 = note: the matched value is of type `NonEmptyEnum5`
169170 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms
170171
171172error[E0004]: non-exhaustive patterns: `_` not covered
172- --> $DIR/empty-match.rs:91 :24
173+ --> $DIR/empty-match.rs:129 :24
173174 |
174175LL | match_guarded_arm!(0u8);
175176 | ^^^ pattern `_` not covered
@@ -182,13 +183,13 @@ LL + _ => todo!()
182183 |
183184
184185error[E0004]: non-exhaustive patterns: `NonEmptyStruct1` not covered
185- --> $DIR/empty-match.rs:92 :24
186+ --> $DIR/empty-match.rs:133 :24
186187 |
187188LL | match_guarded_arm!(NonEmptyStruct1);
188189 | ^^^^^^^^^^^^^^^ pattern `NonEmptyStruct1` not covered
189190 |
190191note: `NonEmptyStruct1` defined here
191- --> $DIR/empty-match.rs:14 :8
192+ --> $DIR/empty-match.rs:15 :8
192193 |
193194LL | struct NonEmptyStruct1;
194195 | ^^^^^^^^^^^^^^^
@@ -200,13 +201,13 @@ LL + NonEmptyStruct1 => todo!()
200201 |
201202
202203error[E0004]: non-exhaustive patterns: `NonEmptyStruct2(_)` not covered
203- --> $DIR/empty-match.rs:93 :24
204+ --> $DIR/empty-match.rs:137 :24
204205 |
205206LL | match_guarded_arm!(NonEmptyStruct2(true));
206207 | ^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct2(_)` not covered
207208 |
208209note: `NonEmptyStruct2` defined here
209- --> $DIR/empty-match.rs:15 :8
210+ --> $DIR/empty-match.rs:18 :8
210211 |
211212LL | struct NonEmptyStruct2(bool);
212213 | ^^^^^^^^^^^^^^^
@@ -218,13 +219,13 @@ LL + NonEmptyStruct2(_) => todo!()
218219 |
219220
220221error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered
221- --> $DIR/empty-match.rs:94 :24
222+ --> $DIR/empty-match.rs:141 :24
222223 |
223224LL | match_guarded_arm!((NonEmptyUnion1 { foo: () }));
224225 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered
225226 |
226227note: `NonEmptyUnion1` defined here
227- --> $DIR/empty-match.rs:16 :7
228+ --> $DIR/empty-match.rs:21 :7
228229 |
229230LL | union NonEmptyUnion1 {
230231 | ^^^^^^^^^^^^^^
@@ -236,13 +237,13 @@ LL + NonEmptyUnion1 { .. } => todo!()
236237 |
237238
238239error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered
239- --> $DIR/empty-match.rs:95 :24
240+ --> $DIR/empty-match.rs:145 :24
240241 |
241242LL | match_guarded_arm!((NonEmptyUnion2 { foo: () }));
242243 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered
243244 |
244245note: `NonEmptyUnion2` defined here
245- --> $DIR/empty-match.rs:19 :7
246+ --> $DIR/empty-match.rs:26 :7
246247 |
247248LL | union NonEmptyUnion2 {
248249 | ^^^^^^^^^^^^^^
@@ -254,13 +255,13 @@ LL + NonEmptyUnion2 { .. } => todo!()
254255 |
255256
256257error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered
257- --> $DIR/empty-match.rs:96 :24
258+ --> $DIR/empty-match.rs:149 :24
258259 |
259260LL | match_guarded_arm!(NonEmptyEnum1::Foo(true));
260261 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered
261262 |
262263note: `NonEmptyEnum1` defined here
263- --> $DIR/empty-match.rs:24 :5
264+ --> $DIR/empty-match.rs:33 :5
264265 |
265266LL | enum NonEmptyEnum1 {
266267 | -------------
@@ -274,18 +275,19 @@ LL + NonEmptyEnum1::Foo(_) => todo!()
274275 |
275276
276277error[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
278279 |
279280LL | match_guarded_arm!(NonEmptyEnum2::Foo(true));
280281 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered
281282 |
282283note: `NonEmptyEnum2` defined here
283- --> $DIR/empty-match.rs:27 :5
284+ --> $DIR/empty-match.rs:40 :5
284285 |
285286LL | enum NonEmptyEnum2 {
286287 | -------------
287288LL | Foo(bool),
288289 | ^^^ not covered
290+ ...
289291LL | Bar,
290292 | ^^^ not covered
291293 = note: the matched value is of type `NonEmptyEnum2`
@@ -296,13 +298,13 @@ LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!()
296298 |
297299
298300error[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
300302 |
301303LL | match_guarded_arm!(NonEmptyEnum5::V1);
302304 | ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered
303305 |
304306note: `NonEmptyEnum5` defined here
305- --> $DIR/empty-match.rs:30 :6
307+ --> $DIR/empty-match.rs:49 :6
306308 |
307309LL | enum NonEmptyEnum5 {
308310 | ^^^^^^^^^^^^^
0 commit comments