Skip to content

Commit c88feed

Browse files
committed
add debug logs for coinductive cycles
1 parent ccce5d0 commit c88feed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chalk-engine/src/logic.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,8 +1487,13 @@ impl<'forest, C: Context + 'forest, CO: ContextOps<C> + 'forest> SolveState<'for
14871487
/// coinductive goal. But `top_of_stack_is_coinductive_from(0)` is
14881488
/// false, since `XXX` is not an auto trait.
14891489
pub(super) fn top_of_stack_is_coinductive_from(&self, depth: StackIndex) -> bool {
1490+
debug_heading!("top_of_stack_is_coinductive_from(depth={:?})", depth);
14901491
StackIndex::iterate_range(self.stack.top_of_stack_from(depth)).all(|d| {
14911492
let table = self.stack[d].table;
1493+
debug!(
1494+
"d = {:?}, table = {:?}",
1495+
d, self.forest.tables[table].table_goal
1496+
);
14921497
self.forest.tables[table].coinductive_goal
14931498
})
14941499
}

0 commit comments

Comments
 (0)