Make impls UpcastFrom, implement Upcast for UpcastFrom
This commit is contained in:
parent
412dc28d6a
commit
2684655602
2 changed files with 92 additions and 90 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue