Implement explicit_predicates_of for impl side RPITITs assoc type

This commit is contained in:
Santiago Pastorino 2023-03-03 12:41:10 -03:00
parent e132d293b2
commit 31a0d6721b
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF

View file

@ -382,5 +382,11 @@ fn impl_associated_item_for_impl_trait_in_trait(
}
});
// There are no predicates for the synthesized associated type.
impl_assoc_ty.explicit_predicates_of(ty::GenericPredicates {
parent: Some(impl_def_id),
predicates: &[],
});
local_def_id
}