Skip to content

Commit 31a0d67

Browse files
committed
Implement explicit_predicates_of for impl side RPITITs assoc type
1 parent e132d29 commit 31a0d67

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

compiler/rustc_ty_utils/src/assoc.rs

+6
Original file line numberDiff line numberDiff line change
@@ -382,5 +382,11 @@ fn impl_associated_item_for_impl_trait_in_trait(
382382
}
383383
});
384384

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

0 commit comments

Comments
 (0)