You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let xs: Vec[u8] = [65, 66, 67]
let text: str = xs.iter() |> collect[String]()
print(text)
Run with --debug-alloc: LEAK size=16 origin=Vec. The codegen builds a temporary Vec[u8] and copies it with with_str_from_vec_u8, which copies the bytes; the staging buffer is never freed (CodegenDispatch.w, the itercollectstr lowering). Found by test/spec/spec_ss13_3_collect_targets.w under the debug allocator.
Activity
D44: map traversal observes: keys(), values() and iter() are view ite…
D44: map traversal observes; keys/values/iter are view iterators; Has…
ehartford commentedon Oct 5, 2026
Fixed on main by stack #2196 (merged as efb765c), battery green on a21e326; the regression test for it landed with the fix.