Make impls UpcastFrom, implement Upcast for UpcastFrom

This commit is contained in:
Michael Goulet 2024-05-15 10:25:59 -04:00
parent 412dc28d6a
commit 2684655602
2 changed files with 92 additions and 90 deletions

View file

@ -286,7 +286,7 @@ impl<'tcx> EvalCtxt<'_, 'tcx> {
return self.forced_ambiguity(MaybeCause::Ambiguity).into_iter().collect();
}
let goal =
let goal: Goal<'tcx, G> =
goal.with(self.tcx(), goal.predicate.with_self_ty(self.tcx(), normalized_self_ty));
// Vars that show up in the rest of the goal substs may have been constrained by
// normalizing the self type as well, since type variables are not uniquified.