remove list remnants from stack iteration in printer when cyclic (#2131)

This commit is contained in:
Mark
2023-10-24 14:10:11 -06:00
parent 4ab3e23b1f
commit 773d3f81fd
4 changed files with 27 additions and 11 deletions

View File

@@ -2257,9 +2257,7 @@ mod tests {
list_loc_as_cell!(1)
);
assert_eq!(iter.next().unwrap(), cyclic_link);
assert_eq!(iter.next().unwrap(), cyclic_link);
assert_eq!(iter.next().unwrap(), cyclic_link);
assert_eq!(iter.next(), None);