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
D27 campaign: element access observes — vec[i] is a place, get(i) returns &T, remove transfers #740
Eric's D27 ruling (decisions.md; normative text beside the operator-trait table in the specification) extends D22's doctrine to positional collections. The compiler is NON-COMPLIANT until this campaign lands.
Target semantics
xs[i] denotes the element place: reads yield a view (&T); writes (mutable base) mutate in place via IndexPlace, including receiver chains xs[i].tags.push(v).
xs.get(i) returns &T, read-only, panics on out-of-range. No Option — for positional access absence is a bug (keyed maps keep Option[&V] per D22).
remove(i) -> T is the ownership-transfer op.
Copy elements materialize at owned demands (contextual Copy); non-Copy owned demands rejected per D22 §13.6 (escapes: borrow, clone, remove).
Bindings per D27 ruling 3: unannotated let binds the view; a typed binding is an owned demand — uniform for fields and elements.
Uniform across Vec, fixed arrays, slices, and user IndexGet/IndexPlace impls.
Work items
Sema: type vec[i]/get(i) as views; place-project [i] through IndexPlace; origin propagation through unannotated bindings (D22 rule 4) so a let-bound view consumed later is caught.
MIR/codegen: stop materializing element copies at reads; element place projections for chains.
Fixture conformance: issue64 mutation-through-get chains respelled to the [i] place form (get chains observe only); err_elem_copy_* pins stay (call-arg/assign/struct-field demands still reject); new pins for typed-let demand, get-chain-mutation rejection, and view-origin-through-binding.
with migrate guidance + docs examples sweep for let x = v.get(i) idioms.
Escalation: if place semantics for [i] prove irreconcilable with view-liveness (§3.2), surface to Eric — do not narrow the doctrine (D27 reopen clause).
Triage 2026-08-31: CLOSE (campaign complete). D27 is recorded done (CLAUDE.md + docs/d27-implementation-plan.md; the #715/#730 interim gates retired); element views + owned-demand materialization verified incidentally by today's probes.
Activity
D27: enshrine the doctrine — element access observes; bindings name, …
D27 rulings 1+3 implementation: JsonView is a Copy token; a typed let…
D27: element-view implementation plan (#740)
D27 E0: element-view acceptance matrix (#740)
D27 E1+E2: Vec.get observes — &T views, borrow lowering, place-chain …
D27 E1+E2 fix: casts materialize element views; reject owned-into-ref…
D27 E1+E2 fallout drain: distinct Copy, generic-literal field demands…
D27: err_elem_copy_call_arg pin follows the structural diagnostic (#740)
D27 E1+E2: fstring observes through views; BTreeSet snapshot swaps; r…
D27: D22 phase-count pins follow the recorder additions (#740)
D27 E1+E2: comptime evaluator snapshots its value-arena reads (#740)
D27 E1+E2: cross-file migrate stores owned copies of session type text (
D27: make positional element access observe through views (#740)
D27 E3+E4: migrate compiler element reads to owned snapshots (#740)
D27 E3+E4: drain full-suite view fallout (#740)
11 remaining items
c-migrate: preserve noreturn calls in goto CFGs (#740)
sema: record generic type-argument builtin call types (#740)
emit-c: lower generic intrinsics; adopt native fat fn-value ABI (#740)
emit-c: fail loudly on unsupported dyn/closure builtin families (#740)
rt: binary-search large-allocation ranges in ownership checks (#740)
emit-c: render fat thunk signatures through c_decl (#740)
docs: update handoff for #740 emit-C roundtrip state
build: end param view scope before moving parsed_params (#740)
docs: consolidate repo-root handoff.md into docs/handoff.md
c-migrate: materialize C's implicit int->_Bool conversions (withlang-…
c-migrate: name signature params from the definition cursor (withlang…
c-migrate: init flat-record hoisted locals with 'Ty { }' (withlang-de…
ehartford commentedon Aug 31, 2026
Triage 2026-08-31: CLOSE (campaign complete). D27 is recorded done (CLAUDE.md + docs/d27-implementation-plan.md; the #715/#730 interim gates retired); element views + owned-demand materialization verified incidentally by today's probes.
Sema/Codegen/migrator: unsuffixed literal arithmetic takes its contex…