Phase 3: owner decisions on RFC 0012 implementation

- spec 04 §40: mutex<T> always linear, never copyable; mutex.take is the
  only way to dismantle it and needs no live borrow (hence no guard and
  no waiter); no unlock or destructor
- P3-10 (async buffer claims, E4303) moved to P7-10 with task-aware
  I/O; E4303 stays reserved; Phase 3 scope closed
- RFC 0012 erratum: consumption after send is E2002, use is E2001
- tests: take while borrowed (E2101), use after take (E3001)
This commit is contained in:
dev committed 2026-10-04 16:57:59 +03:00
1 parent aaf32b6853
commit 929132c81d
8 files changed
+50 -8

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ Every registry code (`../reference/error-codes.md`) has a phase that must implem
| E2102 borrow.outlives_owner | P1 | | E4201 atomic.invalid_order | P5 |
| E2103 memory.out_of_bounds | P1 | | E4301 task.live_child_escape | P3 |
| E2104 memory.region_generation | P2 | | E4302 task.borrow_escape | P3 |
| E2110 island.escape | P4 | | E4303 io.buffer_in_flight | P3 |
| E2110 island.escape | P4 | | E4303 io.buffer_in_flight | P7 (reserved) |
| E2111 island.foreign_mutable_edge | P4 | | E5001 air.invalid_ssa | P0 |
| E3001 resource.use_after_consume | P2 | | E5002 air.invalid_cfg | P0 |
| E3002 resource.leak | P2 | | E5101 verifier.resource_limit | P0 |