Skip to content

Commit 31cfcc0

Browse files
committed
Implement explicit_predicates_of for impl side RPITITs assoc type
1 parent 90bae57 commit 31cfcc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_ty_utils/src/assoc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,5 +380,11 @@ fn impl_associated_item_for_impl_trait_in_trait(
380380
}
381381
});
382382

383+
// There are no predicates for the synthesized associated type.
384+
impl_assoc_ty.explicit_predicates_of(ty::GenericPredicates {
385+
parent: Some(impl_def_id),
386+
predicates: &[],
387+
});
388+
383389
local_def_id
384390
}

0 commit comments

Comments
 (0)