Add bidirectional where clauses on RPITIT synthesized GATs
This commit is contained in:
parent
d70deac161
commit
4925b57782
6 changed files with 92 additions and 36 deletions
|
@ -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(&[]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue