1
Fork 0

Add bidirectional where clauses on RPITIT synthesized GATs

This commit is contained in:
Santiago Pastorino 2023-06-21 19:09:18 -03:00
parent d70deac161
commit 4925b57782
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
6 changed files with 92 additions and 36 deletions

View file

@ -340,12 +340,6 @@ fn associated_type_for_impl_trait_in_trait(
}
});
// There are no predicates for the synthesized associated type.
trait_assoc_ty.explicit_predicates_of(ty::GenericPredicates {
parent: Some(trait_def_id.to_def_id()),
predicates: &[],
});
// There are no inferred outlives for the synthesized associated type.
trait_assoc_ty.inferred_outlives_of(&[]);
@ -424,12 +418,6 @@ fn associated_type_for_impl_trait_in_impl(
}
});
// There are no predicates for the synthesized associated type.
impl_assoc_ty.explicit_predicates_of(ty::GenericPredicates {
parent: Some(impl_local_def_id.to_def_id()),
predicates: &[],
});
// There are no inferred outlives for the synthesized associated type.
impl_assoc_ty.inferred_outlives_of(&[]);