Wf is not coinductive
This commit is contained in:
parent
25cdf1f674
commit
f918b89f61
2 changed files with 19 additions and 3 deletions
|
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue