Fix overflow and cycle bound for ProofTreeVisitor.
This commit is contained in:
parent
1ab2bcda43
commit
60d99ab883
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ impl<'a, 'tcx> InspectCandidate<'a, 'tcx> {
|
|||
visitor: &mut V,
|
||||
) -> ControlFlow<V::BreakTy> {
|
||||
// HACK: An arbitrary cutoff to avoid dealing with overflow and cycles.
|
||||
if self.goal.depth >= 10 {
|
||||
if self.goal.depth <= 10 {
|
||||
let infcx = self.goal.infcx;
|
||||
infcx.probe(|_| {
|
||||
let mut instantiated_goals = vec![];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue