Skip to content

Commit

Permalink
Prefer min_exhaustive_patterns in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril committed Feb 13, 2024
1 parent 9dd6eda commit 8e83d0c
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/ui/pattern/usefulness/impl-trait.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(never_type)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![feature(type_alias_impl_trait)]
#![feature(non_exhaustive_omitted_patterns_lint)]
#![deny(unreachable_patterns)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/pattern/usefulness/uninhabited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// `Ty::is_inhabited_from` function.
#![feature(never_type)]
#![feature(never_type_fallback)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![deny(unreachable_patterns)]

macro_rules! assert_empty {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/reachable/unreachable-loop-patterns.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![feature(never_type, never_type_fallback)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]

#![allow(unreachable_code)]
#![deny(unreachable_patterns)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// aux-build:uninhabited.rs
#![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![feature(never_type)]

extern crate uninhabited;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// check-pass

#![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![feature(never_type)]

#[non_exhaustive]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// aux-build:uninhabited.rs
#![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![feature(never_type)]

extern crate uninhabited;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// check-pass

#![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![feature(never_type)]

#[non_exhaustive]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// aux-build:uninhabited.rs
// build-pass (FIXME(62277): could be check-pass?)
#![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]

extern crate uninhabited;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![feature(never_type)]

#[non_exhaustive]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// check-pass

#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]

enum Void {}
fn main() {
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/uninhabited/uninhabited-patterns.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![feature(box_patterns)]
#![feature(never_type)]
#![feature(exhaustive_patterns)]
#![feature(min_exhaustive_patterns)]
#![deny(unreachable_patterns)]

mod foo {
Expand Down

0 comments on commit 8e83d0c

Please sign in to comment.