fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1error: unreachable pattern 2 --> $DIR/match-empty-exhaustive_patterns.rs:47:9 3 | 4LL | _ => {}, 5 | ^ 6 | 7note: lint level defined here 8 --> $DIR/match-empty-exhaustive_patterns.rs:3:9 9 | 10LL | #![deny(unreachable_patterns)] 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: unreachable pattern 14 --> $DIR/match-empty-exhaustive_patterns.rs:50:9 15 | 16LL | _ if false => {}, 17 | ^ 18 19error: unreachable pattern 20 --> $DIR/match-empty-exhaustive_patterns.rs:57:9 21 | 22LL | Some(_) => {} 23 | ^^^^^^^ 24 25error: unreachable pattern 26 --> $DIR/match-empty-exhaustive_patterns.rs:61:9 27 | 28LL | Some(_) => {} 29 | ^^^^^^^ 30 31error[E0004]: non-exhaustive patterns: type `u8` is non-empty 32 --> $DIR/match-empty-exhaustive_patterns.rs:64:18 33 | 34LL | match_empty!(0u8); 35 | ^^^ 36 | 37 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 38 39error[E0004]: non-exhaustive patterns: type `NonEmptyStruct` is non-empty 40 --> $DIR/match-empty-exhaustive_patterns.rs:66:18 41 | 42LL | struct NonEmptyStruct(bool); 43 | ---------------------------- `NonEmptyStruct` defined here 44... 45LL | match_empty!(NonEmptyStruct(true)); 46 | ^^^^^^^^^^^^^^^^^^^^ 47 | 48 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 49 50error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty 51 --> $DIR/match-empty-exhaustive_patterns.rs:68:18 52 | 53LL | / union NonEmptyUnion1 { 54LL | | foo: (), 55LL | | } 56 | |_- `NonEmptyUnion1` defined here 57... 58LL | match_empty!((NonEmptyUnion1 { foo: () })); 59 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 60 | 61 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 62 63error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty 64 --> $DIR/match-empty-exhaustive_patterns.rs:70:18 65 | 66LL | / union NonEmptyUnion2 { 67LL | | foo: (), 68LL | | bar: (), 69LL | | } 70 | |_- `NonEmptyUnion2` defined here 71... 72LL | match_empty!((NonEmptyUnion2 { foo: () })); 73 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 74 | 75 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 76 77error[E0004]: non-exhaustive patterns: `Foo(_)` not covered 78 --> $DIR/match-empty-exhaustive_patterns.rs:72:18 79 | 80LL | / enum NonEmptyEnum1 { 81LL | | Foo(bool), 82 | | --- not covered 83LL | | 84LL | | 85LL | | } 86 | |_- `NonEmptyEnum1` defined here 87... 88LL | match_empty!(NonEmptyEnum1::Foo(true)); 89 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered 90 | 91 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 92 93error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered 94 --> $DIR/match-empty-exhaustive_patterns.rs:74:18 95 | 96LL | / enum NonEmptyEnum2 { 97LL | | Foo(bool), 98 | | --- not covered 99LL | | 100LL | | 101LL | | Bar, 102 | | --- not covered 103LL | | 104LL | | 105LL | | } 106 | |_- `NonEmptyEnum2` defined here 107... 108LL | match_empty!(NonEmptyEnum2::Foo(true)); 109 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered 110 | 111 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 112 113error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered 114 --> $DIR/match-empty-exhaustive_patterns.rs:76:18 115 | 116LL | / enum NonEmptyEnum5 { 117LL | | V1, V2, V3, V4, V5, 118LL | | } 119 | |_- `NonEmptyEnum5` defined here 120... 121LL | match_empty!(NonEmptyEnum5::V1); 122 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered 123 | 124 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 125 126error[E0004]: non-exhaustive patterns: `_` not covered 127 --> $DIR/match-empty-exhaustive_patterns.rs:79:18 128 | 129LL | match_false!(0u8); 130 | ^^^ pattern `_` not covered 131 | 132 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 133 134error[E0004]: non-exhaustive patterns: `NonEmptyStruct(_)` not covered 135 --> $DIR/match-empty-exhaustive_patterns.rs:81:18 136 | 137LL | struct NonEmptyStruct(bool); 138 | ---------------------------- `NonEmptyStruct` defined here 139... 140LL | match_false!(NonEmptyStruct(true)); 141 | ^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct(_)` not covered 142 | 143 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 144 145error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered 146 --> $DIR/match-empty-exhaustive_patterns.rs:83:18 147 | 148LL | / union NonEmptyUnion1 { 149LL | | foo: (), 150LL | | } 151 | |_- `NonEmptyUnion1` defined here 152... 153LL | match_false!((NonEmptyUnion1 { foo: () })); 154 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered 155 | 156 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 157 158error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered 159 --> $DIR/match-empty-exhaustive_patterns.rs:85:18 160 | 161LL | / union NonEmptyUnion2 { 162LL | | foo: (), 163LL | | bar: (), 164LL | | } 165 | |_- `NonEmptyUnion2` defined here 166... 167LL | match_false!((NonEmptyUnion2 { foo: () })); 168 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered 169 | 170 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 171 172error[E0004]: non-exhaustive patterns: `Foo(_)` not covered 173 --> $DIR/match-empty-exhaustive_patterns.rs:87:18 174 | 175LL | / enum NonEmptyEnum1 { 176LL | | Foo(bool), 177 | | --- not covered 178LL | | 179LL | | 180LL | | } 181 | |_- `NonEmptyEnum1` defined here 182... 183LL | match_false!(NonEmptyEnum1::Foo(true)); 184 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `Foo(_)` not covered 185 | 186 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 187 188error[E0004]: non-exhaustive patterns: `Foo(_)` and `Bar` not covered 189 --> $DIR/match-empty-exhaustive_patterns.rs:89:18 190 | 191LL | / enum NonEmptyEnum2 { 192LL | | Foo(bool), 193 | | --- not covered 194LL | | 195LL | | 196LL | | Bar, 197 | | --- not covered 198LL | | 199LL | | 200LL | | } 201 | |_- `NonEmptyEnum2` defined here 202... 203LL | match_false!(NonEmptyEnum2::Foo(true)); 204 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `Foo(_)` and `Bar` not covered 205 | 206 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 207 208error[E0004]: non-exhaustive patterns: `V1`, `V2`, `V3` and 2 more not covered 209 --> $DIR/match-empty-exhaustive_patterns.rs:91:18 210 | 211LL | / enum NonEmptyEnum5 { 212LL | | V1, V2, V3, V4, V5, 213LL | | } 214 | |_- `NonEmptyEnum5` defined here 215... 216LL | match_false!(NonEmptyEnum5::V1); 217 | ^^^^^^^^^^^^^^^^^ patterns `V1`, `V2`, `V3` and 2 more not covered 218 | 219 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms 220 221error: aborting due to 18 previous errors 222 223For more information about this error, try `rustc --explain E0004`.