Skip to content

Commit 11f1810

Browse files
committed
Feed is_type_alias_impl_trait for RPITITs on the trait side
1 parent e41491f commit 11f1810

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compiler/rustc_middle/src/query/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ rustc_queries! {
191191
{
192192
desc { "determine whether the opaque is a type-alias impl trait" }
193193
separate_provide_extern
194+
feedable
194195
}
195196

196197
query unsizing_params_for_adt(key: DefId) -> &'tcx rustc_index::bit_set::BitSet<u32>

compiler/rustc_ty_utils/src/assoc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ fn associated_item_for_impl_trait_in_trait(
289289
InternalSubsts::identity_for_item(tcx, opaque_ty_def_id.to_def_id()),
290290
)));
291291

292+
trait_assoc_ty.is_type_alias_impl_trait(false);
293+
292294
// Copy generics_of of the opaque type item but the trait is the parent.
293295
trait_assoc_ty.generics_of({
294296
let opaque_ty_generics = tcx.generics_of(opaque_ty_def_id);

0 commit comments

Comments
 (0)