1
Fork 0

Stabilize min_exhaustive_patterns

This commit is contained in:
Nadrieril 2024-03-20 19:24:42 +01:00
parent 19469cb536
commit cd40769c02
10 changed files with 19 additions and 39 deletions

View file

@ -152,10 +152,6 @@ impl PatCx for Cx {
false
}
fn is_min_exhaustive_patterns_feature_on(&self) -> bool {
true
}
fn ctor_arity(&self, ctor: &Constructor<Self>, ty: &Self::Ty) -> usize {
ty.sub_tys(ctor).len()
}