about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hansch <dev@phansch.net>2019-02-10 10:20:28 +0100
committerPhilipp Hansch <dev@phansch.net>2019-02-10 10:20:28 +0100
commit8abdfb6567a1b5d5a054cb470e88396ffc3ca4bb (patch)
tree335c7e9049df424c7f55df98f1c678ca30cfa46f
parent83a87fb7b6378eb928d0fd3e38fbab3579dc520c (diff)
downloadrust-8abdfb6567a1b5d5a054cb470e88396ffc3ca4bb.tar.gz
rust-8abdfb6567a1b5d5a054cb470e88396ffc3ca4bb.zip
UI test cleanup: Rename copies.rs to match_same_arms.rs
-rw-r--r--tests/ui/match_same_arms.rs (renamed from tests/ui/copies.rs)0
-rw-r--r--tests/ui/match_same_arms.stderr (renamed from tests/ui/copies.stderr)42
2 files changed, 21 insertions, 21 deletions
diff --git a/tests/ui/copies.rs b/tests/ui/match_same_arms.rs
index a1f15c0268b..a1f15c0268b 100644
--- a/tests/ui/copies.rs
+++ b/tests/ui/match_same_arms.rs
diff --git a/tests/ui/copies.stderr b/tests/ui/match_same_arms.stderr
index f04a7706846..9389e48a3e4 100644
--- a/tests/ui/copies.stderr
+++ b/tests/ui/match_same_arms.stderr
@@ -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,
    |                       ^^