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
{{ message }}
Repository navigation
collect into a HashMap, BTreeMap or HashSet leaks a key that was already present #2165
debug-alloc: leak count=1. The same with collect[BTreeMap[str, i32]] and, over the keys alone, collect[HashSet[str]]: one leak per duplicate. m.insert(a(), 1) twice by hand leaks nothing, so it is the collect path's insert that does not drop the key (or the displaced one) when the key is already there.
test/spec/spec_ss13_3_collect_targets.w has shown leak count=1 on main for this reason; the spec lanes do not run under the allocator.
Route: debug allocator, then tools/debug_drop.w for the alloc site, then the collect lowering's duplicate-key branch.
Activity
sema, codegen: a D93 decision survives the second check; const array …
ehartford commentedon Oct 5, 2026
Fixed on main 0ade380 (stack #2175, battery green; the stack top also builds and passes its new tests on linux-x86_64 and windows-x86_64).