diff options
| author | Oli Scherer <github333195615777966@oli-obk.de> | 2025-07-08 15:41:13 +0000 |
|---|---|---|
| committer | Oli Scherer <github333195615777966@oli-obk.de> | 2025-07-08 15:49:00 +0000 |
| commit | b1d45f6b3e672cee544e6ff197a9f21022026871 (patch) | |
| tree | d8d02ba2800f491ece65a118cd5e4562e846565e /compiler/rustc_trait_selection/src/traits | |
| parent | 543c860ea6c78e77b0a12685e066a74fe26dc301 (diff) | |
| download | rust-b1d45f6b3e672cee544e6ff197a9f21022026871.tar.gz rust-b1d45f6b3e672cee544e6ff197a9f21022026871.zip | |
Remove `const_eval_select` hack
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/effects.rs | 7 |
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); } |
