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
owned collections have no element-transfer iteration (await_all/await_first double-own their tasks) #724
Pre-#712, for x in owned_vec consumed — sound for an OWNED collection; the ruling retired it for borrows, and owned-collection element transfer went with it. That's the missing half: an owned collection's elements should be movable by iteration (Rust: into_iter(); Vale: owned lambda-consume), or the awaiting APIs need a concrete-Vec surface.
Until then spec_ss14_11_await_combinator_cancel_joins and spec_ss14_11_collection_await stay red as this issue's evidence (their compile-time failure was #714, now removed; the runtime failure is this).
Triage re-scope 2026-08-31 — SPEC/DECISIONS CONTRADICTION surfaced: spec §13 has normatively listed for item in my_vec.into_iter(): // consuming (moves elements) since 2026-02-24, while decisions.md D23 says #724 'needs its own design ruling'. The bible and the log disagree. Premise verified live (into_iter unknown on Vec[str]; both ss14_11 fixtures still pinned known-issue: #724). Resolution needs Eric: either strike/reaffirm §13's into_iter text, or bless it and this issue becomes 'implement §13's spec'd consuming iteration'.
Ruled (D33, 2026-08-31). §13 reaffirmed: into_iter() is the consuming surface; D23's deferral is satisfied by the D27 composition (access observes, transfer is explicit — into_iter() is the loop-shaped remove). for x in collection: stays borrow-only per #712.
Approved campaign:
VecIntoIter[T] (owning) + move fn into_iter() on Vec + Iter impl — the iterator owns the tail; early exit drops un-yielded elements + buffer via ordinary Higher RAII
rename the misnamed borrow-only IntoIter trait + introduce a genuine consuming trait (naming pair goes to Eric before it lands)
respell await_all/await_first onto consuming iteration — the double-own dies structurally
acceptance: ss14_11 ×2 unpinned; --debug-alloc fixtures for full-consume, break-early tail drop, error path, and a moved-iterator (iterator value moved then driven, drop-exactly-once)
A for x in move xs: keyword spelling is deferred as possible future sugar over into_iter(), not a competing surface.
await_all/await_first/await_any/await_settled genuinely OWN their tasks: elements move in via into_iter(), awaits transfer via remove (order-vec preserves result slots), tails drain by transfer — the double-own that motivated this issue is dead structurally
The chase also uncovered and fixed the Result ok()/err() eliminator double-free (payload extracted while the receiver's drop stayed live — why error strings printed empty), pinned in da_result_err_extract
Activity
Sema: retire the D5 mandatory call-site move demand (#714)
Foundation modules: fix copy-view-drop double frees; re-pin masked ph…
Test runner: known-issue directive; disposition the six ruled spec re…
D27 E1+E2 fallout drain: distinct Copy, generic-literal field demands…
ehartford commentedon Aug 31, 2026
Triage re-scope 2026-08-31 — SPEC/DECISIONS CONTRADICTION surfaced: spec §13 has normatively listed
for item in my_vec.into_iter(): // consuming (moves elements)since 2026-02-24, while decisions.md D23 says #724 'needs its own design ruling'. The bible and the log disagree. Premise verified live (into_iterunknown on Vec[str]; both ss14_11 fixtures still pinned known-issue: #724). Resolution needs Eric: either strike/reaffirm §13's into_iter text, or bless it and this issue becomes 'implement §13's spec'd consuming iteration'.ehartford commentedon Aug 31, 2026
Ruled (D33, 2026-08-31). §13 reaffirmed:
into_iter()is the consuming surface; D23's deferral is satisfied by the D27 composition (access observes, transfer is explicit —into_iter()is the loop-shapedremove).for x in collection:stays borrow-only per #712.Approved campaign:
VecIntoIter[T](owning) +move fn into_iter()onVec+Iterimpl — the iterator owns the tail; early exit drops un-yielded elements + buffer via ordinary Higher RAIIIntoItertrait + introduce a genuine consuming trait (naming pair goes to Eric before it lands)await_all/await_firstonto consuming iteration — the double-own dies structurally--debug-allocfixtures for full-consume, break-early tail drop, error path, and a moved-iterator (iterator value moved then driven, drop-exactly-once)A
for x in move xs:keyword spelling is deferred as possible future sugar overinto_iter(), not a competing surface.Ruling record: docs/decisions.md D33 (4576870).
docs/decisions: D33 — consuming iteration ruled; §13 into_iter() reaf…
sema: resolve generic-inst reflection templates past the D29 prelude …
std/collections: VecIntoIter — §13's consuming iteration surface (D33, …
test: D33 consuming-iteration acceptance — behavior pins + drop-exact…
mir: Result ok()/err() transfer the payload — receiver's drop skips it (
std: D33 naming pair lands — IntoIter consumes, Iterable borrows; com…
ehartford commentedon Sep 1, 2026
D33 campaign complete (ruling: docs/decisions.md D33; landed through 3305b68 on main).
VecIntoIter[T]+move fn into_iter()— §13's consuming surface, implemented and reaffirmedIntoIterconsumes,Iterableborrows (Vec/BTreeMap/BTreeSet re-titled)Sema: a parameter cannot take `dyn Trait` by value; it is refused whe…
Sema/MirLower/Codegen: a typed binding pattern over a `&dyn T` subjec…
Globals: a call, dyn dispatch, stored callable or drop that writes a …