remove impl<'tcx> ToPredicate<'tcx, Clause<'tcx>> for PolyProjectionPredicate<'tcx>
This commit is contained in:
parent
2694b84fbf
commit
3c69a107d0
6 changed files with 23 additions and 26 deletions
|
@ -1644,7 +1644,7 @@ fn assemble_candidates_from_object_ty<'cx, 'tcx>(
|
|||
let env_predicates = data
|
||||
.projection_bounds()
|
||||
.filter(|bound| bound.item_def_id() == obligation.predicate.def_id)
|
||||
.map(|p| p.with_self_ty(tcx, object_ty).to_predicate(tcx));
|
||||
.map(|p| ty::Clause::from_projection_clause(tcx, p.with_self_ty(tcx, object_ty)));
|
||||
|
||||
assemble_candidates_from_predicates(
|
||||
selcx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue