Adjust tests

This commit is contained in:
Michael Goulet
2025-04-29 03:05:26 +00:00
parent f918b89f61
commit 38c05a68ee
8 changed files with 53 additions and 27 deletions

View File

@@ -1243,7 +1243,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
self.infcx.tcx.trait_is_coinductive(data.def_id())
}
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_)) => {
// TODO: GCE is going away
// FIXME(generic_const_exprs): GCE needs well-formedness predicates to be
// coinductive, but GCE is on the way out anyways, so this should eventually
// be replaced with `false`.
self.infcx.tcx.features().generic_const_exprs()
}
_ => false,