diff options
| author | Nadrieril <nadrieril+git@gmail.com> | 2024-02-06 03:50:22 +0100 | 
|---|---|---|
| committer | Nadrieril <nadrieril+git@gmail.com> | 2024-02-28 17:47:19 +0100 | 
| commit | ea381663900b90c0f78c6a64cd5e0b1876047714 (patch) | |
| tree | 4c439cc3a38a71e85c67c8f8c23b5ee2e6ab3b2e /compiler/rustc_pattern_analysis/src/lib.rs | |
| parent | 4f7f06777bf67212aa960017ced0b911ab54bbf8 (diff) | |
| download | rust-ea381663900b90c0f78c6a64cd5e0b1876047714.tar.gz rust-ea381663900b90c0f78c6a64cd5e0b1876047714.zip | |
Don't filter out skipped fields
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/lib.rs')
| -rw-r--r-- | compiler/rustc_pattern_analysis/src/lib.rs | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/compiler/rustc_pattern_analysis/src/lib.rs b/compiler/rustc_pattern_analysis/src/lib.rs index 0b4bc77a976..e58e322a70d 100644 --- a/compiler/rustc_pattern_analysis/src/lib.rs +++ b/compiler/rustc_pattern_analysis/src/lib.rs @@ -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>, | 
