Implement feature gate logic
This commit is contained in:
@@ -95,6 +95,7 @@ pub trait TypeCx: 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;
|
||||
|
||||
Reference in New Issue
Block a user