Fix precise_pointer_size_matching tests on all platforms
This commit is contained in:
parent
4406391cdc
commit
ed64b1927b
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
// normalize-stderr-32bit: "-2147483648isize" -> "$$ISIZE_MIN"
|
||||||
|
// normalize-stderr-64bit: "-9223372036854775808isize" -> "$$ISIZE_MIN"
|
||||||
|
// normalize-stderr-32bit: "2147483647isize" -> "$$ISIZE_MAX"
|
||||||
|
// normalize-stderr-64bit: "9223372036854775807isize" -> "$$ISIZE_MAX"
|
||||||
|
// normalize-stderr-32bit: "4294967295usize" -> "$$USIZE_MAX"
|
||||||
|
// normalize-stderr-64bit: "18446744073709551615usize" -> "$$USIZE_MAX"
|
||||||
|
|
||||||
#![feature(precise_pointer_size_matching)]
|
#![feature(precise_pointer_size_matching)]
|
||||||
#![feature(exclusive_range_pattern)]
|
#![feature(exclusive_range_pattern)]
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
error[E0004]: non-exhaustive patterns: `-9223372036854775808isize..=-6isize` and `21isize..=9223372036854775807isize` not covered
|
error[E0004]: non-exhaustive patterns: `$ISIZE_MIN..=-6isize` and `21isize..=$ISIZE_MAX` not covered
|
||||||
--> $DIR/precise_pointer_size_matching.rs:17:11
|
--> $DIR/precise_pointer_size_matching.rs:24:11
|
||||||
|
|
|
|
||||||
LL | match 0isize { //~ ERROR non-exhaustive patterns
|
LL | match 0isize { //~ ERROR non-exhaustive patterns
|
||||||
| ^^^^^^ patterns `-9223372036854775808isize..=-6isize` and `21isize..=9223372036854775807isize` not covered
|
| ^^^^^^ patterns `$ISIZE_MIN..=-6isize` and `21isize..=$ISIZE_MAX` not covered
|
||||||
|
|
||||||
error[E0004]: non-exhaustive patterns: `0usize` and `21usize..=18446744073709551615usize` not covered
|
error[E0004]: non-exhaustive patterns: `0usize` and `21usize..=$USIZE_MAX` not covered
|
||||||
--> $DIR/precise_pointer_size_matching.rs:22:11
|
--> $DIR/precise_pointer_size_matching.rs:29:11
|
||||||
|
|
|
|
||||||
LL | match 0usize { //~ ERROR non-exhaustive patterns
|
LL | match 0usize { //~ ERROR non-exhaustive patterns
|
||||||
| ^^^^^^ patterns `0usize` and `21usize..=18446744073709551615usize` not covered
|
| ^^^^^^ patterns `0usize` and `21usize..=$USIZE_MAX` not covered
|
||||||
|
|
||||||
error: aborting due to 2 previous errors
|
error: aborting due to 2 previous errors
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue