about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-08-12 15:20:58 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-08-12 15:20:58 +1000
commit9e95a2b9a5c434db5ad42fe3f8848cbbd161e642 (patch)
tree5a9ba5b6f5d6e597208837625f3ee999259bc071
parentc4717cc9d15d30e08f03f51845c950175979bcc4 (diff)
downloadrust-9e95a2b9a5c434db5ad42fe3f8848cbbd161e642.tar.gz
rust-9e95a2b9a5c434db5ad42fe3f8848cbbd161e642.zip
Remove some unnecessary `skip_binder` calls.
`is_fn_trait_compatible` is defined on both `FnSig` and `Binder<FnSig>`.
-rw-r--r--compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs b/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs
index f32531821ec..a57338acaab 100644
--- a/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs
+++ b/compiler/rustc_next_trait_solver/src/solve/assembly/structural_traits.rs
@@ -461,7 +461,7 @@ pub(in crate::solve) fn extract_tupled_inputs_and_output_from_async_callable<I:
 
         ty::FnDef(def_id, _) => {
             let sig = self_ty.fn_sig(cx);
-            if sig.skip_binder().is_fn_trait_compatible() && !cx.has_target_features(def_id) {
+            if sig.is_fn_trait_compatible() && !cx.has_target_features(def_id) {
                 fn_item_to_async_callable(cx, sig)
             } else {
                 Err(NoSolution)
@@ -469,7 +469,7 @@ pub(in crate::solve) fn extract_tupled_inputs_and_output_from_async_callable<I:
         }
         ty::FnPtr(..) => {
             let sig = self_ty.fn_sig(cx);
-            if sig.skip_binder().is_fn_trait_compatible() {
+            if sig.is_fn_trait_compatible() {
                 fn_item_to_async_callable(cx, sig)
             } else {
                 Err(NoSolution)