Normalize struct tail type when checking Pointee trait

This commit is contained in:
Michael Goulet
2021-12-24 01:41:18 -08:00
parent 77497c74f9
commit 5a1c460898
4 changed files with 61 additions and 10 deletions

View File

@@ -192,7 +192,7 @@ impl<'tcx> TyCtxt<'tcx> {
pub fn struct_tail_with_normalize(
self,
mut ty: Ty<'tcx>,
normalize: impl Fn(Ty<'tcx>) -> Ty<'tcx>,
mut normalize: impl FnMut(Ty<'tcx>) -> Ty<'tcx>,
) -> Ty<'tcx> {
let recursion_limit = self.recursion_limit();
for iteration in 0.. {