fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: this match arm has an identical body to the `_` wildcard arm 2 --> $DIR/match_same_arms.rs:12:9 3 | 4LL | Abc::A => 0, 5 | ^^^^^^^^^^^ help: try removing the arm 6 | 7 = help: or try changing either arm body 8note: `_` wildcard arm here 9 --> $DIR/match_same_arms.rs:14:9 10 | 11LL | _ => 0, 12 | ^^^^^^ 13 = note: `-D clippy::match-same-arms` implied by `-D warnings` 14 = help: to override `-D warnings` add `#[allow(clippy::match_same_arms)]` 15 16error: this match arm has an identical body to another arm 17 --> $DIR/match_same_arms.rs:18:9 18 | 19LL | (1, .., 3) => 42, 20 | ----------^^^^^^ 21 | | 22 | help: try merging the arm patterns: `(1, .., 3) | (.., 3)` 23 | 24 = help: or try changing either arm body 25note: other arm here 26 --> $DIR/match_same_arms.rs:19:9 27 | 28LL | (.., 3) => 42, 29 | ^^^^^^^^^^^^^ 30 31error: this match arm has an identical body to another arm 32 --> $DIR/match_same_arms.rs:25:9 33 | 34LL | 51 => 1, 35 | --^^^^^ 36 | | 37 | help: try merging the arm patterns: `51 | 42` 38 | 39 = help: or try changing either arm body 40note: other arm here 41 --> $DIR/match_same_arms.rs:24:9 42 | 43LL | 42 => 1, 44 | ^^^^^^^ 45 46error: this match arm has an identical body to another arm 47 --> $DIR/match_same_arms.rs:26:9 48 | 49LL | 41 => 2, 50 | --^^^^^ 51 | | 52 | help: try merging the arm patterns: `41 | 52` 53 | 54 = help: or try changing either arm body 55note: other arm here 56 --> $DIR/match_same_arms.rs:27:9 57 | 58LL | 52 => 2, 59 | ^^^^^^^ 60 61error: this match arm has an identical body to another arm 62 --> $DIR/match_same_arms.rs:33:9 63 | 64LL | 2 => 2, 65 | -^^^^^ 66 | | 67 | help: try merging the arm patterns: `2 | 1` 68 | 69 = help: or try changing either arm body 70note: other arm here 71 --> $DIR/match_same_arms.rs:32:9 72 | 73LL | 1 => 2, 74 | ^^^^^^ 75 76error: this match arm has an identical body to another arm 77 --> $DIR/match_same_arms.rs:35:9 78 | 79LL | 3 => 2, 80 | -^^^^^ 81 | | 82 | help: try merging the arm patterns: `3 | 1` 83 | 84 = help: or try changing either arm body 85note: other arm here 86 --> $DIR/match_same_arms.rs:32:9 87 | 88LL | 1 => 2, 89 | ^^^^^^ 90 91error: this match arm has an identical body to another arm 92 --> $DIR/match_same_arms.rs:33:9 93 | 94LL | 2 => 2, 95 | -^^^^^ 96 | | 97 | help: try merging the arm patterns: `2 | 3` 98 | 99 = help: or try changing either arm body 100note: other arm here 101 --> $DIR/match_same_arms.rs:35:9 102 | 103LL | 3 => 2, 104 | ^^^^^^ 105 106error: this match arm has an identical body to another arm 107 --> $DIR/match_same_arms.rs:52:17 108 | 109LL | CommandInfo::External { name, .. } => name.to_string(), 110 | ----------------------------------^^^^^^^^^^^^^^^^^^^^ 111 | | 112 | help: try merging the arm patterns: `CommandInfo::External { name, .. } | CommandInfo::BuiltIn { name, .. }` 113 | 114 = help: or try changing either arm body 115note: other arm here 116 --> $DIR/match_same_arms.rs:51:17 117 | 118LL | CommandInfo::BuiltIn { name, .. } => name.to_string(), 119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 120 121error: aborting due to 8 previous errors 122