Skip to content

Commit 8989451

Browse files
Don't register predicates for RPITIT items in built-in trait object impl confirmation
1 parent 22033d1 commit 8989451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/select/confirmation.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
629629

630630
// When `async_fn_in_dyn_trait` is enabled, we don't need to check the
631631
// RPITIT for compatibility, since it's not provided by the user.
632-
if tcx.features().async_fn_in_dyn_trait() && tcx.is_impl_trait_in_trait(assoc_type) {
632+
if &&tcx.features().async_fn_in_dyn_trait() && tcx.is_impl_trait_in_trait(assoc_type) {
633633
continue;
634634
}
635635

0 commit comments

Comments
 (0)