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
@@ -35,6 +35,10 @@ pub const registry = [_]Code{
|
||||
.{ .id = "E2102", .kind = "borrow.outlives_owner", .meaning = "Borrow may outlive backing storage" },
|
||||
.{ .id = "E2103", .kind = "memory.out_of_bounds", .meaning = "Access not proven in bounds" },
|
||||
.{ .id = "E2104", .kind = "memory.region_generation", .meaning = "Reference belongs to invalidated region generation" },
|
||||
.{ .id = "E2105", .kind = "borrow.not_ended", .meaning = "Owned borrow live at `ret`, or borrow state differs between edges into a block" },
|
||||
.{ .id = "E2106", .kind = "borrow.use_after_end", .meaning = "Borrow used or ended after it was ended" },
|
||||
.{ .id = "E2107", .kind = "borrow.not_owned", .meaning = "Lent (parameter) borrow ended by the callee" },
|
||||
.{ .id = "E2108", .kind = "borrow.escapes_frame", .meaning = "Borrow derived from frame storage returned from its function" },
|
||||
.{ .id = "E2110", .kind = "island.escape", .meaning = "Island-internal reference escapes island" },
|
||||
.{ .id = "E2111", .kind = "island.foreign_mutable_edge", .meaning = "Island graph points to forbidden foreign mutable storage" },
|
||||
// E3xxx — Resources/capabilities/effects
|
||||
@@ -66,6 +70,7 @@ pub const registry = [_]Code{
|
||||
.{ .id = "T0005", .kind = "trap.shift_out_of_range", .meaning = "Shift amount negative or not less than bit width" },
|
||||
.{ .id = "T0006", .kind = "trap.cast_out_of_range", .meaning = "Checked cast value not representable in target type" },
|
||||
.{ .id = "T0007", .kind = "trap.call_depth", .meaning = "Call depth limit (1 024 frames) exceeded" },
|
||||
.{ .id = "T0008", .kind = "trap.out_of_bounds", .meaning = "Runtime bounds check failed" },
|
||||
};
|
||||
|
||||
pub fn lookup(id: []const u8) ?*const Code {
|
||||
|
||||
Reference in new issue
Block a user