Skip to content

Commit 9e95a2b

Browse files
committed
Remove some unnecessary skip_binder calls.
`is_fn_trait_compatible` is defined on both `FnSig` and `Binder<FnSig>`.
1 parent c4717cc commit 9e95a2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -461,15 +461,15 @@ pub(in crate::solve) fn extract_tupled_inputs_and_output_from_async_callable<I:
461461

462462
ty::FnDef(def_id, _) => {
463463
let sig = self_ty.fn_sig(cx);
464-
if sig.skip_binder().is_fn_trait_compatible() && !cx.has_target_features(def_id) {
464+
if sig.is_fn_trait_compatible() && !cx.has_target_features(def_id) {
465465
fn_item_to_async_callable(cx, sig)
466466
} else {
467467
Err(NoSolution)
468468
}
469469
}
470470
ty::FnPtr(..) => {
471471
let sig = self_ty.fn_sig(cx);
472-
if sig.skip_binder().is_fn_trait_compatible() {
472+
if sig.is_fn_trait_compatible() {
473473
fn_item_to_async_callable(cx, sig)
474474
} else {
475475
Err(NoSolution)

0 commit comments

Comments
 (0)