spec: accept RFC 0009 and integrate unsafe boundaries

- spec 13 §6-§8: unsafe operations (assume, borrow.index.unchecked),
  contagious unsafe effect, trusted boundary with obligation, E6001,
  unsafe report, profiles as policy
- spec 05 §9.3: trusted is the one discharging boundary; spec 07 §8.10
  trusted syntax; 07a, 08 stage order and assume facts
- T0009, E6001 reasons; feature unsafe published
This commit is contained in:
dev committed 2026-10-04 14:38:53 +03:00
1 parent 17ddb98597
commit c510a37cf9
9 files changed
+105 -7

No files matched your search

+2 -1
View File
@@ -73,7 +73,7 @@ Draft registry. Codes are stable once released in a tagged compiler version.
| Code | Kind | Meaning |
|---|---|---|
| E6001 | unsafe.required | Operation requires explicit unsafe boundary |
| E6001 | unsafe.required | Operation requires explicit unsafe boundary; field `reason`: `outside_boundary`, `trusted_declares_unsafe` |
| E6101 | abi.unaligned_reference | Normal reference requested from insufficiently aligned storage |
## T0xxx — Runtime traps
@@ -90,3 +90,4 @@ Reported in trap records (spec 01 §6), not by the verifier.
| 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 |
| T0009 | trap.unsafe_precondition | Unsafe precondition violated (detected) |