We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a74a2d9 + 74650c9 commit 4295875Copy full SHA for 4295875
1 file changed
crates/hir-ty/src/mir/monomorphization.rs
@@ -65,6 +65,9 @@ impl<'db> FallibleTypeFolder<DbInterner<'db>> for Filler<'db> {
65
ty,
66
)
67
.map_err(|_| MirLowerError::NotSupported("can't normalize alias".to_owned()))?;
68
+ // Normalization could introduce infer vars (for example, if the alias cannot be normalized),
69
+ // and we must not have infer vars in the body.
70
+ let ty = ty.replace_infer_with_error(self.infcx.interner);
71
ty.try_super_fold_with(self)
72
}
73
TyKind::Param(param) => Ok(self
0 commit comments