Skip to content

Commit 60d99ab

Browse files
committed
Fix overflow and cycle bound for ProofTreeVisitor.
1 parent 1ab2bcd commit 60d99ab

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/solve/inspect/analyse.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl<'a, 'tcx> InspectCandidate<'a, 'tcx> {
5858
visitor: &mut V,
5959
) -> ControlFlow<V::BreakTy> {
6060
// HACK: An arbitrary cutoff to avoid dealing with overflow and cycles.
61-
if self.goal.depth >= 10 {
61+
if self.goal.depth <= 10 {
6262
let infcx = self.goal.infcx;
6363
infcx.probe(|_| {
6464
let mut instantiated_goals = vec![];

0 commit comments

Comments
 (0)