instantiate_own doesn't need to return a pair of vectors
This commit is contained in:
parent
fc11ee02ee
commit
91fd862df0
6 changed files with 39 additions and 27 deletions
|
@ -2303,10 +2303,10 @@ fn assoc_ty_own_obligations<'cx, 'tcx>(
|
|||
nested: &mut Vec<PredicateObligation<'tcx>>,
|
||||
) {
|
||||
let tcx = selcx.tcx();
|
||||
let own = tcx
|
||||
let predicates = tcx
|
||||
.predicates_of(obligation.predicate.def_id)
|
||||
.instantiate_own(tcx, obligation.predicate.substs);
|
||||
for (predicate, span) in std::iter::zip(own.predicates, own.spans) {
|
||||
for (predicate, span) in predicates {
|
||||
let normalized = normalize_with_depth_to(
|
||||
selcx,
|
||||
obligation.param_env,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue