@@ -40,14 +40,6 @@ LL | match x {
40
40
|
41
41
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
42
42
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
-
51
43
error: unreachable pattern
52
44
--> $DIR/exhaustive_integer_patterns.rs:44:9
53
45
|
@@ -63,77 +55,77 @@ LL | match x {
63
55
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
64
56
65
57
error[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
67
59
|
68
60
LL | match 0i8 {
69
61
| ^^^ pattern `std::i8::MIN` not covered
70
62
|
71
63
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
72
64
73
65
error[E0004]: non-exhaustive patterns: `0i16` not covered
74
- --> $DIR/exhaustive_integer_patterns.rs:92 :11
66
+ --> $DIR/exhaustive_integer_patterns.rs:91 :11
75
67
|
76
68
LL | match 0i16 {
77
69
| ^^^^ pattern `0i16` not covered
78
70
|
79
71
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
80
72
81
73
error[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
83
75
|
84
76
LL | match 0u8 {
85
77
| ^^^ pattern `128u8..=std::u8::MAX` not covered
86
78
|
87
79
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
88
80
89
81
error[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
91
83
|
92
84
LL | match (0u8, Some(())) {
93
85
| ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX, Some(_))` not covered
94
86
|
95
87
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
96
88
97
89
error[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
99
91
|
100
92
LL | match (0u8, true) {
101
93
| ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
102
94
|
103
95
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
104
96
105
97
error: multiple patterns covering the same range
106
- --> $DIR/exhaustive_integer_patterns.rs:142 :9
98
+ --> $DIR/exhaustive_integer_patterns.rs:141 :9
107
99
|
108
100
LL | 0 .. 2 => {}
109
101
| ------ this range overlaps on `1u8`
110
102
LL | 1 ..= 2 => {}
111
103
| ^^^^^^^ overlapping patterns
112
104
113
105
error[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
115
107
|
116
108
LL | match 0u128 {
117
109
| ^^^^^ pattern `std::u128::MAX` not covered
118
110
|
119
111
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
120
112
121
113
error[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
123
115
|
124
116
LL | match 0u128 {
125
117
| ^^^^^ pattern `5u128..=std::u128::MAX` not covered
126
118
|
127
119
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
128
120
129
121
error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
130
- --> $DIR/exhaustive_integer_patterns.rs:155 :11
122
+ --> $DIR/exhaustive_integer_patterns.rs:154 :11
131
123
|
132
124
LL | match 0u128 {
133
125
| ^^^^^ pattern `0u128..=3u128` not covered
134
126
|
135
127
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
136
128
137
- error: aborting due to 16 previous errors
129
+ error: aborting due to 15 previous errors
138
130
139
131
For more information about this error, try `rustc --explain E0004`.
0 commit comments