push cyclic pstr's tail to iterator stack of printer (#3086)

This commit is contained in:
Mark Thom
2025-09-17 20:21:54 -07:00
parent ba7b54e8f8
commit 7637a0f7d4

View File

@@ -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));
}
_ => {}