@@ -10,11 +10,11 @@ note: lint level defined here
1010LL | #![deny(unreachable_patterns)]
1111 | ^^^^^^^^^^^^^^^^^^^^
1212
13- error[E0004]: non-exhaustive patterns: `128u8..=255u8 ` not covered
13+ error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX ` not covered
1414 --> $DIR/exhaustive_integer_patterns.rs:28:11
1515 |
1616LL | match x {
17- | ^ pattern `128u8..=255u8 ` not covered
17+ | ^ pattern `128u8..=std::u8::MAX ` not covered
1818 |
1919 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
2020
@@ -32,19 +32,19 @@ error: unreachable pattern
3232LL | -2..=20 => {}
3333 | ^^^^^^^
3434
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
3636 --> $DIR/exhaustive_integer_patterns.rs:41:11
3737 |
3838LL | 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
4040 |
4141 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
4242
43- error[E0004]: non-exhaustive patterns: `-128i8 ` not covered
43+ error[E0004]: non-exhaustive patterns: `std::i8::MIN ` not covered
4444 --> $DIR/exhaustive_integer_patterns.rs:82:11
4545 |
4646LL | match 0i8 {
47- | ^^^ pattern `-128i8 ` not covered
47+ | ^^^ pattern `std::i8::MIN ` not covered
4848 |
4949 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
5050
@@ -56,19 +56,19 @@ LL | match 0i16 {
5656 |
5757 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
5858
59- error[E0004]: non-exhaustive patterns: `128u8..=255u8 ` not covered
59+ error[E0004]: non-exhaustive patterns: `128u8..=std::u8::MAX ` not covered
6060 --> $DIR/exhaustive_integer_patterns.rs:108:11
6161 |
6262LL | match 0u8 {
63- | ^^^ pattern `128u8..=255u8 ` not covered
63+ | ^^^ pattern `128u8..=std::u8::MAX ` not covered
6464 |
6565 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
6666
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
6868 --> $DIR/exhaustive_integer_patterns.rs:120:11
6969 |
7070LL | 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
7272 |
7373 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
7474
@@ -80,19 +80,19 @@ LL | match (0u8, true) {
8080 |
8181 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
8282
83- error[E0004]: non-exhaustive patterns: `340282366920938463463374607431768211455u128 ` not covered
83+ error[E0004]: non-exhaustive patterns: `std::u128::MAX ` not covered
8484 --> $DIR/exhaustive_integer_patterns.rs:145:11
8585 |
8686LL | match 0u128 {
87- | ^^^^^ pattern `340282366920938463463374607431768211455u128 ` not covered
87+ | ^^^^^ pattern `std::u128::MAX ` not covered
8888 |
8989 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9090
91- error[E0004]: non-exhaustive patterns: `5u128..=340282366920938463463374607431768211455u128 ` not covered
91+ error[E0004]: non-exhaustive patterns: `5u128..=std::u128::MAX ` not covered
9292 --> $DIR/exhaustive_integer_patterns.rs:149:11
9393 |
9494LL | match 0u128 {
95- | ^^^^^ pattern `5u128..=340282366920938463463374607431768211455u128 ` not covered
95+ | ^^^^^ pattern `5u128..=std::u128::MAX ` not covered
9696 |
9797 = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
9898
0 commit comments