about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-04-28 16:36:25 +0000
committerMichael Goulet <michael@errs.io>2025-04-29 02:43:06 +0000
commitf918b89f61d9aac3df4e57b05892f4614ddfc678 (patch)
tree5bb2bd86e032a032529379e25d0d0a65dbbd156a /compiler/rustc_trait_selection/src
parent25cdf1f67463c9365d8d83778c933ec7480e940b (diff)
Wf is not coinductive
Diffstat (limited to 'compiler/rustc_trait_selection/src')
-rw-r--r--compiler/rustc_trait_selection/src/traits/select/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/select/mod.rs b/compiler/rustc_trait_selection/src/traits/select/mod.rs
index df02a67c2c9..de310f9d371 100644
--- a/compiler/rustc_trait_selection/src/traits/select/mod.rs
+++ b/compiler/rustc_trait_selection/src/traits/select/mod.rs
@@ -1242,7 +1242,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
             ty::PredicateKind::Clause(ty::ClauseKind::Trait(data)) => {
                 self.infcx.tcx.trait_is_coinductive(data.def_id())
             }
-            ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_)) => true,
+            ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_)) => {
+                // TODO: GCE is going away
+                self.infcx.tcx.features().generic_const_exprs()
+            }
             _ => false,
         })
     }