@@ -40,14 +40,6 @@ LL | match x {
4040 |
4141 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
4242
43- error: multiple patterns covering the same range
44- --> $DIR/exhaustive_integer_patterns.rs:44:9
45- |
46- LL | -5..=120 => {}
47- | -------- this range overlaps on `-2i8..=20i8`
48- LL | -2..=20 => {}
49- | ^^^^^^^ overlapping patterns
50-
5143error: unreachable pattern
5244 --> $DIR/exhaustive_integer_patterns.rs:44:9
5345 |
@@ -63,77 +55,77 @@ LL | match x {
6355 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
6456
6557error[E0004]: non-exhaustive patterns: `std::i8::MIN` not covered
66- --> $DIR/exhaustive_integer_patterns.rs:84 :11
58+ --> $DIR/exhaustive_integer_patterns.rs:83 :11
6759 |
6860LL | match 0i8 {
6961 | ^^^ pattern `std::i8::MIN` not covered
7062 |
7163 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
7264
7365error[E0004]: non-exhaustive patterns: `0i16` not covered
74- --> $DIR/exhaustive_integer_patterns.rs:92 :11
66+ --> $DIR/exhaustive_integer_patterns.rs:91 :11
7567 |
7668LL | match 0i16 {
7769 | ^^^^ pattern `0i16` not covered
7870 |
7971 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8072
8173error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX` not covered
82- --> $DIR/exhaustive_integer_patterns.rs:110 :11
74+ --> $DIR/exhaustive_integer_patterns.rs:109 :11
8375 |
8476LL | match 0u8 {
8577 | ^^^ pattern `128u8..=std::u8::MAX` not covered
8678 |
8779 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8880
8981error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
90- --> $DIR/exhaustive_integer_patterns.rs:122 :11
82+ --> $DIR/exhaustive_integer_patterns.rs:121 :11
9183 |
9284LL | match (0u8, Some(())) {
9385 | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
9486 |
9587 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9688
9789error[E0004]: non-exhaustive patterns: `(126u8..=127u8, false)` not covered
98- --> $DIR/exhaustive_integer_patterns.rs:127 :11
90+ --> $DIR/exhaustive_integer_patterns.rs:126 :11
9991 |
10092LL | match (0u8, true) {
10193 | ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
10294 |
10395 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
10496
10597error: multiple patterns covering the same range
106- --> $DIR/exhaustive_integer_patterns.rs:142 :9
98+ --> $DIR/exhaustive_integer_patterns.rs:141 :9
10799 |
108100LL | 0 .. 2 => {}
109101 | ------ this range overlaps on `1u8`
110102LL | 1 ..= 2 => {}
111103 | ^^^^^^^ overlapping patterns
112104
113105error[E0004]: non-exhaustive patterns: `std::u128::MAX` not covered
114- --> $DIR/exhaustive_integer_patterns.rs:147 :11
106+ --> $DIR/exhaustive_integer_patterns.rs:146 :11
115107 |
116108LL | match 0u128 {
117109 | ^^^^^ pattern `std::u128::MAX` not covered
118110 |
119111 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
120112
121113error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX` not covered
122- --> $DIR/exhaustive_integer_patterns.rs:151 :11
114+ --> $DIR/exhaustive_integer_patterns.rs:150 :11
123115 |
124116LL | match 0u128 {
125117 | ^^^^^ pattern `5u128..=std::u128::MAX` not covered
126118 |
127119 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
128120
129121error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
130- --> $DIR/exhaustive_integer_patterns.rs:155 :11
122+ --> $DIR/exhaustive_integer_patterns.rs:154 :11
131123 |
132124LL | match 0u128 {
133125 | ^^^^^ pattern `0u128..=3u128` not covered
134126 |
135127 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
136128
137- error: aborting due to 16 previous errors
129+ error: aborting due to 15 previous errors
138130
139131For more information about this error, try `rustc --explain E0004`.
0 commit comments