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
Cancellation: a call through a closure, dyn method or fn value that ends in a sync fn that may suspend gets no cancelled-return check (#916 class) #1985
Remaining after #916's fix (fix-916, f14fcb3): MIR now gives a call to a function Sema says may suspend the same cancelled-return check an await gets — but only when MIR can see the callee function. A call through a closure value, a dyn method, or a function value whose target is a sync function that suspends still has no check, so a cancelled caller runs past it and may drop the never-written return value (the #916 invalid free). Sema owns the fact (D65): the callable's type must carry may-suspend (a function type / closure / trait method that may suspend), so the indirect call site can be checked. Failing-first: the #916 debug-alloc fixture shape (da_916_cancel_unwinds_through_sync_callee.w) through each of the three indirections.
Activity
A call through a closure, a fn value or a dyn method unwinds its call…
An intrinsic call's tag goes on its own call, set before its terminat…
Vec map/filter/fold over a may-suspend closure stop at a cancellation…
A call through a closure, a fn value or a dyn method unwinds its call…
An intrinsic call's tag goes on its own call, set before its terminat…
Vec map/filter/fold over a may-suspend closure stop at a cancellation…
A lazy adapter chain over a may-suspend closure stops at a cancellati…
A call through a closure, a fn value or a dyn method unwinds its call…
An intrinsic call's tag goes on its own call, set before its terminat…
Vec map/filter/fold over a may-suspend closure stop at a cancellation…
A lazy adapter chain over a may-suspend closure stops at a cancellati…
A call through a closure, a fn value or a dyn method unwinds its call…
An intrinsic call's tag goes on its own call, set before its terminat…
Vec map/filter/fold over a may-suspend closure stop at a cancellation…
A lazy adapter chain over a may-suspend closure stops at a cancellati…
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).
emit-C: a call that is all intrinsic and has no C lowering is a named…