about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits/effects.rs
diff options
context:
space:
mode:
authorOli Scherer <github333195615777966@oli-obk.de>2025-07-08 15:41:13 +0000
committerOli Scherer <github333195615777966@oli-obk.de>2025-07-08 15:49:00 +0000
commitb1d45f6b3e672cee544e6ff197a9f21022026871 (patch)
treed8d02ba2800f491ece65a118cd5e4562e846565e /compiler/rustc_trait_selection/src/traits/effects.rs
parent543c860ea6c78e77b0a12685e066a74fe26dc301 (diff)
downloadrust-b1d45f6b3e672cee544e6ff197a9f21022026871.tar.gz
rust-b1d45f6b3e672cee544e6ff197a9f21022026871.zip
Remove `const_eval_select` hack
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits/effects.rs')
-rw-r--r--compiler/rustc_trait_selection/src/traits/effects.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/effects.rs b/compiler/rustc_trait_selection/src/traits/effects.rs
index d24f861723b..d694a092853 100644
--- a/compiler/rustc_trait_selection/src/traits/effects.rs
+++ b/compiler/rustc_trait_selection/src/traits/effects.rs
@@ -416,12 +416,9 @@ fn evaluate_host_effect_for_fn_goal<'tcx>(
         // We may support function pointers at some point in the future
         ty::FnPtr(..) => return Err(EvaluationFailure::NoSolution),
 
-        // Coroutines could implement `[const] Fn`,
+        // Closures could implement `[const] Fn`,
         // but they don't really need to right now.
-        ty::Closure(..)
-        | ty::CoroutineClosure(_, _)
-        | ty::Coroutine(_, _)
-        | ty::CoroutineWitness(_, _) => {
+        ty::Closure(..) | ty::CoroutineClosure(_, _) => {
             return Err(EvaluationFailure::NoSolution);
         }