fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unreachable pattern 2 --> $DIR/empty-match.rs:58:9 3 | 4LL | _ => {}, 5 | ^ 6 | 7note: the lint level is defined here 8 --> $DIR/empty-match.rs:8:9 9 | 10LL | #![deny(unreachable_patterns)] 11 | ^^^^^^^^^^^^^^^^^^^^ 12 13error: unreachable pattern 14 --> $DIR/empty-match.rs:61:9 15 | 16LL | _ if false => {}, 17 | ^ 18 19error: unreachable pattern 20 --> $DIR/empty-match.rs:68:9 21 | 22LL | _ => {}, 23 | ^ 24 25error: unreachable pattern 26 --> $DIR/empty-match.rs:71:9 27 | 28LL | _ if false => {}, 29 | ^ 30 31error[E0005]: refutable pattern in local binding 32 --> $DIR/empty-match.rs:76:9 33 | 34LL | let None = x; 35 | ^^^^ pattern `Some(_)` not covered 36 | 37 = note: `let` bindings require an "irrefutable pattern", like a `struct` or an `enum` with only one variant 38 = note: for more information, visit https://doc.rust-lang.org/book/ch18-02-refutability.html 39 = note: pattern `Some(_)` is currently uninhabited, but this variant contains private fields which may become inhabited in the future 40 = note: the matched value is of type `Option<SecretlyUninhabitedForeignStruct>` 41help: you might want to use `if let` to ignore the variant that isn't matched 42 | 43LL | if let None = x { todo!() }; 44 | ++ +++++++++++ 45 46error: unreachable pattern 47 --> $DIR/empty-match.rs:88:9 48 | 49LL | _ => {}, 50 | ^ 51 52error: unreachable pattern 53 --> $DIR/empty-match.rs:91:9 54 | 55LL | _ if false => {}, 56 | ^ 57 58error[E0004]: non-exhaustive patterns: type `u8` is non-empty 59 --> $DIR/empty-match.rs:109:20 60 | 61LL | match_no_arms!(0u8); 62 | ^^^ 63 | 64 = note: the matched value is of type `u8` 65 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern 66 67error[E0004]: non-exhaustive patterns: type `NonEmptyStruct1` is non-empty 68 --> $DIR/empty-match.rs:111:20 69 | 70LL | match_no_arms!(NonEmptyStruct1); 71 | ^^^^^^^^^^^^^^^ 72 | 73note: `NonEmptyStruct1` defined here 74 --> $DIR/empty-match.rs:15:8 75 | 76LL | struct NonEmptyStruct1; 77 | ^^^^^^^^^^^^^^^ 78 = note: the matched value is of type `NonEmptyStruct1` 79 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern 80 81error[E0004]: non-exhaustive patterns: type `NonEmptyStruct2` is non-empty 82 --> $DIR/empty-match.rs:113:20 83 | 84LL | match_no_arms!(NonEmptyStruct2(true)); 85 | ^^^^^^^^^^^^^^^^^^^^^ 86 | 87note: `NonEmptyStruct2` defined here 88 --> $DIR/empty-match.rs:18:8 89 | 90LL | struct NonEmptyStruct2(bool); 91 | ^^^^^^^^^^^^^^^ 92 = note: the matched value is of type `NonEmptyStruct2` 93 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern 94 95error[E0004]: non-exhaustive patterns: type `NonEmptyUnion1` is non-empty 96 --> $DIR/empty-match.rs:115:20 97 | 98LL | match_no_arms!((NonEmptyUnion1 { foo: () })); 99 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 100 | 101note: `NonEmptyUnion1` defined here 102 --> $DIR/empty-match.rs:21:7 103 | 104LL | union NonEmptyUnion1 { 105 | ^^^^^^^^^^^^^^ 106 = note: the matched value is of type `NonEmptyUnion1` 107 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern 108 109error[E0004]: non-exhaustive patterns: type `NonEmptyUnion2` is non-empty 110 --> $DIR/empty-match.rs:117:20 111 | 112LL | match_no_arms!((NonEmptyUnion2 { foo: () })); 113 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 114 | 115note: `NonEmptyUnion2` defined here 116 --> $DIR/empty-match.rs:26:7 117 | 118LL | union NonEmptyUnion2 { 119 | ^^^^^^^^^^^^^^ 120 = note: the matched value is of type `NonEmptyUnion2` 121 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern 122 123error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered 124 --> $DIR/empty-match.rs:119:20 125 | 126LL | match_no_arms!(NonEmptyEnum1::Foo(true)); 127 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered 128 | 129note: `NonEmptyEnum1` defined here 130 --> $DIR/empty-match.rs:33:5 131 | 132LL | enum NonEmptyEnum1 { 133 | ------------- 134LL | Foo(bool), 135 | ^^^ not covered 136 = note: the matched value is of type `NonEmptyEnum1` 137 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern 138 139error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered 140 --> $DIR/empty-match.rs:122:20 141 | 142LL | match_no_arms!(NonEmptyEnum2::Foo(true)); 143 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered 144 | 145note: `NonEmptyEnum2` defined here 146 --> $DIR/empty-match.rs:40:5 147 | 148LL | enum NonEmptyEnum2 { 149 | ------------- 150LL | Foo(bool), 151 | ^^^ not covered 152... 153LL | Bar, 154 | ^^^ not covered 155 = note: the matched value is of type `NonEmptyEnum2` 156 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms 157 158error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered 159 --> $DIR/empty-match.rs:125:20 160 | 161LL | match_no_arms!(NonEmptyEnum5::V1); 162 | ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered 163 | 164note: `NonEmptyEnum5` defined here 165 --> $DIR/empty-match.rs:49:6 166 | 167LL | enum NonEmptyEnum5 { 168 | ^^^^^^^^^^^^^ 169 = note: the matched value is of type `NonEmptyEnum5` 170 = help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or multiple match arms 171 172error[E0004]: non-exhaustive patterns: `_` not covered 173 --> $DIR/empty-match.rs:129:24 174 | 175LL | match_guarded_arm!(0u8); 176 | ^^^ pattern `_` not covered 177 | 178 = note: the matched value is of type `u8` 179 = note: match arms with guards don't count towards exhaustivity 180help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 181 | 182LL ~ _ if false => {}, 183LL + _ => todo!() 184 | 185 186error[E0004]: non-exhaustive patterns: `NonEmptyStruct1` not covered 187 --> $DIR/empty-match.rs:134:24 188 | 189LL | match_guarded_arm!(NonEmptyStruct1); 190 | ^^^^^^^^^^^^^^^ pattern `NonEmptyStruct1` not covered 191 | 192note: `NonEmptyStruct1` defined here 193 --> $DIR/empty-match.rs:15:8 194 | 195LL | struct NonEmptyStruct1; 196 | ^^^^^^^^^^^^^^^ 197 = note: the matched value is of type `NonEmptyStruct1` 198 = note: match arms with guards don't count towards exhaustivity 199help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 200 | 201LL ~ _ if false => {}, 202LL + NonEmptyStruct1 => todo!() 203 | 204 205error[E0004]: non-exhaustive patterns: `NonEmptyStruct2(_)` not covered 206 --> $DIR/empty-match.rs:139:24 207 | 208LL | match_guarded_arm!(NonEmptyStruct2(true)); 209 | ^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyStruct2(_)` not covered 210 | 211note: `NonEmptyStruct2` defined here 212 --> $DIR/empty-match.rs:18:8 213 | 214LL | struct NonEmptyStruct2(bool); 215 | ^^^^^^^^^^^^^^^ 216 = note: the matched value is of type `NonEmptyStruct2` 217 = note: match arms with guards don't count towards exhaustivity 218help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 219 | 220LL ~ _ if false => {}, 221LL + NonEmptyStruct2(_) => todo!() 222 | 223 224error[E0004]: non-exhaustive patterns: `NonEmptyUnion1 { .. }` not covered 225 --> $DIR/empty-match.rs:144:24 226 | 227LL | match_guarded_arm!((NonEmptyUnion1 { foo: () })); 228 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion1 { .. }` not covered 229 | 230note: `NonEmptyUnion1` defined here 231 --> $DIR/empty-match.rs:21:7 232 | 233LL | union NonEmptyUnion1 { 234 | ^^^^^^^^^^^^^^ 235 = note: the matched value is of type `NonEmptyUnion1` 236 = note: match arms with guards don't count towards exhaustivity 237help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 238 | 239LL ~ _ if false => {}, 240LL + NonEmptyUnion1 { .. } => todo!() 241 | 242 243error[E0004]: non-exhaustive patterns: `NonEmptyUnion2 { .. }` not covered 244 --> $DIR/empty-match.rs:149:24 245 | 246LL | match_guarded_arm!((NonEmptyUnion2 { foo: () })); 247 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyUnion2 { .. }` not covered 248 | 249note: `NonEmptyUnion2` defined here 250 --> $DIR/empty-match.rs:26:7 251 | 252LL | union NonEmptyUnion2 { 253 | ^^^^^^^^^^^^^^ 254 = note: the matched value is of type `NonEmptyUnion2` 255 = note: match arms with guards don't count towards exhaustivity 256help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 257 | 258LL ~ _ if false => {}, 259LL + NonEmptyUnion2 { .. } => todo!() 260 | 261 262error[E0004]: non-exhaustive patterns: `NonEmptyEnum1::Foo(_)` not covered 263 --> $DIR/empty-match.rs:154:24 264 | 265LL | match_guarded_arm!(NonEmptyEnum1::Foo(true)); 266 | ^^^^^^^^^^^^^^^^^^^^^^^^ pattern `NonEmptyEnum1::Foo(_)` not covered 267 | 268note: `NonEmptyEnum1` defined here 269 --> $DIR/empty-match.rs:33:5 270 | 271LL | enum NonEmptyEnum1 { 272 | ------------- 273LL | Foo(bool), 274 | ^^^ not covered 275 = note: the matched value is of type `NonEmptyEnum1` 276 = note: match arms with guards don't count towards exhaustivity 277help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown 278 | 279LL ~ _ if false => {}, 280LL + NonEmptyEnum1::Foo(_) => todo!() 281 | 282 283error[E0004]: non-exhaustive patterns: `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered 284 --> $DIR/empty-match.rs:159:24 285 | 286LL | match_guarded_arm!(NonEmptyEnum2::Foo(true)); 287 | ^^^^^^^^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum2::Foo(_)` and `NonEmptyEnum2::Bar` not covered 288 | 289note: `NonEmptyEnum2` defined here 290 --> $DIR/empty-match.rs:40:5 291 | 292LL | enum NonEmptyEnum2 { 293 | ------------- 294LL | Foo(bool), 295 | ^^^ not covered 296... 297LL | Bar, 298 | ^^^ not covered 299 = note: the matched value is of type `NonEmptyEnum2` 300 = note: match arms with guards don't count towards exhaustivity 301help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern, a match arm with multiple or-patterns as shown, or multiple match arms 302 | 303LL ~ _ if false => {}, 304LL + NonEmptyEnum2::Foo(_) | NonEmptyEnum2::Bar => todo!() 305 | 306 307error[E0004]: non-exhaustive patterns: `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered 308 --> $DIR/empty-match.rs:164:24 309 | 310LL | match_guarded_arm!(NonEmptyEnum5::V1); 311 | ^^^^^^^^^^^^^^^^^ patterns `NonEmptyEnum5::V1`, `NonEmptyEnum5::V2`, `NonEmptyEnum5::V3` and 2 more not covered 312 | 313note: `NonEmptyEnum5` defined here 314 --> $DIR/empty-match.rs:49:6 315 | 316LL | enum NonEmptyEnum5 { 317 | ^^^^^^^^^^^^^ 318 = note: the matched value is of type `NonEmptyEnum5` 319 = note: match arms with guards don't count towards exhaustivity 320help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern as shown, or multiple match arms 321 | 322LL ~ _ if false => {}, 323LL + _ => todo!() 324 | 325 326error: aborting due to 23 previous errors 327 328Some errors have detailed explanations: E0004, E0005. 329For more information about an error, try `rustc --explain E0004`.