From 7637a0f7d4334089b1cde72e00cad9f64ef4a311 Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Wed, 17 Sep 2025 20:21:54 -0700 Subject: [PATCH] push cyclic pstr's tail to iterator stack of printer (#3086) --- src/heap_print.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/heap_print.rs b/src/heap_print.rs index 44989fb6..3f5b2564 100644 --- a/src/heap_print.rs +++ b/src/heap_print.rs @@ -893,8 +893,9 @@ impl<'a, Outputter: HCValueOutputter> HCPrinter<'a, Outputter> { return Some(unmark_cell_bits!(next_cell)); } - (HeapCellValueTag::PStrLoc) => { - self.iter.push_stack(h); + (HeapCellValueTag::PStrLoc, l) => { + let tail_idx = self.iter.heap.scan_slice_to_str(l).tail_idx; + self.iter.push_stack(IterStackLoc::marked_loc(tail_idx, HeapOrStackTag::Heap)); return Some(unmark_cell_bits!(next_cell)); } _ => {} -- 2.54.0