spec: accept RFC 0005 and integrate Phase 1 memory model (P1-1, P1-2)
- RFC 0005 Accepted (revision 2) - spec 07 §8.8 types and syntax; spec 07a contracts for features ownership and arrays; spec 08 §11-§14 borrows, facts, initialization, stage order; spec 03 frame storage, second-class borrows, static region generations - grammar: from-returns, multi-result, new types and opcodes - feature registry: ownership and arrays published; heap added and regions moved to Phase 2; borrow_joins reserved and unscheduled - codes E2105-E2108, T0008 - Q-009, Q-010 resolved; Phase 1 and Phase 2 plans updated; Own test moved to phase 2
This commit is contained in:
15 files changed
+269
-55
No files matched your search
@@ -33,6 +33,10 @@ Draft registry. Codes are stable once released in a tagged compiler version.
|
||||
| E2103 | memory.out_of_bounds | Access not proven in bounds |
|
||||
| E2104 | memory.region_generation | Reference belongs to invalidated region generation |
|
||||
| E2110 | island.escape | Island-internal reference escapes island |
|
||||
| E2105 | borrow.not_ended | Owned borrow live at `ret`, or borrow state differs between edges into a block |
|
||||
| E2106 | borrow.use_after_end | Borrow used or ended after it was ended |
|
||||
| E2107 | borrow.not_owned | Lent (parameter) borrow ended by the callee |
|
||||
| E2108 | borrow.escapes_frame | Borrow derived from frame storage returned from its function |
|
||||
| E2111 | island.foreign_mutable_edge | Island graph points to forbidden foreign mutable storage |
|
||||
|
||||
## E3xxx — Resources/capabilities/effects
|
||||
@@ -85,3 +89,4 @@ Reported in trap records (spec 01 §6), not by the verifier.
|
||||
| T0005 | trap.shift_out_of_range | Shift amount negative or not less than bit width |
|
||||
| T0006 | trap.cast_out_of_range | Checked cast value not representable in target type |
|
||||
| T0007 | trap.call_depth | Call depth limit (1 024 frames) exceeded |
|
||||
| T0008 | trap.out_of_bounds | Runtime bounds check failed |
|
||||
Reference in new issue
Block a user