Even more

This commit is contained in:
Michael Goulet 2023-12-26 02:02:01 +00:00
parent eebb2abe0b
commit b91a98ba10
2 changed files with 10 additions and 13 deletions

View file

@ -131,7 +131,7 @@ impl<'p, 'tcx> RustcMatchCheckCtxt<'p, 'tcx> {
pub(crate) fn list_variant_nonhidden_fields<'a>(
&'a self,
ty: Ty<'tcx>,
variant: &'a VariantDef,
variant: &'a VariantDef, // TODO:
) -> impl Iterator<Item = (FieldIdx, Ty<'tcx>)> + Captures<'p> + Captures<'a> {
let cx = self;
let ty::Adt(adt, args) = ty.kind() else { bug!() };