Remove the precise_pointer_size_matching
feature gate
This commit is contained in:
parent
bd3a22115f
commit
5e470db05c
10 changed files with 33 additions and 86 deletions
|
@ -1,6 +1,5 @@
|
|||
// revisions: allow deny
|
||||
// revisions: deny
|
||||
#![feature(exclusive_range_pattern)]
|
||||
#![cfg_attr(allow, feature(precise_pointer_size_matching))]
|
||||
#![allow(overlapping_range_endpoints)]
|
||||
|
||||
macro_rules! m {
|
||||
|
@ -12,23 +11,23 @@ macro_rules! m {
|
|||
#[rustfmt::skip]
|
||||
fn main() {
|
||||
match 0usize {
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
0..=usize::MAX => {}
|
||||
}
|
||||
|
||||
match 0isize {
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
isize::MIN..=isize::MAX => {}
|
||||
}
|
||||
|
||||
m!(0usize, 0..=usize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!(0usize, 0..5 | 5..=usize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!(0usize, 0..usize::MAX | usize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!((0usize, true), (0..5, true) | (5..=usize::MAX, true) | (0..=usize::MAX, false));
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
|
||||
m!(0usize, 0..);
|
||||
m!(0usize, 0..5 | 5..);
|
||||
|
@ -37,18 +36,18 @@ fn main() {
|
|||
m!(0usize, 0..=usize::MAX | usize::MAX..);
|
||||
|
||||
m!(0isize, isize::MIN..=isize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!(0isize, isize::MIN..5 | 5..=isize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!(0isize, isize::MIN..=-1 | 0 | 1..=isize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!(0isize, isize::MIN..isize::MAX | isize::MAX);
|
||||
//[deny]~^ ERROR non-exhaustive patterns
|
||||
//~^ ERROR non-exhaustive patterns
|
||||
m!(
|
||||
(0isize, true),
|
||||
(isize::MIN..5, true) | (5..=isize::MAX, true) | (isize::MIN..=isize::MAX, false)
|
||||
);
|
||||
//[deny]~^^^ ERROR non-exhaustive patterns
|
||||
//~^^^ ERROR non-exhaustive patterns
|
||||
|
||||
m!(0isize, ..0 | 0..);
|
||||
m!(0isize, ..5 | 5..);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue