fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
4.2 KiB109 linesraw
1error: unreachable pattern
2  --> $DIR/exhaustive_integer_patterns.rs:23:9
3   |
4LL |         200 => {}
5   |         ^^^
6   |
7note: lint level defined here
8  --> $DIR/exhaustive_integer_patterns.rs:4:9
9   |
10LL | #![deny(unreachable_patterns)]
11   |         ^^^^^^^^^^^^^^^^^^^^
12
13error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX` not covered
14  --> $DIR/exhaustive_integer_patterns.rs:28:11
15   |
16LL |     match x {
17   |           ^ pattern `128u8..=std::u8::MAX` not covered
18   |
19   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
20
21error[E0004]: non-exhaustive patterns: `11u8..=19u8`, `31u8..=34u8`, `36u8..=69u8` and 1 more not covered
22  --> $DIR/exhaustive_integer_patterns.rs:33:11
23   |
24LL |     match x {
25   |           ^ patterns `11u8..=19u8`, `31u8..=34u8`, `36u8..=69u8` and 1 more not covered
26   |
27   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
28
29error: unreachable pattern
30  --> $DIR/exhaustive_integer_patterns.rs:44:9
31   |
32LL |         -2..=20 => {}
33   |         ^^^^^^^
34
35error[E0004]: non-exhaustive patterns: `std::i8::MIN..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
36  --> $DIR/exhaustive_integer_patterns.rs:41:11
37   |
38LL |     match x {
39   |           ^ patterns `std::i8::MIN..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
40   |
41   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
42
43error[E0004]: non-exhaustive patterns: `std::i8::MIN` not covered
44  --> $DIR/exhaustive_integer_patterns.rs:82:11
45   |
46LL |     match 0i8 {
47   |           ^^^ pattern `std::i8::MIN` not covered
48   |
49   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
50
51error[E0004]: non-exhaustive patterns: `0i16` not covered
52  --> $DIR/exhaustive_integer_patterns.rs:90:11
53   |
54LL |     match 0i16 {
55   |           ^^^^ pattern `0i16` not covered
56   |
57   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
58
59error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX` not covered
60  --> $DIR/exhaustive_integer_patterns.rs:108:11
61   |
62LL |     match 0u8 {
63   |           ^^^ pattern `128u8..=std::u8::MAX` not covered
64   |
65   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
66
67error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
68  --> $DIR/exhaustive_integer_patterns.rs:120:11
69   |
70LL |     match (0u8, Some(())) {
71   |           ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
72   |
73   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
74
75error[E0004]: non-exhaustive patterns: `(126u8..=127u8, false)` not covered
76  --> $DIR/exhaustive_integer_patterns.rs:125:11
77   |
78LL |     match (0u8, true) {
79   |           ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
80   |
81   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
82
83error[E0004]: non-exhaustive patterns: `std::u128::MAX` not covered
84  --> $DIR/exhaustive_integer_patterns.rs:145:11
85   |
86LL |     match 0u128 {
87   |           ^^^^^ pattern `std::u128::MAX` not covered
88   |
89   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
90
91error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX` not covered
92  --> $DIR/exhaustive_integer_patterns.rs:149:11
93   |
94LL |     match 0u128 {
95   |           ^^^^^ pattern `5u128..=std::u128::MAX` not covered
96   |
97   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98
99error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
100  --> $DIR/exhaustive_integer_patterns.rs:153:11
101   |
102LL |     match 0u128 {
103   |           ^^^^^ pattern `0u128..=3u128` not covered
104   |
105   = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
106
107error: aborting due to 13 previous errors
108
109For more information about this error, try `rustc --explain E0004`.