Skip to content

Commit 50b8029

Browse files
Always recurse on predicates in BestObligation
1 parent e7c0d27 commit 50b8029

File tree

1 file changed

+1
-7
lines changed
  • compiler/rustc_trait_selection/src/solve

1 file changed

+1
-7
lines changed

compiler/rustc_trait_selection/src/solve/fulfill.rs

+1-7
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,7 @@ impl<'tcx> ProofTreeVisitor<'tcx> for BestObligation<'tcx> {
465465
polarity: ty::PredicatePolarity::Positive,
466466
}))
467467
}
468-
ty::PredicateKind::Clause(
469-
ty::ClauseKind::WellFormed(_) | ty::ClauseKind::Projection(..),
470-
)
471-
| ty::PredicateKind::AliasRelate(..) => ChildMode::PassThrough,
472-
_ => {
473-
return ControlFlow::Break(self.obligation.clone());
474-
}
468+
_ => ChildMode::PassThrough,
475469
};
476470

477471
let mut impl_where_bound_count = 0;

0 commit comments

Comments
 (0)