Fix overflow and cycle bound for ProofTreeVisitor.
This commit is contained in:
parent
1ab2bcda43
commit
60d99ab883
@ -58,7 +58,7 @@ pub fn visit_nested<V: ProofTreeVisitor<'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…
Reference in New Issue
Block a user