Prefer min_exhaustive_patterns in tests

This commit is contained in:
Nadrieril 2024-02-07 16:34:25 +01:00
parent 9dd6eda778
commit 8e83d0cd75
11 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
#![feature(never_type)] #![feature(never_type)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![feature(type_alias_impl_trait)] #![feature(type_alias_impl_trait)]
#![feature(non_exhaustive_omitted_patterns_lint)] #![feature(non_exhaustive_omitted_patterns_lint)]
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]

View File

@ -5,7 +5,7 @@
// `Ty::is_inhabited_from` function. // `Ty::is_inhabited_from` function.
#![feature(never_type)] #![feature(never_type)]
#![feature(never_type_fallback)] #![feature(never_type_fallback)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
macro_rules! assert_empty { macro_rules! assert_empty {

View File

@ -1,5 +1,5 @@
#![feature(never_type, never_type_fallback)] #![feature(never_type, never_type_fallback)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![allow(unreachable_code)] #![allow(unreachable_code)]
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]

View File

@ -1,6 +1,6 @@
// aux-build:uninhabited.rs // aux-build:uninhabited.rs
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![feature(never_type)] #![feature(never_type)]
extern crate uninhabited; extern crate uninhabited;

View File

@ -1,7 +1,7 @@
// check-pass // check-pass
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![feature(never_type)] #![feature(never_type)]
#[non_exhaustive] #[non_exhaustive]

View File

@ -1,6 +1,6 @@
// aux-build:uninhabited.rs // aux-build:uninhabited.rs
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![feature(never_type)] #![feature(never_type)]
extern crate uninhabited; extern crate uninhabited;

View File

@ -1,7 +1,7 @@
// check-pass // check-pass
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![feature(never_type)] #![feature(never_type)]
#[non_exhaustive] #[non_exhaustive]

View File

@ -1,7 +1,7 @@
// aux-build:uninhabited.rs // aux-build:uninhabited.rs
// build-pass (FIXME(62277): could be check-pass?) // build-pass (FIXME(62277): could be check-pass?)
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
extern crate uninhabited; extern crate uninhabited;

View File

@ -1,5 +1,5 @@
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![feature(never_type)] #![feature(never_type)]
#[non_exhaustive] #[non_exhaustive]

View File

@ -1,6 +1,6 @@
// check-pass // check-pass
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
enum Void {} enum Void {}
fn main() { fn main() {

View File

@ -1,6 +1,6 @@
#![feature(box_patterns)] #![feature(box_patterns)]
#![feature(never_type)] #![feature(never_type)]
#![feature(exhaustive_patterns)] #![feature(min_exhaustive_patterns)]
#![deny(unreachable_patterns)] #![deny(unreachable_patterns)]
mod foo { mod foo {