Wf is not coinductive

This commit is contained in:
Michael Goulet
2025-04-28 16:36:25 +00:00
parent 25cdf1f674
commit f918b89f61
2 changed files with 19 additions and 3 deletions

View File

@@ -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,
})
}