1
Fork 0

instantiate_own doesn't need to return a pair of vectors

This commit is contained in:
Michael Goulet 2023-01-03 02:49:31 +00:00
parent fc11ee02ee
commit 91fd862df0
6 changed files with 39 additions and 27 deletions

View file

@ -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,