@@ -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 { //~ ERROR non-exhaustive patterns
17
- | ^ pattern `128u8..=255u8 ` not covered
17
+ | ^ pattern `128u8..=::std::u8::MAX ` not covered
18
18
19
19
error[E0004]: non-exhaustive patterns: `11u8..=19u8`, `31u8..=34u8`, `36u8..=69u8` and 1 more not covered
20
20
--> $DIR/exhaustive_integer_patterns.rs:33:11
@@ -46,35 +46,35 @@ error[E0004]: non-exhaustive patterns: `0i16` not covered
46
46
LL | match 0i16 { //~ ERROR non-exhaustive patterns
47
47
| ^^^^ pattern `0i16` not covered
48
48
49
- error[E0004]: non-exhaustive patterns: `128u8..=255u8 ` not covered
49
+ error[E0004]: non-exhaustive patterns: `128u8..=::std::u8::MAX ` not covered
50
50
--> $DIR/exhaustive_integer_patterns.rs:108:11
51
51
|
52
52
LL | match 0u8 { //~ ERROR non-exhaustive patterns
53
- | ^^^ pattern `128u8..=255u8 ` not covered
53
+ | ^^^ pattern `128u8..=::std::u8::MAX ` not covered
54
54
55
- error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=255u8 , Some(_))` not covered
55
+ error[E0004]: non-exhaustive patterns: `(0u8, Some(_))` and `(2u8..=::std::u8::MAX , Some(_))` not covered
56
56
--> $DIR/exhaustive_integer_patterns.rs:120:11
57
57
|
58
58
LL | match (0u8, Some(())) { //~ ERROR non-exhaustive patterns
59
- | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=255u8 , Some(_))` not covered
59
+ | ^^^^^^^^^^^^^^^ patterns `(0u8, Some(_))` and `(2u8..=::std::u8::MAX , Some(_))` not covered
60
60
61
61
error[E0004]: non-exhaustive patterns: `(126u8..=127u8, false)` not covered
62
62
--> $DIR/exhaustive_integer_patterns.rs:125:11
63
63
|
64
64
LL | match (0u8, true) { //~ ERROR non-exhaustive patterns
65
65
| ^^^^^^^^^^^ pattern `(126u8..=127u8, false)` not covered
66
66
67
- error[E0004]: non-exhaustive patterns: `340282366920938463463374607431768211455u128 ` not covered
67
+ error[E0004]: non-exhaustive patterns: `::std::u128::MAX ` not covered
68
68
--> $DIR/exhaustive_integer_patterns.rs:145:11
69
69
|
70
70
LL | match 0u128 { //~ ERROR non-exhaustive patterns
71
- | ^^^^^ pattern `340282366920938463463374607431768211455u128 ` not covered
71
+ | ^^^^^ pattern `::std::u128::MAX ` not covered
72
72
73
- error[E0004]: non-exhaustive patterns: `5u128..=340282366920938463463374607431768211455u128 ` not covered
73
+ error[E0004]: non-exhaustive patterns: `5u128..=::std::u128::MAX ` not covered
74
74
--> $DIR/exhaustive_integer_patterns.rs:149:11
75
75
|
76
76
LL | match 0u128 { //~ ERROR non-exhaustive patterns
77
- | ^^^^^ pattern `5u128..=340282366920938463463374607431768211455u128 ` not covered
77
+ | ^^^^^ pattern `5u128..=::std::u128::MAX ` not covered
78
78
79
79
error[E0004]: non-exhaustive patterns: `0u128..=3u128` not covered
80
80
--> $DIR/exhaustive_integer_patterns.rs:153:11
0 commit comments