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:
1 parent
17ddb98597
commit
c510a37cf9
9 files changed
+105
-7
No files matched your search
@@ -215,8 +215,8 @@ A **fact** `%i < %n` is established only by the following table. `%i` and `%n` a
|
||||
|
||||
| Comparison defining `%c` | Established by | Fact |
|
||||
|---|---|---|
|
||||
| `%c = lt.usize %i, %n` | true edge of `cbr %c`, or `guard %c` | `%i < %n` |
|
||||
| `%c = gt.usize %n, %i` | true edge of `cbr %c`, or `guard %c` | `%i < %n` |
|
||||
| `%c = lt.usize %i, %n` | true edge of `cbr %c`, `guard %c`, or `assume %c` (feature `unsafe`) | `%i < %n` |
|
||||
| `%c = gt.usize %n, %i` | true edge of `cbr %c`, `guard %c`, or `assume %c` (feature `unsafe`) | `%i < %n` |
|
||||
| `%c = ge.usize %i, %n` | false edge of `cbr %c` | `%i < %n` |
|
||||
| `%c = le.usize %n, %i` | false edge of `cbr %c` | `%i < %n` |
|
||||
|
||||
@@ -243,4 +243,4 @@ A `local<T>` is uninitialized after `local.alloc` and becomes initialized by `lo
|
||||
|
||||
## 14. Stage order
|
||||
|
||||
Verification stages run in this order, stopping after the first stage that reports an error (spec 07 §8.6): resource limits (including value and frame size), CFG structure (including `local.alloc` placement), SSA, types (including capability kinds and narrowing forms), effects, initialization, borrows, bounds.
|
||||
Verification stages run in this order, stopping after the first stage that reports an error (spec 07 §8.6): resource limits (including value and frame size), CFG structure (including `local.alloc` placement), SSA, types (including capability kinds and narrowing forms), effects, unsafe boundaries (spec 13 §6.4), initialization, borrows, bounds.
|
||||
Reference in new issue
Block a user