Wf is not coinductive
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user