Phase 1: frame storage, second-class borrows, arrays (P1-3..P1-10)
- air: types local/ref/mut/array/slice/slice_mut, from-returns, multi-result binding, 18 new instructions; feature gating reports E0006 feature_not_declared; borrow-typed block parameters gated by borrow_joins; printer and round-trip tests for all new forms - verifier: second-class and zeroable type rules (E1001); local.alloc only in entry (E5002); frame size accounting (E5101); stages init (E1010), borrow (E2101, E2102, E2105-E2108) and bounds facts (E2103); value types shared between stages - interp: frame cells, places, slices, deep copies between storage and SSA values, T0008 bounds traps - features arrays and ownership supported; implemented_phase = 1 - conformance: 5 accept, 18 reject, 11 run tests for Phase 1, including the file-copy core exit program; 6000 mutants without a crash
This commit is contained in:
1 parent
be9dd0e1ed
commit
1ae6b485d8
50 files changed
+2376
-37
No files matched your search
@@ -1,11 +1,11 @@
|
||||
; The same feature is declared twice: reasons unsupported_feature (arrays is reserved) and duplicate_feature.
|
||||
; expect: reject E0006 E0006
|
||||
; The same feature is declared twice.
|
||||
; expect: reject E0006
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.duplicate_feature
|
||||
air 0
|
||||
lang 0.1
|
||||
features [arrays, arrays]
|
||||
features [arrays, arrays, ownership]
|
||||
|
||||
fn @f() -> void
|
||||
effects []
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
; arrays depends on ownership, which is not declared.
|
||||
; expect: reject E0006
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.missing_dependency
|
||||
air 0
|
||||
lang 0.1
|
||||
features [arrays]
|
||||
|
||||
fn @f() -> void
|
||||
effects []
|
||||
entry:
|
||||
ret
|
||||
@@ -1,11 +1,11 @@
|
||||
; ownership is registered but reserved until Phase 1 publishes it.
|
||||
; heap is registered but reserved until Phase 2 publishes it.
|
||||
; expect: reject E0006
|
||||
; phase: 0
|
||||
; spec: docs/spec/07-air.md
|
||||
module test.reserved_feature
|
||||
air 0
|
||||
lang 0.1
|
||||
features [ownership]
|
||||
features [heap]
|
||||
|
||||
fn @f() -> void
|
||||
effects []
|
||||
|
||||
Reference in new issue
Block a user