Add the error_values feature and error.const through specification, AIR, verification, interpretation and source lowering. Error values are Copy data with no allocation, effects or authority. Keep enum.make semantics frozen. Cover all registered tags, feature negotiation, payload/type errors and authority rejection in AIR/source; verify canonical and hosted CLI behavior. Record reference-bundle costs and the map preflight-validation prerequisite.
6 lines
179 B
Rust
6 lines
179 B
Rust
// expect: reject E7002
|
|
// phase: 6
|
|
// spec: docs/spec/05-effects-and-capabilities.md §14
|
|
module test.errors
|
|
fn main() -> alloc_error effects [] { return alloc_error::invalid; }
|