@@ -4,10 +4,7 @@ error: unreachable pattern
44LL | (1 | 2,) => {}
55 | -------- matches all the values already
66LL | (1,) => {}
7- | ^^^^------
8- | |
9- | unreachable pattern
10- | help: remove the match arm
7+ | ^^^^ unreachable pattern
118 |
129note: the lint level is defined here
1310 --> $DIR/exhaustiveness-unreachable-pattern.rs:1:9
@@ -21,19 +18,13 @@ error: unreachable pattern
2118LL | (1 | 2,) => {}
2219 | -------- matches all the values already
2320LL | (2,) => {}
24- | ^^^^------
25- | |
26- | unreachable pattern
27- | help: remove the match arm
21+ | ^^^^ unreachable pattern
2822
2923error: unreachable pattern
3024 --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
3125 |
3226LL | (1 | 2,) => {}
33- | ^^^^^^^^------
34- | |
35- | unreachable pattern
36- | help: remove the match arm
27+ | ^^^^^^^^ unreachable pattern
3728 |
3829note: these patterns collectively make the last one unreachable
3930 --> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
@@ -51,10 +42,7 @@ error: unreachable pattern
5142LL | (1 | 2, 3 | 4) => {}
5243 | -------------- matches all the values already
5344LL | (1, 3) => {}
54- | ^^^^^^------
55- | |
56- | unreachable pattern
57- | help: remove the match arm
45+ | ^^^^^^ unreachable pattern
5846
5947error: unreachable pattern
6048 --> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
@@ -63,10 +51,7 @@ LL | (1 | 2, 3 | 4) => {}
6351 | -------------- matches all the values already
6452LL | (1, 3) => {}
6553LL | (1, 4) => {}
66- | ^^^^^^------
67- | |
68- | unreachable pattern
69- | help: remove the match arm
54+ | ^^^^^^ unreachable pattern
7055
7156error: unreachable pattern
7257 --> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
@@ -75,10 +60,7 @@ LL | (1 | 2, 3 | 4) => {}
7560 | -------------- matches all the values already
7661...
7762LL | (2, 4) => {}
78- | ^^^^^^------
79- | |
80- | unreachable pattern
81- | help: remove the match arm
63+ | ^^^^^^ unreachable pattern
8264
8365error: unreachable pattern
8466 --> $DIR/exhaustiveness-unreachable-pattern.rs:27:9
@@ -87,19 +69,13 @@ LL | (1 | 2, 3 | 4) => {}
8769 | -------------- matches all the values already
8870...
8971LL | (2 | 1, 4) => {}
90- | ^^^^^^^^^^------
91- | |
92- | unreachable pattern
93- | help: remove the match arm
72+ | ^^^^^^^^^^ unreachable pattern
9473
9574error: unreachable pattern
9675 --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
9776 |
9877LL | (1, 4 | 5) => {}
99- | ^^^^^^^^^^------
100- | |
101- | unreachable pattern
102- | help: remove the match arm
78+ | ^^^^^^^^^^ unreachable pattern
10379 |
10480note: these patterns collectively make the last one unreachable
10581 --> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
@@ -126,10 +102,7 @@ error: unreachable pattern
126102LL | (None | Some(1 | 2),) => {}
127103 | --------------------- matches all the values already
128104LL | (Some(1),) => {}
129- | ^^^^^^^^^^------
130- | |
131- | unreachable pattern
132- | help: remove the match arm
105+ | ^^^^^^^^^^ unreachable pattern
133106
134107error: unreachable pattern
135108 --> $DIR/exhaustiveness-unreachable-pattern.rs:43:9
@@ -138,21 +111,15 @@ LL | (None | Some(1 | 2),) => {}
138111 | --------------------- matches all the values already
139112LL | (Some(1),) => {}
140113LL | (None,) => {}
141- | ^^^^^^^------
142- | |
143- | unreachable pattern
144- | help: remove the match arm
114+ | ^^^^^^^ unreachable pattern
145115
146116error: unreachable pattern
147117 --> $DIR/exhaustiveness-unreachable-pattern.rs:48:9
148118 |
149119LL | ((1 | 2,) | (3 | 4,),) => {}
150120 | ---------------------- matches all the values already
151121LL | ((1..=4,),) => {}
152- | ^^^^^^^^^^^------
153- | |
154- | unreachable pattern
155- | help: remove the match arm
122+ | ^^^^^^^^^^^ unreachable pattern
156123
157124error: unreachable pattern
158125 --> $DIR/exhaustiveness-unreachable-pattern.rs:53:14
0 commit comments