Skip to content

Commit 3ecb701

Browse files
committed
Collect newly synthesized RPITITs on ImplTraitInTraitCollector
1 parent 97eaa5d commit 3ecb701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_hir_analysis/src/check/compare_impl_item.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ impl<'tcx> TypeFolder<TyCtxt<'tcx>> for ImplTraitInTraitCollector<'_, 'tcx> {
830830

831831
fn fold_ty(&mut self, ty: Ty<'tcx>) -> Ty<'tcx> {
832832
if let ty::Alias(ty::Projection, proj) = ty.kind()
833-
&& self.interner().def_kind(proj.def_id) == DefKind::ImplTraitPlaceholder
833+
&& self.interner().is_impl_trait_in_trait(proj.def_id)
834834
{
835835
if let Some((ty, _)) = self.types.get(&proj.def_id) {
836836
return *ty;

0 commit comments

Comments
 (0)