@@ -65,11 +65,11 @@ note: same as this
65
65
|
66
66
LL | 42 => foo(),
67
67
| ^^^^^
68
- note : consider refactoring into `42 | 51`
69
- --> $DIR/match_same_arms.rs:56:15
68
+ help : consider refactoring into `42 | 51`
69
+ --> $DIR/match_same_arms.rs:56:9
70
70
|
71
71
LL | 42 => foo(),
72
- | ^^^ ^^
72
+ | ^^
73
73
74
74
error: this `match` has identical arm bodies
75
75
--> $DIR/match_same_arms.rs:63:17
@@ -82,11 +82,11 @@ note: same as this
82
82
|
83
83
LL | Some(_) => 24,
84
84
| ^^
85
- note : consider refactoring into `Some(_) | None`
86
- --> $DIR/match_same_arms.rs:62:20
85
+ help : consider refactoring into `Some(_) | None`
86
+ --> $DIR/match_same_arms.rs:62:9
87
87
|
88
88
LL | Some(_) => 24,
89
- | ^^
89
+ | ^^^^^ ^^
90
90
91
91
error: this `match` has identical arm bodies
92
92
--> $DIR/match_same_arms.rs:85:28
@@ -99,11 +99,11 @@ note: same as this
99
99
|
100
100
LL | (Some(a), None) => bar(a),
101
101
| ^^^^^^
102
- note : consider refactoring into `(Some(a), None) | (None, Some(a))`
103
- --> $DIR/match_same_arms.rs:84:28
102
+ help : consider refactoring into `(Some(a), None) | (None, Some(a))`
103
+ --> $DIR/match_same_arms.rs:84:9
104
104
|
105
105
LL | (Some(a), None) => bar(a),
106
- | ^^^^^^
106
+ | ^^^^^^^^^ ^^^^^^
107
107
108
108
error: this `match` has identical arm bodies
109
109
--> $DIR/match_same_arms.rs:91:26
@@ -116,11 +116,11 @@ note: same as this
116
116
|
117
117
LL | (Some(a), ..) => bar(a),
118
118
| ^^^^^^
119
- note : consider refactoring into `(Some(a), ..) | (.., Some(a))`
120
- --> $DIR/match_same_arms.rs:90:26
119
+ help : consider refactoring into `(Some(a), ..) | (.., Some(a))`
120
+ --> $DIR/match_same_arms.rs:90:9
121
121
|
122
122
LL | (Some(a), ..) => bar(a),
123
- | ^^^^^^
123
+ | ^^^^^^^ ^^^^^^
124
124
125
125
error: this `match` has identical arm bodies
126
126
--> $DIR/match_same_arms.rs:97:20
@@ -133,11 +133,96 @@ note: same as this
133
133
|
134
134
LL | (1, .., 3) => 42,
135
135
| ^^
136
- note : consider refactoring into `(1, .., 3) | (.., 3)`
137
- --> $DIR/match_same_arms.rs:96:23
136
+ help : consider refactoring into `(1, .., 3) | (.., 3)`
137
+ --> $DIR/match_same_arms.rs:96:9
138
138
|
139
139
LL | (1, .., 3) => 42,
140
- | ^^
140
+ | ^^^^^^^^^^
141
+
142
+ error: this `match` has identical arm bodies
143
+ --> $DIR/match_same_arms.rs:114:15
144
+ |
145
+ LL | 51 => 1, //~ ERROR match arms have same body
146
+ | ^
147
+ |
148
+ note: same as this
149
+ --> $DIR/match_same_arms.rs:113:15
150
+ |
151
+ LL | 42 => 1,
152
+ | ^
153
+ help: consider refactoring into `42 | 51`
154
+ --> $DIR/match_same_arms.rs:113:9
155
+ |
156
+ LL | 42 => 1,
157
+ | ^^
158
+
159
+ error: this `match` has identical arm bodies
160
+ --> $DIR/match_same_arms.rs:116:15
161
+ |
162
+ LL | 52 => 2, //~ ERROR match arms have same body
163
+ | ^
164
+ |
165
+ note: same as this
166
+ --> $DIR/match_same_arms.rs:115:15
167
+ |
168
+ LL | 41 => 2,
169
+ | ^
170
+ help: consider refactoring into `41 | 52`
171
+ --> $DIR/match_same_arms.rs:115:9
172
+ |
173
+ LL | 41 => 2,
174
+ | ^^
175
+
176
+ error: this `match` has identical arm bodies
177
+ --> $DIR/match_same_arms.rs:122:14
178
+ |
179
+ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
180
+ | ^
181
+ |
182
+ note: same as this
183
+ --> $DIR/match_same_arms.rs:121:14
184
+ |
185
+ LL | 1 => 2,
186
+ | ^
187
+ help: consider refactoring into `1 | 2`
188
+ --> $DIR/match_same_arms.rs:121:9
189
+ |
190
+ LL | 1 => 2,
191
+ | ^
192
+
193
+ error: this `match` has identical arm bodies
194
+ --> $DIR/match_same_arms.rs:123:14
195
+ |
196
+ LL | 3 => 2, //~ ERROR 3rd matched arms have same body
197
+ | ^
198
+ |
199
+ note: same as this
200
+ --> $DIR/match_same_arms.rs:121:14
201
+ |
202
+ LL | 1 => 2,
203
+ | ^
204
+ help: consider refactoring into `1 | 3`
205
+ --> $DIR/match_same_arms.rs:121:9
206
+ |
207
+ LL | 1 => 2,
208
+ | ^
209
+
210
+ error: this `match` has identical arm bodies
211
+ --> $DIR/match_same_arms.rs:123:14
212
+ |
213
+ LL | 3 => 2, //~ ERROR 3rd matched arms have same body
214
+ | ^
215
+ |
216
+ note: same as this
217
+ --> $DIR/match_same_arms.rs:122:14
218
+ |
219
+ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
220
+ | ^
221
+ help: consider refactoring into `2 | 3`
222
+ --> $DIR/match_same_arms.rs:122:9
223
+ |
224
+ LL | 2 => 2, //~ ERROR 2nd matched arms have same body
225
+ | ^
141
226
142
- error: aborting due to 7 previous errors
227
+ error: aborting due to 12 previous errors
143
228
0 commit comments