From 8abdfb6567a1b5d5a054cb470e88396ffc3ca4bb Mon Sep 17 00:00:00 2001 From: Philipp Hansch Date: Sun, 10 Feb 2019 10:20:28 +0100 Subject: [PATCH] UI test cleanup: Rename copies.rs to match_same_arms.rs --- tests/ui/{copies.rs => match_same_arms.rs} | 0 .../{copies.stderr => match_same_arms.stderr} | 42 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) rename tests/ui/{copies.rs => match_same_arms.rs} (100%) rename tests/ui/{copies.stderr => match_same_arms.stderr} (80%) diff --git a/tests/ui/copies.rs b/tests/ui/match_same_arms.rs similarity index 100% rename from tests/ui/copies.rs rename to tests/ui/match_same_arms.rs diff --git a/tests/ui/copies.stderr b/tests/ui/match_same_arms.stderr similarity index 80% rename from tests/ui/copies.stderr rename to tests/ui/match_same_arms.stderr index f04a77068465..9389e48a3e4b 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, | ^^