Don't filter out skipped fields

This commit is contained in:
Nadrieril 2024-02-06 03:50:22 +01:00
parent 4f7f06777b
commit ea38166390
4 changed files with 28 additions and 22 deletions

View file

@ -109,8 +109,7 @@ pub trait TypeCx: Sized + fmt::Debug {
/// The number of fields for this constructor.
fn ctor_arity(&self, ctor: &Constructor<Self>, ty: &Self::Ty) -> usize;
/// The types of the fields for this constructor. The result must contain `ctor_arity()`-many
/// fields that are not skipped.
/// The types of the fields for this constructor. The result must contain `ctor_arity()` fields.
fn ctor_sub_tys<'a>(
&'a self,
ctor: &'a Constructor<Self>,