Do not canonicalize in new solver if it has nothing to canonicalize

This commit is contained in:
Michael Goulet
2025-05-24 17:24:59 +00:00
parent 84a3255cc3
commit ade24354f4
2 changed files with 55 additions and 8 deletions

View File

@@ -86,4 +86,8 @@ impl<D: SolverDelegate<Interner = I>, I: Interner> TypeFolder<I> for EagerResolv
}
}
}
fn fold_predicate(&mut self, p: I::Predicate) -> I::Predicate {
if p.has_infer() { p.super_fold_with(self) } else { p }
}
}