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

@ -185,9 +185,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
})?);
if let ty::Alias(ty::Projection, ..) = placeholder_self_ty.kind() {
let predicates = tcx.predicates_of(def_id).instantiate_own(tcx, substs).predicates;
debug!(?predicates, "projection predicates");
for predicate in predicates {
let predicates = tcx.predicates_of(def_id).instantiate_own(tcx, substs);
for (predicate, _) in predicates {
let normalized = normalize_with_depth_to(
self,
obligation.param_env,