@@ -4,10 +4,7 @@ error: unreachable pattern
4
4
LL | (1 | 2,) => {}
5
5
| -------- matches all the values already
6
6
LL | (1,) => {}
7
- | ^^^^------
8
- | |
9
- | unreachable pattern
10
- | help: remove the match arm
7
+ | ^^^^ unreachable pattern
11
8
|
12
9
note: the lint level is defined here
13
10
--> $DIR/exhaustiveness-unreachable-pattern.rs:1:9
@@ -21,19 +18,13 @@ error: unreachable pattern
21
18
LL | (1 | 2,) => {}
22
19
| -------- matches all the values already
23
20
LL | (2,) => {}
24
- | ^^^^------
25
- | |
26
- | unreachable pattern
27
- | help: remove the match arm
21
+ | ^^^^ unreachable pattern
28
22
29
23
error: unreachable pattern
30
24
--> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
31
25
|
32
26
LL | (1 | 2,) => {}
33
- | ^^^^^^^^------
34
- | |
35
- | unreachable pattern
36
- | help: remove the match arm
27
+ | ^^^^^^^^ unreachable pattern
37
28
|
38
29
note: these patterns collectively make the last one unreachable
39
30
--> $DIR/exhaustiveness-unreachable-pattern.rs:19:9
@@ -51,10 +42,7 @@ error: unreachable pattern
51
42
LL | (1 | 2, 3 | 4) => {}
52
43
| -------------- matches all the values already
53
44
LL | (1, 3) => {}
54
- | ^^^^^^------
55
- | |
56
- | unreachable pattern
57
- | help: remove the match arm
45
+ | ^^^^^^ unreachable pattern
58
46
59
47
error: unreachable pattern
60
48
--> $DIR/exhaustiveness-unreachable-pattern.rs:25:9
@@ -63,10 +51,7 @@ LL | (1 | 2, 3 | 4) => {}
63
51
| -------------- matches all the values already
64
52
LL | (1, 3) => {}
65
53
LL | (1, 4) => {}
66
- | ^^^^^^------
67
- | |
68
- | unreachable pattern
69
- | help: remove the match arm
54
+ | ^^^^^^ unreachable pattern
70
55
71
56
error: unreachable pattern
72
57
--> $DIR/exhaustiveness-unreachable-pattern.rs:26:9
@@ -75,10 +60,7 @@ LL | (1 | 2, 3 | 4) => {}
75
60
| -------------- matches all the values already
76
61
...
77
62
LL | (2, 4) => {}
78
- | ^^^^^^------
79
- | |
80
- | unreachable pattern
81
- | help: remove the match arm
63
+ | ^^^^^^ unreachable pattern
82
64
83
65
error: unreachable pattern
84
66
--> $DIR/exhaustiveness-unreachable-pattern.rs:27:9
@@ -87,19 +69,13 @@ LL | (1 | 2, 3 | 4) => {}
87
69
| -------------- matches all the values already
88
70
...
89
71
LL | (2 | 1, 4) => {}
90
- | ^^^^^^^^^^------
91
- | |
92
- | unreachable pattern
93
- | help: remove the match arm
72
+ | ^^^^^^^^^^ unreachable pattern
94
73
95
74
error: unreachable pattern
96
75
--> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
97
76
|
98
77
LL | (1, 4 | 5) => {}
99
- | ^^^^^^^^^^------
100
- | |
101
- | unreachable pattern
102
- | help: remove the match arm
78
+ | ^^^^^^^^^^ unreachable pattern
103
79
|
104
80
note: these patterns collectively make the last one unreachable
105
81
--> $DIR/exhaustiveness-unreachable-pattern.rs:29:9
@@ -126,10 +102,7 @@ error: unreachable pattern
126
102
LL | (None | Some(1 | 2),) => {}
127
103
| --------------------- matches all the values already
128
104
LL | (Some(1),) => {}
129
- | ^^^^^^^^^^------
130
- | |
131
- | unreachable pattern
132
- | help: remove the match arm
105
+ | ^^^^^^^^^^ unreachable pattern
133
106
134
107
error: unreachable pattern
135
108
--> $DIR/exhaustiveness-unreachable-pattern.rs:43:9
@@ -138,21 +111,15 @@ LL | (None | Some(1 | 2),) => {}
138
111
| --------------------- matches all the values already
139
112
LL | (Some(1),) => {}
140
113
LL | (None,) => {}
141
- | ^^^^^^^------
142
- | |
143
- | unreachable pattern
144
- | help: remove the match arm
114
+ | ^^^^^^^ unreachable pattern
145
115
146
116
error: unreachable pattern
147
117
--> $DIR/exhaustiveness-unreachable-pattern.rs:48:9
148
118
|
149
119
LL | ((1 | 2,) | (3 | 4,),) => {}
150
120
| ---------------------- matches all the values already
151
121
LL | ((1..=4,),) => {}
152
- | ^^^^^^^^^^^------
153
- | |
154
- | unreachable pattern
155
- | help: remove the match arm
122
+ | ^^^^^^^^^^^ unreachable pattern
156
123
157
124
error: unreachable pattern
158
125
--> $DIR/exhaustiveness-unreachable-pattern.rs:53:14
0 commit comments