@@ -23,12 +23,18 @@ LL | (2,) => {}
2323error: unreachable pattern
2424 --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
2525 |
26+ LL | (1 | 2,) => {}
27+ | ^^^^^^^^ unreachable pattern
28+ |
29+ note: these patterns collectively make the last one unreachable
30+ --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
31+ |
2632LL | (1,) => {}
2733 | ---- matches some of the same values
2834LL | (2,) => {}
2935 | ---- matches some of the same values
3036LL | (1 | 2,) => {}
31- | ^^^^^^^^ unreachable pattern
37+ | ^^^^^^^^ collectively making this unreachable
3238
3339error: unreachable pattern
3440 --> $DIR/exhaustiveness-unreachable-pattern.rs:24:9
@@ -68,13 +74,19 @@ LL | (2 | 1, 4) => {}
6874error: unreachable pattern
6975 --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
7076 |
77+ LL | (1, 4 | 5) => {}
78+ | ^^^^^^^^^^ unreachable pattern
79+ |
80+ note: these patterns collectively make the last one unreachable
81+ --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
82+ |
7183LL | (1 | 2, 3 | 4) => {}
7284 | -------------- matches some of the same values
7385...
7486LL | (1, 5 | 6) => {}
7587 | ---------- matches some of the same values
7688LL | (1, 4 | 5) => {}
77- | ^^^^^^^^^^ unreachable pattern
89+ | ^^^^^^^^^^ collectively making this unreachable
7890
7991error: unreachable pattern
8092 --> $DIR/exhaustiveness-unreachable-pattern.rs:34:13
@@ -177,10 +189,16 @@ LL | (true, 0 | 0) => {}
177189error: unreachable pattern
178190 --> $DIR/exhaustiveness-unreachable-pattern.rs:84:17
179191 |
192+ LL | (_, 0 | 0) => {}
193+ | ^ unreachable pattern
194+ |
195+ note: these patterns collectively make the last one unreachable
196+ --> $DIR/exhaustiveness-unreachable-pattern.rs:84:17
197+ |
180198LL | (true, 0 | 0) => {}
181199 | - matches some of the same values
182200LL | (_, 0 | 0) => {}
183- | - ^ unreachable pattern
201+ | - ^ collectively making this unreachable
184202 | |
185203 | matches some of the same values
186204
@@ -203,26 +221,40 @@ LL | [true
203221error: unreachable pattern
204222 --> $DIR/exhaustiveness-unreachable-pattern.rs:111:36
205223 |
224+ LL | (true | false, None | Some(true
225+ | ^^^^ unreachable pattern
226+ |
227+ note: these patterns collectively make the last one unreachable
228+ --> $DIR/exhaustiveness-unreachable-pattern.rs:111:36
229+ |
206230LL | (true, Some(_)) => {}
207231 | - matches some of the same values
208232LL | (false, Some(true)) => {}
209233 | ---- matches some of the same values
210234LL | (true | false, None | Some(true
211- | ^^^^ unreachable pattern
235+ | ^^^^ collectively making this unreachable
212236
213237error: unreachable pattern
214238 --> $DIR/exhaustiveness-unreachable-pattern.rs:116:14
215239 |
216240LL | (true
217241 | ^^^^ unreachable pattern
218242...
243+ LL | (true | false, None | Some(t_or_f!())) => {}
244+ | --------- in this macro invocation
245+ |
246+ note: these patterns collectively make the last one unreachable
247+ --> $DIR/exhaustiveness-unreachable-pattern.rs:116:14
248+ |
249+ LL | (true
250+ | ^^^^ collectively making this unreachable
251+ ...
219252LL | (true, Some(_)) => {}
220253 | - matches some of the same values
221254LL | (false, Some(true)) => {}
222255 | ---- matches some of the same values
223256LL | (true | false, None | Some(t_or_f!())) => {}
224257 | --------- in this macro invocation
225- |
226258 = note: this error originates in the macro `t_or_f` (in Nightly builds, run with -Z macro-backtrace for more info)
227259
228260error: unreachable pattern
@@ -245,24 +277,36 @@ LL | | false) => {}
245277error: unreachable pattern
246278 --> $DIR/exhaustiveness-unreachable-pattern.rs:154:15
247279 |
280+ LL | | true) => {}
281+ | ^^^^ unreachable pattern
282+ |
283+ note: these patterns collectively make the last one unreachable
284+ --> $DIR/exhaustiveness-unreachable-pattern.rs:154:15
285+ |
248286LL | (false, true) => {}
249287 | ---- matches some of the same values
250288LL | (true, true) => {}
251289 | ---- matches some of the same values
252290LL | (false | true, false
253291LL | | true) => {}
254- | ^^^^ unreachable pattern
292+ | ^^^^ collectively making this unreachable
255293
256294error: unreachable pattern
257295 --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
258296 |
297+ LL | | true,
298+ | ^^^^ unreachable pattern
299+ |
300+ note: these patterns collectively make the last one unreachable
301+ --> $DIR/exhaustiveness-unreachable-pattern.rs:160:15
302+ |
259303LL | (true, false) => {}
260304 | ---- matches some of the same values
261305LL | (true, true) => {}
262306 | ---- matches some of the same values
263307LL | (false
264308LL | | true,
265- | ^^^^ unreachable pattern
309+ | ^^^^ collectively making this unreachable
266310
267311error: unreachable pattern
268312 --> $DIR/exhaustiveness-unreachable-pattern.rs:165:15
0 commit comments