Skip to content

Commit

Permalink
Don't register predicates for RPITIT items in built-in trait object i…
Browse files Browse the repository at this point in the history
…mpl confirmation
  • Loading branch information
compiler-errors committed Dec 4, 2024
1 parent 22033d1 commit 8989451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {

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

Expand Down

0 comments on commit 8989451

Please sign in to comment.