@@ -10,11 +10,11 @@ note: lint level defined here
10
10
LL | #![deny(unreachable_patterns)]
11
11
| ^^^^^^^^^^^^^^^^^^^^
12
12
13
- error[E0004]: non-exhaustive patterns: `128u8..=255u8 ` not covered
13
+ error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX ` not covered
14
14
--> $DIR/exhaustive_integer_patterns.rs:28:11
15
15
|
16
16
LL | match x {
17
- | ^ pattern `128u8..=255u8 ` not covered
17
+ | ^ pattern `128u8..=std::u8::MAX ` not covered
18
18
|
19
19
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
20
20
@@ -32,19 +32,19 @@ error: unreachable pattern
32
32
LL | -2..=20 => {}
33
33
| ^^^^^^^
34
34
35
- error[E0004]: non-exhaustive patterns: `-128i8 ..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
35
+ error[E0004]: non-exhaustive patterns: `std::i8::MIN ..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
36
36
--> $DIR/exhaustive_integer_patterns.rs:41:11
37
37
|
38
38
LL | match x {
39
- | ^ patterns `-128i8 ..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
39
+ | ^ patterns `std::i8::MIN ..=-8i8`, `-6i8`, `121i8..=124i8` and 1 more not covered
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[E0004]: non-exhaustive patterns: `-128i8 ` not covered
43
+ error[E0004]: non-exhaustive patterns: `std::i8::MIN ` not covered
44
44
--> $DIR/exhaustive_integer_patterns.rs:82:11
45
45
|
46
46
LL | match 0i8 {
47
- | ^^^ pattern `-128i8 ` not covered
47
+ | ^^^ pattern `std::i8::MIN ` not covered
48
48
|
49
49
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
50
50
@@ -56,19 +56,19 @@ LL | match 0i16 {
56
56
|
57
57
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
58
58
59
- error[E0004]: non-exhaustive patterns: `128u8..=255u8 ` not covered
59
+ error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX ` not covered
60
60
--> $DIR/exhaustive_integer_patterns.rs:108:11
61
61
|
62
62
LL | match 0u8 {
63
- | ^^^ pattern `128u8..=255u8 ` not covered
63
+ | ^^^ pattern `128u8..=std::u8::MAX ` not covered
64
64
|
65
65
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
66
66
67
- error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=255u8 , Some(_))` not covered
67
+ error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=std::u8::MAX , Some(_))` not covered
68
68
--> $DIR/exhaustive_integer_patterns.rs:120:11
69
69
|
70
70
LL | match (0u8, Some(())) {
71
- | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=255u8 , Some(_))` not covered
71
+ | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=std::u8::MAX , Some(_))` not covered
72
72
|
73
73
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
74
74
@@ -80,19 +80,19 @@ LL | match (0u8, true) {
80
80
|
81
81
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
82
82
83
- error[E0004]: non-exhaustive patterns: `340282366920938463463374607431768211455u128 ` not covered
83
+ error[E0004]: non-exhaustive patterns: `std::u128::MAX ` not covered
84
84
--> $DIR/exhaustive_integer_patterns.rs:145:11
85
85
|
86
86
LL | match 0u128 {
87
- | ^^^^^ pattern `340282366920938463463374607431768211455u128 ` not covered
87
+ | ^^^^^ pattern `std::u128::MAX ` not covered
88
88
|
89
89
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
90
90
91
- error[E0004]: non-exhaustive patterns: `5u128..=340282366920938463463374607431768211455u128 ` not covered
91
+ error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX ` not covered
92
92
--> $DIR/exhaustive_integer_patterns.rs:149:11
93
93
|
94
94
LL | match 0u128 {
95
- | ^^^^^ pattern `5u128..=340282366920938463463374607431768211455u128 ` not covered
95
+ | ^^^^^ pattern `5u128..=std::u128::MAX ` not covered
96
96
|
97
97
= help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
98
98
0 commit comments