deeply_normalize pass in fulfill cx for old solver

This commit is contained in:
lcnr
2023-06-29 14:17:54 +02:00
parent 5378f07d64
commit a2dfed6711
2 changed files with 15 additions and 12 deletions

View File

@@ -229,7 +229,11 @@ impl<'a, 'tcx> ObligationCtxt<'a, 'tcx> {
// implied_bounds.insert(ty);
let cause = ObligationCause::misc(span, def_id);
match self.infcx.at(&cause, param_env).deeply_normalize(ty) {
match self
.infcx
.at(&cause, param_env)
.deeply_normalize(ty, &mut **self.engine.borrow_mut())
{
// Insert well-formed types, ignoring duplicates.
Ok(normalized) => drop(implied_bounds.insert(normalized)),
Err(normalization_errors) => errors.extend(normalization_errors),