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
Closure soundness campaign: §12.4 capture-set completeness and escape classification (one root cause for #1566 #1567 #1570 #1594 #1598 #1605 #1638 #1603) #1698
Ruling (Eric, 2026-09-25): every open issue is closed out before Phase 3 STC stdlib sourcing starts; this campaign runs first because these are memory-safety holes in ordinary application code.
One root cause, eight symptoms. §12.4 says a closure captures by place; the implementation (a) misses whole syntactic forms when collecting the capture set and (b) has no escape classification, so a closure that is stored, returned, or sent to another thread keeps pointers into the frame that created it.
Plan: one Sema owner for the capture set (D65: Sema decides capture semantics), fed by a single walker over every expression form; escape = a closure value that flows anywhere but a non-escaping call argument requires move or a diagnosis (spec §12.1–§12.3); MIR materializes the environment per Sema's verdict. Ownership/drop change: alone in its battery with :drop-audit and :move-audit. Each symptom gets a behavior test and, where a diagnosis is the answer, a compile_errors test; the eight issues close when the campaign lands.
Activity
Closures: every capture is found, a stored view is refused, a call th…
Spec v7.7 (D75): once parameters, fills, distinct casts, payload disc…
Views: a store into a place is a store into its root's storage, and a…
Closures: a callable parameter is a view in the callee, so storing or…