diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-12 10:08:04 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-08-12 10:08:04 +0200 |
| commit | c0c6f28cd6ac0d2541f4d546b6098874d375747d (patch) | |
| tree | 503430bb7d255dfd5e6de45c075e2b216ac31a4c /compiler/rustc_pattern_analysis/src/lib.rs | |
| parent | 3652011f54f007855b33a4411234f0a4612d1814 (diff) | |
| parent | 0aa17a4c4de2daaf44e38e40f3ac8c2b4275d6bd (diff) | |
| download | rust-c0c6f28cd6ac0d2541f4d546b6098874d375747d.tar.gz rust-c0c6f28cd6ac0d2541f4d546b6098874d375747d.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_pattern_analysis/src/lib.rs b/compiler/rustc_pattern_analysis/src/lib.rs index a5c0b13c90b..6c9c848bb10 100644 --- a/compiler/rustc_pattern_analysis/src/lib.rs +++ b/compiler/rustc_pattern_analysis/src/lib.rs @@ -5,6 +5,7 @@ // tidy-alphabetical-start #![allow(rustc::diagnostic_outside_of_impl)] #![allow(rustc::untranslatable_diagnostic)] +#![cfg_attr(feature = "rustc", feature(let_chains))] // tidy-alphabetical-end pub mod constructor; @@ -54,7 +55,6 @@ pub trait PatCx: Sized + fmt::Debug { type PatData: Clone; fn is_exhaustive_patterns_feature_on(&self) -> bool; - fn is_min_exhaustive_patterns_feature_on(&self) -> bool; /// The number of fields for this constructor. fn ctor_arity(&self, ctor: &Constructor<Self>, ty: &Self::Ty) -> usize; |
