combine all unsized types and add another recursive call to process nested unsized types correctly

This commit is contained in:
b-naber
2022-04-27 11:11:54 +02:00
parent bfefb4d74c
commit ef5f07256c
3 changed files with 71 additions and 89 deletions

View File

@@ -220,7 +220,7 @@ impl<'tcx> TyCtxt<'tcx> {
self,
mut ty: Ty<'tcx>,
mut normalize: impl FnMut(Ty<'tcx>) -> Ty<'tcx>,
// This is a hack that is currently used to allow us to walk a ValTree
// This is currently used to allow us to walk a ValTree
// in lockstep with the type in order to get the ValTree branch that
// corresponds to an unsized field.
mut f: impl FnMut() -> (),