1
Fork 0

Feed is_type_alias_impl_trait for RPITITs on the trait side

This commit is contained in:
Santiago Pastorino 2023-03-13 19:02:28 -03:00
parent e41491fe05
commit 11f1810831
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
2 changed files with 3 additions and 0 deletions

View file

@ -191,6 +191,7 @@ rustc_queries! {
{ {
desc { "determine whether the opaque is a type-alias impl trait" } desc { "determine whether the opaque is a type-alias impl trait" }
separate_provide_extern separate_provide_extern
feedable
} }
query unsizing_params_for_adt(key: DefId) -> &'tcx rustc_index::bit_set::BitSet<u32> query unsizing_params_for_adt(key: DefId) -> &'tcx rustc_index::bit_set::BitSet<u32>

View file

@ -289,6 +289,8 @@ fn associated_item_for_impl_trait_in_trait(
InternalSubsts::identity_for_item(tcx, opaque_ty_def_id.to_def_id()), InternalSubsts::identity_for_item(tcx, opaque_ty_def_id.to_def_id()),
))); )));
trait_assoc_ty.is_type_alias_impl_trait(false);
// Copy generics_of of the opaque type item but the trait is the parent. // Copy generics_of of the opaque type item but the trait is the parent.
trait_assoc_ty.generics_of({ trait_assoc_ty.generics_of({
let opaque_ty_generics = tcx.generics_of(opaque_ty_def_id); let opaque_ty_generics = tcx.generics_of(opaque_ty_def_id);