Prefer min_exhaustive_patterns
in tests
This commit is contained in:
parent
9dd6eda778
commit
8e83d0cd75
@ -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)]
|
||||||
|
@ -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 {
|
||||||
|
@ -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)]
|
||||||
|
@ -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;
|
||||||
|
@ -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]
|
||||||
|
@ -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;
|
||||||
|
@ -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]
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
@ -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]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// check-pass
|
// check-pass
|
||||||
|
|
||||||
#![feature(exhaustive_patterns)]
|
#![feature(min_exhaustive_patterns)]
|
||||||
|
|
||||||
enum Void {}
|
enum Void {}
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user