spec: spell the AIR array type array<T, N>

';' starts a comment in text AIR, so [T; N] cannot be parsed. Recorded
as an erratum in RFC 0005; source syntax may keep [T; N].
This commit is contained in:
dev committed 2026-10-04 13:11:07 +03:00
1 parent 48bb50724f
commit be9dd0e1ed
7 files changed
+20 -19

No files matched your search

+2 -2
View File
@@ -187,7 +187,7 @@ Each function's frame storage is the sum of the accounted sizes of its `local.al
| `usize`/`isize` | 8 (the largest supported pointer width, so the result is target-independent) |
| struct | sum of its fields |
| enum | 4 + the largest sum over a variant's payload |
| `[T; N]` | `N ×` accounted size of `T` |
| `array<T, N>` | `N ×` accounted size of `T` |
### 11.6 Borrow-typed block parameters
@@ -216,7 +216,7 @@ Scope of a fact:
| Case | Condition |
|---|---|
| fact on the same slice | a fact `%i < %n` holds where `%n = slice.len %b`, with `%i` and `%b` the same SSA values as the operands |
| constant index | `%i = const.usize k` and `%b` has a static length `N` (a borrow of `[T; N]`) with `k < N` |
| constant index | `%i = const.usize k` and `%b` has a static length `N` (a borrow of `array<T, N>`) with `k < N` |
| fact against a constant | a fact `%i < %n` holds where `%n = const.usize k`, `%b` has a static length `N` and `k ≤ N` |
This is the complete normative analysis: an implementation MUST NOT accept more or fewer programs.