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
Task.join_cleanup() on a Task parameter lowers as a byte copy; the param is never moved (validate-ownership: leak) #1990
error: validate-ownership failed: fn finish bb3: owned local _1 is still Init at return — no path drops or moves it (a leak)
MIR: _3 = copy _1; then the join_cleanup call takes copy _3. The non-Copy Task is byte-copied into a temp and consumed from the copy; _1 is never moved or dropped. At run time the debug allocator reports no leak (the copy is consumed, _1 never dropped), but the MIR is wrong and every fixture using this idiom (da_916_cancel_unwinds_through_sync_callee.w's cancel_while_suspended) fails --validate-all.
Expected: join_cleanup on a place lowers as a move of that place (move _1), and the ownership validator passes.
Found while working on #1985/#1986 (branch wave-cancel). No workaround applied.
Activity
join_cleanup consumes its Task: a later use is a use of a moved value…
A cancellation inside a defer on a break/continue path drops only wha…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup consumes its Task: a later use is a use of a moved value…
A cancellation inside a defer on a break/continue path drops only wha…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup consumes its Task: a later use is a use of a moved value…
A cancellation inside a defer on a break/continue path drops only wha…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup consumes its Task: a later use is a use of a moved value…
A cancellation inside a defer on a break/continue path drops only wha…
join_cleanup on an owned Task binding moves it into the cleanup await (…
join_cleanup consumes its Task: a later use is a use of a moved value…
Cancellation: indirect callees that may suspend get the cancelled-ret…
ehartford commentedon Oct 4, 2026
Fixed on main in 8cc883a (stack #2072, ten PRs; seed-driven battery GREEN on 92add22, tree identical to main).