@@ -48,6 +48,12 @@ LL | -5..=120 => {}
4848LL | -2..=20 => {}
4949 | ^^^^^^^ overlapping patterns
5050
51+ error: unreachable pattern
52+ --> $DIR/exhaustive_integer_patterns.rs:44:9
53+ |
54+ LL | -2..=20 => {}
55+ | ^^^^^^^
56+
5157error[E0004]: non-exhaustive patterns: `std::i8::MIN..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
5258 --> $DIR/exhaustive_integer_patterns.rs:41:11
5359 |
@@ -57,77 +63,77 @@ LL | match x {
5763 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
5864
5965error[E0004]: non-exhaustive patterns: `std::i8::MIN` not covered
60- --> $DIR/exhaustive_integer_patterns.rs:82 :11
66+ --> $DIR/exhaustive_integer_patterns.rs:84 :11
6167 |
6268LL | match 0i8 {
6369 | ^^^ pattern `std::i8::MIN` not covered
6470 |
6571 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
6672
6773error[E0004]: non-exhaustive patterns: `0i16` not covered
68- --> $DIR/exhaustive_integer_patterns.rs:90 :11
74+ --> $DIR/exhaustive_integer_patterns.rs:92 :11
6975 |
7076LL | match 0i16 {
7177 | ^^^^ pattern `0i16` not covered
7278 |
7379 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
7480
7581error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX` not covered
76- --> $DIR/exhaustive_integer_patterns.rs:108 :11
82+ --> $DIR/exhaustive_integer_patterns.rs:110 :11
7783 |
7884LL | match 0u8 {
7985 | ^^^ pattern `128u8..=std::u8::MAX` not covered
8086 |
8187 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8288
8389error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
84- --> $DIR/exhaustive_integer_patterns.rs:120 :11
90+ --> $DIR/exhaustive_integer_patterns.rs:122 :11
8591 |
8692LL | match (0u8, Some(())) {
8793 | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
8894 |
8995 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9096
9197error[E0004]: non-exhaustive patterns: `(126u8..=127u8, false)` not covered
92- --> $DIR/exhaustive_integer_patterns.rs:125 :11
98+ --> $DIR/exhaustive_integer_patterns.rs:127 :11
9399 |
94100LL | match (0u8, true) {
95101 | ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
96102 |
97103 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98104
99105error: multiple patterns covering the same range
100- --> $DIR/exhaustive_integer_patterns.rs:140 :9
106+ --> $DIR/exhaustive_integer_patterns.rs:142 :9
101107 |
102108LL | 0 .. 2 => {}
103109 | ------ this range overlaps on `1u8`
104110LL | 1 ..= 2 => {}
105111 | ^^^^^^^ overlapping patterns
106112
107113error[E0004]: non-exhaustive patterns: `std::u128::MAX` not covered
108- --> $DIR/exhaustive_integer_patterns.rs:145 :11
114+ --> $DIR/exhaustive_integer_patterns.rs:147 :11
109115 |
110116LL | match 0u128 {
111117 | ^^^^^ pattern `std::u128::MAX` not covered
112118 |
113119 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
114120
115121error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX` not covered
116- --> $DIR/exhaustive_integer_patterns.rs:149 :11
122+ --> $DIR/exhaustive_integer_patterns.rs:151 :11
117123 |
118124LL | match 0u128 {
119125 | ^^^^^ pattern `5u128..=std::u128::MAX` not covered
120126 |
121127 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
122128
123129error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
124- --> $DIR/exhaustive_integer_patterns.rs:153 :11
130+ --> $DIR/exhaustive_integer_patterns.rs:155 :11
125131 |
126132LL | match 0u128 {
127133 | ^^^^^ pattern `0u128..=3u128` not covered
128134 |
129135 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
130136
131- error: aborting due to 15 previous errors
137+ error: aborting due to 16 previous errors
132138
133139For more information about this error, try `rustc --explain E0004`.
0 commit comments