Skip to content

Commit

Permalink
Fix precise_pointer_size_matching tests on all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Dec 5, 2018
1 parent 4406391 commit ed64b19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions src/test/ui/precise_pointer_size_matching.rs
Original file line number Diff line number Diff line change
@@ -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(exclusive_range_pattern)]

Expand Down
12 changes: 6 additions & 6 deletions src/test/ui/precise_pointer_size_matching.stderr
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
error[E0004]: non-exhaustive patterns: `-9223372036854775808isize..=-6isize` and `21isize..=9223372036854775807isize` not covered
--> $DIR/precise_pointer_size_matching.rs:17:11
error[E0004]: non-exhaustive patterns: `$ISIZE_MIN..=-6isize` and `21isize..=$ISIZE_MAX` not covered
--> $DIR/precise_pointer_size_matching.rs:24:11
|
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
--> $DIR/precise_pointer_size_matching.rs:22:11
error[E0004]: non-exhaustive patterns: `0usize` and `21usize..=$USIZE_MAX` not covered
--> $DIR/precise_pointer_size_matching.rs:29:11
|
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

Expand Down

0 comments on commit ed64b19

Please sign in to comment.