Skip to content

Commit 8abdfb6

Browse files
committed
UI test cleanup: Rename copies.rs to match_same_arms.rs
1 parent 83a87fb commit 8abdfb6

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed
File renamed without changes.

tests/ui/copies.stderr renamed to tests/ui/match_same_arms.stderr

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: this `match` has identical arm bodies
2-
--> $DIR/copies.rs:37:14
2+
--> $DIR/match_same_arms.rs:37:14
33
|
44
LL | _ => {
55
| ______________^
@@ -13,7 +13,7 @@ LL | | },
1313
|
1414
= note: `-D clippy::match-same-arms` implied by `-D warnings`
1515
note: same as this
16-
--> $DIR/copies.rs:28:15
16+
--> $DIR/match_same_arms.rs:28:15
1717
|
1818
LL | 42 => {
1919
| _______________^
@@ -25,7 +25,7 @@ LL | | a
2525
LL | | },
2626
| |_________^
2727
note: `42` has the same arm body as the `_` wildcard, consider removing it`
28-
--> $DIR/copies.rs:28:15
28+
--> $DIR/match_same_arms.rs:28:15
2929
|
3030
LL | 42 => {
3131
| _______________^
@@ -38,103 +38,103 @@ LL | | },
3838
| |_________^
3939

4040
error: this `match` has identical arm bodies
41-
--> $DIR/copies.rs:52:14
41+
--> $DIR/match_same_arms.rs:52:14
4242
|
4343
LL | _ => 0, //~ ERROR match arms have same body
4444
| ^
4545
|
4646
note: same as this
47-
--> $DIR/copies.rs:50:19
47+
--> $DIR/match_same_arms.rs:50:19
4848
|
4949
LL | Abc::A => 0,
5050
| ^
5151
note: `Abc::A` has the same arm body as the `_` wildcard, consider removing it`
52-
--> $DIR/copies.rs:50:19
52+
--> $DIR/match_same_arms.rs:50:19
5353
|
5454
LL | Abc::A => 0,
5555
| ^
5656

5757
error: this `match` has identical arm bodies
58-
--> $DIR/copies.rs:57:15
58+
--> $DIR/match_same_arms.rs:57:15
5959
|
6060
LL | 51 => foo(), //~ ERROR match arms have same body
6161
| ^^^^^
6262
|
6363
note: same as this
64-
--> $DIR/copies.rs:56:15
64+
--> $DIR/match_same_arms.rs:56:15
6565
|
6666
LL | 42 => foo(),
6767
| ^^^^^
6868
note: consider refactoring into `42 | 51`
69-
--> $DIR/copies.rs:56:15
69+
--> $DIR/match_same_arms.rs:56:15
7070
|
7171
LL | 42 => foo(),
7272
| ^^^^^
7373

7474
error: this `match` has identical arm bodies
75-
--> $DIR/copies.rs:63:17
75+
--> $DIR/match_same_arms.rs:63:17
7676
|
7777
LL | None => 24, //~ ERROR match arms have same body
7878
| ^^
7979
|
8080
note: same as this
81-
--> $DIR/copies.rs:62:20
81+
--> $DIR/match_same_arms.rs:62:20
8282
|
8383
LL | Some(_) => 24,
8484
| ^^
8585
note: consider refactoring into `Some(_) | None`
86-
--> $DIR/copies.rs:62:20
86+
--> $DIR/match_same_arms.rs:62:20
8787
|
8888
LL | Some(_) => 24,
8989
| ^^
9090

9191
error: this `match` has identical arm bodies
92-
--> $DIR/copies.rs:85:28
92+
--> $DIR/match_same_arms.rs:85:28
9393
|
9494
LL | (None, Some(a)) => bar(a), //~ ERROR match arms have same body
9595
| ^^^^^^
9696
|
9797
note: same as this
98-
--> $DIR/copies.rs:84:28
98+
--> $DIR/match_same_arms.rs:84:28
9999
|
100100
LL | (Some(a), None) => bar(a),
101101
| ^^^^^^
102102
note: consider refactoring into `(Some(a), None) | (None, Some(a))`
103-
--> $DIR/copies.rs:84:28
103+
--> $DIR/match_same_arms.rs:84:28
104104
|
105105
LL | (Some(a), None) => bar(a),
106106
| ^^^^^^
107107

108108
error: this `match` has identical arm bodies
109-
--> $DIR/copies.rs:91:26
109+
--> $DIR/match_same_arms.rs:91:26
110110
|
111111
LL | (.., Some(a)) => bar(a), //~ ERROR match arms have same body
112112
| ^^^^^^
113113
|
114114
note: same as this
115-
--> $DIR/copies.rs:90:26
115+
--> $DIR/match_same_arms.rs:90:26
116116
|
117117
LL | (Some(a), ..) => bar(a),
118118
| ^^^^^^
119119
note: consider refactoring into `(Some(a), ..) | (.., Some(a))`
120-
--> $DIR/copies.rs:90:26
120+
--> $DIR/match_same_arms.rs:90:26
121121
|
122122
LL | (Some(a), ..) => bar(a),
123123
| ^^^^^^
124124

125125
error: this `match` has identical arm bodies
126-
--> $DIR/copies.rs:97:20
126+
--> $DIR/match_same_arms.rs:97:20
127127
|
128128
LL | (.., 3) => 42, //~ ERROR match arms have same body
129129
| ^^
130130
|
131131
note: same as this
132-
--> $DIR/copies.rs:96:23
132+
--> $DIR/match_same_arms.rs:96:23
133133
|
134134
LL | (1, .., 3) => 42,
135135
| ^^
136136
note: consider refactoring into `(1, .., 3) | (.., 3)`
137-
--> $DIR/copies.rs:96:23
137+
--> $DIR/match_same_arms.rs:96:23
138138
|
139139
LL | (1, .., 3) => 42,
140140
| ^^

0 commit comments

Comments
 (0)