UI test cleanup: Rename copies.rs to match_same_arms.rs

This commit is contained in:
Philipp Hansch 2019-02-10 10:20:28 +01:00
parent 83a87fb7b6
commit 8abdfb6567
No known key found for this signature in database
GPG Key ID: B6FA06A6E0E2665B
2 changed files with 21 additions and 21 deletions

View File

@ -1,5 +1,5 @@
error: this `match` has identical arm bodies
--> $DIR/copies.rs:37:14
--> $DIR/match_same_arms.rs:37:14
|
LL | _ => {
| ______________^
@ -13,7 +13,7 @@ LL | | },
|
= note: `-D clippy::match-same-arms` implied by `-D warnings`
note: same as this
--> $DIR/copies.rs:28:15
--> $DIR/match_same_arms.rs:28:15
|
LL | 42 => {
| _______________^
@ -25,7 +25,7 @@ LL | | a
LL | | },
| |_________^
note: `42` has the same arm body as the `_` wildcard, consider removing it`
--> $DIR/copies.rs:28:15
--> $DIR/match_same_arms.rs:28:15
|
LL | 42 => {
| _______________^
@ -38,103 +38,103 @@ LL | | },
| |_________^
error: this `match` has identical arm bodies
--> $DIR/copies.rs:52:14
--> $DIR/match_same_arms.rs:52:14
|
LL | _ => 0, //~ ERROR match arms have same body
| ^
|
note: same as this
--> $DIR/copies.rs:50:19
--> $DIR/match_same_arms.rs:50:19
|
LL | Abc::A => 0,
| ^
note: `Abc::A` has the same arm body as the `_` wildcard, consider removing it`
--> $DIR/copies.rs:50:19
--> $DIR/match_same_arms.rs:50:19
|
LL | Abc::A => 0,
| ^
error: this `match` has identical arm bodies
--> $DIR/copies.rs:57:15
--> $DIR/match_same_arms.rs:57:15
|
LL | 51 => foo(), //~ ERROR match arms have same body
| ^^^^^
|
note: same as this
--> $DIR/copies.rs:56:15
--> $DIR/match_same_arms.rs:56:15
|
LL | 42 => foo(),
| ^^^^^
note: consider refactoring into `42 | 51`
--> $DIR/copies.rs:56:15
--> $DIR/match_same_arms.rs:56:15
|
LL | 42 => foo(),
| ^^^^^
error: this `match` has identical arm bodies
--> $DIR/copies.rs:63:17
--> $DIR/match_same_arms.rs:63:17
|
LL | None => 24, //~ ERROR match arms have same body
| ^^
|
note: same as this
--> $DIR/copies.rs:62:20
--> $DIR/match_same_arms.rs:62:20
|
LL | Some(_) => 24,
| ^^
note: consider refactoring into `Some(_) | None`
--> $DIR/copies.rs:62:20
--> $DIR/match_same_arms.rs:62:20
|
LL | Some(_) => 24,
| ^^
error: this `match` has identical arm bodies
--> $DIR/copies.rs:85:28
--> $DIR/match_same_arms.rs:85:28
|
LL | (None, Some(a)) => bar(a), //~ ERROR match arms have same body
| ^^^^^^
|
note: same as this
--> $DIR/copies.rs:84:28
--> $DIR/match_same_arms.rs:84:28
|
LL | (Some(a), None) => bar(a),
| ^^^^^^
note: consider refactoring into `(Some(a), None) | (None, Some(a))`
--> $DIR/copies.rs:84:28
--> $DIR/match_same_arms.rs:84:28
|
LL | (Some(a), None) => bar(a),
| ^^^^^^
error: this `match` has identical arm bodies
--> $DIR/copies.rs:91:26
--> $DIR/match_same_arms.rs:91:26
|
LL | (.., Some(a)) => bar(a), //~ ERROR match arms have same body
| ^^^^^^
|
note: same as this
--> $DIR/copies.rs:90:26
--> $DIR/match_same_arms.rs:90:26
|
LL | (Some(a), ..) => bar(a),
| ^^^^^^
note: consider refactoring into `(Some(a), ..) | (.., Some(a))`
--> $DIR/copies.rs:90:26
--> $DIR/match_same_arms.rs:90:26
|
LL | (Some(a), ..) => bar(a),
| ^^^^^^
error: this `match` has identical arm bodies
--> $DIR/copies.rs:97:20
--> $DIR/match_same_arms.rs:97:20
|
LL | (.., 3) => 42, //~ ERROR match arms have same body
| ^^
|
note: same as this
--> $DIR/copies.rs:96:23
--> $DIR/match_same_arms.rs:96:23
|
LL | (1, .., 3) => 42,
| ^^
note: consider refactoring into `(1, .., 3) | (.., 3)`
--> $DIR/copies.rs:96:23
--> $DIR/match_same_arms.rs:96:23
|
LL | (1, .., 3) => 42,
| ^^