1
Fork 0

Also passthrough for projection clauses

This commit is contained in:
Michael Goulet 2024-06-04 09:43:49 -04:00
parent b0c1474381
commit 44040a0670
9 changed files with 15 additions and 18 deletions

View file

@ -460,7 +460,9 @@ impl<'tcx> ProofTreeVisitor<'tcx> for BestObligation<'tcx> {
polarity: ty::PredicatePolarity::Positive,
}))
}
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_))
ty::PredicateKind::Clause(
ty::ClauseKind::WellFormed(_) | ty::ClauseKind::Projection(..),
)
| ty::PredicateKind::AliasRelate(..) => ChildMode::PassThrough,
_ => {
return ControlFlow::Break(self.obligation.clone());