1317 lines
54 KiB
JSON
1317 lines
54 KiB
JSON
{
|
|
"version": 1,
|
|
"cases": {
|
|
"buffers/empty_free_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a726",
|
|
"rule": "The buffer returned on buffer.free failure is left live at return, regardless of runtime reachability of that outcome.",
|
|
"required_ops": {
|
|
"buffer.free": 1
|
|
}
|
|
},
|
|
"buffers/view_mutation.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a726",
|
|
"rule": "buffer.reserve mutates a buffer with a live buffer.view child; the view is used afterwards."
|
|
},
|
|
"generics/recursive_array.air": {
|
|
"kind": "same_code",
|
|
"site": "declaration",
|
|
"spec": "docs/spec/15-source-language.md \u00a715",
|
|
"rule": "The non-generic Node recursively contains an array of itself by value, retaining E1003 before source lowering.",
|
|
"lowering": "rejected",
|
|
"early_context": {
|
|
"air": "9ab84709f2349a215db70a0cad5cb3d8255dac91170c45cc3183972ad5a68b79",
|
|
"sources": {
|
|
"source/generics/monomorphic_layout_cycle.aji": "0e1495cfc4cee39827f3946b269583db945034470785b65b8cde5a6956c6818f"
|
|
}
|
|
}
|
|
},
|
|
"linear/field.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a725",
|
|
"rule": "struct.get projects a linear owning field instead of whole unpacking or borrowed exchange."
|
|
},
|
|
"linear/leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a725",
|
|
"rule": "Whole struct.unpack discards an owning field that remains live at return.",
|
|
"required_ops": {
|
|
"struct.unpack": 1
|
|
}
|
|
},
|
|
"nominal_queries/cycle.air": {
|
|
"kind": "same_code",
|
|
"site": "declaration",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "The N0 through N40 by-value cycle is rejected as E1003 at N0 before source lowering. Pure by-value cycles retain E1003 (Q-043/Q-044; AIR type rules in spec 07).",
|
|
"lowering": "rejected",
|
|
"early_context": {
|
|
"air": "38bd028b4851500690cfa0f3022e726f86075cf304582d970f849d0b3c13ecd0",
|
|
"sources": {
|
|
"source/nominal_queries/cycle.aji": "29d2fd93a85456a73cd935190516622525bd0432570cf4977b9a5ac2b71fc620"
|
|
}
|
|
}
|
|
},
|
|
"nominal_queries/diamond_21_u64.air": {
|
|
"kind": "same_code",
|
|
"site": "declaration",
|
|
"spec": "docs/spec/08-verifier.md \u00a77",
|
|
"rule": "The N0\u2013N3 shared diamond value layouts exceed max_value_size at their type declarations; all four limit/max/found/type facts agree after successful lowering.",
|
|
"match_type_declarations": true
|
|
},
|
|
"phase0/reject/block_argument_type.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Explicit block arguments are generated mechanics. A wrong generated argument type is a compiler defect, not authorable source."
|
|
},
|
|
"phase0/reject/branch_arity.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Explicit target argument arity is generated mechanics; malformed lowered targets are compiler defects."
|
|
},
|
|
"phase0/reject/call_argument_type.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/typecheck/call_argument.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "u64",
|
|
"found": "bool"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/double_definition.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "SSA definition identity is generated; source shadowing is a different name rule."
|
|
},
|
|
"phase0/reject/duplicate_feature.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source does not declare an AIR features header; lowering generates its closure."
|
|
},
|
|
"phase0/reject/duplicate_function.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "A duplicate function declaration rejects before AIR with the duplicate_declaration reason registered by spec 15 \u00a710 in reference/error-codes.md.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_duplicate_function.aji",
|
|
"codes": [
|
|
"E7006"
|
|
],
|
|
"fields": {
|
|
"name": "f",
|
|
"reason": "duplicate_declaration"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/literal_out_of_range.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "The integer literal 256 cannot fit u8; source checks its typed range before AIR under the general source-decided type rule.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_literal_out_of_range.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"type": "u8",
|
|
"literal": "256"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/lossy_widen.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/typecheck/lossy_widen.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/missing_dependency.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source does not declare an AIR features header; lowering generates its closure."
|
|
},
|
|
"phase0/reject/missing_terminator.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Block terminators are generated, and malformed lowered CFG is a compiler defect."
|
|
},
|
|
"phase0/reject/non_exhaustive_enum_switch.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a76/\u00a710",
|
|
"rule": "An enum match missing a variant is E7004 in source; lowered invalid CFG would be E7900, not a source E5002.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/layer2/reject/not_exhaustive.aji",
|
|
"codes": [
|
|
"E7004"
|
|
],
|
|
"fields": {
|
|
"missing": "State::Done"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/operand_type_mismatch.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/typecheck/binary_mixed_widths.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "u64",
|
|
"found": "u8"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/recursive_type.air": {
|
|
"kind": "same_code",
|
|
"site": "declaration",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Node contains itself by value; source declaration validation retains E1003 (Q-043/Q-044). The scalar value field is u8 in AIR and u64 in source; its width does not decide the by-value self-cycle rule.",
|
|
"lowering": "rejected",
|
|
"early_context": {
|
|
"air": "2014f05595edd77a7840d910eff8e26f338b7724fc25701cdb62f9f0dd359524",
|
|
"sources": {
|
|
"source/layer2/reject/verifier_recursive.aji": "c88b9db00d9d382adfd0282f650ff248c7613d0b0e0b83c8ec4b6493e1fff73a"
|
|
}
|
|
}
|
|
},
|
|
"phase0/reject/reserved_feature.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "This legacy heap header now rejects missing_dependency (capabilities), not a reserved feature. Source generates the full dependency closure and cannot spell the faulty header."
|
|
},
|
|
"phase0/reject/return_type_mismatch.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "u64 cannot be returned from a u32 function; this type-decided error is E7005.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_return_type_mismatch.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "u32",
|
|
"found": "u64"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase0/reject/terminator_mid_block.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Instruction placement after an AIR terminator is generated CFG structure."
|
|
},
|
|
"phase0/reject/too_many_params.air": {
|
|
"kind": "same_code",
|
|
"site": "function",
|
|
"spec": "docs/spec/08-verifier.md",
|
|
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
|
|
},
|
|
"phase0/reject/undefined_value.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71/\u00a710",
|
|
"rule": "An undefined SSA operand is malformed generated AIR and becomes E7900. Source unknown-name resolution is a different rule, not an undefined SSA operation."
|
|
},
|
|
"phase0/reject/unknown_block.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Source has no named AIR block targets; generated resolution failure is a compiler defect."
|
|
},
|
|
"phase0/reject/unknown_feature.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source does not declare an AIR features header; lowering generates its closure."
|
|
},
|
|
"phase0/reject/unsupported_version.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Source has no AIR format-version header."
|
|
},
|
|
"phase0/reject/use_not_dominated.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "Source has no explicit SSA dominance edges; malformed generated uses are compiler defects."
|
|
},
|
|
"phase1/reject/alloc_outside_entry.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "local.alloc placement is chosen by lowering; source has no instruction-placement operation."
|
|
},
|
|
"phase1/reject/borrow_block_parameter.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a75/\u00a719",
|
|
"rule": "Borrow-typed branch block arguments require reserved borrow_joins. Source binds borrows only with ref/mut, never in an assignable var, and forbids yielding them from blocks/if/match; branches may return directly. Region allocation outcome parameters do not request borrow_joins."
|
|
},
|
|
"phase1/reject/borrow_in_struct.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "A borrow constructor in a struct field violates member-position rules; source rejects E7005. Content width u8/u64 does not decide this rule.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/type_positions/field.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"position": "member",
|
|
"type_constructor": "ref"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase1/reject/borrow_not_ended.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source ends every non-returned lexical borrow on a normal return; it has no operation to omit that generated end."
|
|
},
|
|
"phase1/reject/borrow_return_without_from.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a719",
|
|
"rule": "The source type/signature rule rejects before AIR verification, using its prescribed E7xxx code; this does not satisfy the same-code criterion.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/borrow_returns/missing_from.aji",
|
|
"codes": [
|
|
"E7006"
|
|
],
|
|
"fields": {
|
|
"reason": "invalid_borrow_return"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase1/reject/borrow_use_after_end.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "A borrow binding is no longer visible after its lexical end; source cannot use an explicitly ended borrow."
|
|
},
|
|
"phase1/reject/end_lent_parameter.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source does not explicitly end a lent borrow parameter; generated cleanup ends owned lexical bindings instead."
|
|
},
|
|
"phase1/reject/end_parent_first.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source generates lexical ends in reverse creation order and transfers returned ancestors; it cannot request parent-before-child cleanup. Task-loan conflicts with such cleanup use E4302 instead; they are covered by separate twins."
|
|
},
|
|
"phase1/reject/feature_not_declared.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source does not declare an AIR features header; lowering generates its closure."
|
|
},
|
|
"phase1/reject/frame_escape.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/08-verifier.md \u00a711.3",
|
|
"rule": "A returned borrow points into local frame storage, despite the declared parameter origin."
|
|
},
|
|
"phase1/reject/frame_too_large.air": {
|
|
"kind": "same_code",
|
|
"site": "function",
|
|
"spec": "docs/spec/08-verifier.md",
|
|
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
|
|
},
|
|
"phase1/reject/join_mismatch.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "Source lexical cleanup ends a borrow on every normal exit from its scope; explicit unmatched borrow.end edges are generated mechanics."
|
|
},
|
|
"phase1/reject/le_is_not_a_fact.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a75",
|
|
"rule": "A source <= condition uses checked indexing; only the specified strict < bounds form requests proven indexing."
|
|
},
|
|
"phase1/reject/mut_and_shared.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/08-verifier.md \u00a711.2",
|
|
"rule": "A shared whole-place borrow is created while an exclusive whole-place borrow is live."
|
|
},
|
|
"phase1/reject/read_uninitialized.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a74",
|
|
"rule": "Source local declarations require an initializer; there is no uninitialized frame-local declaration."
|
|
},
|
|
"phase1/reject/related_borrow_live.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/08-verifier.md \u00a711.2",
|
|
"rule": "local.store writes a local with a live shared borrow, retaining that borrow as the related conflict."
|
|
},
|
|
"phase1/reject/size_overflow.air": {
|
|
"kind": "same_code",
|
|
"site": "function",
|
|
"spec": "docs/spec/08-verifier.md",
|
|
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
|
|
},
|
|
"phase1/reject/value_too_large.air": {
|
|
"kind": "same_code",
|
|
"site": "function",
|
|
"spec": "docs/spec/08-verifier.md",
|
|
"rule": "The same deterministic budget is exceeded, with identical limit/max/found/type facts."
|
|
},
|
|
"phase1/reject/zero_enum.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a74/\u00a710",
|
|
"rule": "zero initialization requires a zeroable type; an enum rejects with registered zero_not_zeroable.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_zero_enum.aji",
|
|
"codes": [
|
|
"E7006"
|
|
],
|
|
"fields": {
|
|
"reason": "zero_not_zeroable"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase2/reject/alloc_without_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md",
|
|
"rule": "own.new lacks mem.alloc; the missing effect and complete suggested list agree."
|
|
},
|
|
"phase2/reject/alloc_wrong_capability.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a710.5",
|
|
"rule": "own.new receives cap<fs.read> instead of mem.alloc authority; ok consumes the owner and err returns normally."
|
|
},
|
|
"phase2/reject/capability_not_zeroable.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a74/\u00a710",
|
|
"rule": "A struct containing capability authority cannot be zero initialized, using zero_not_zeroable.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_capability_not_zeroable.aji",
|
|
"codes": [
|
|
"E7006"
|
|
],
|
|
"fields": {
|
|
"reason": "zero_not_zeroable"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase2/reject/flat_effects.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.2/\u00a79.3",
|
|
"rule": "A call lacks atomic.weak despite atomic being declared; effect sets are flat and callee effect sets agree."
|
|
},
|
|
"phase2/reject/intrinsic_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.3",
|
|
"rule": "fs.open_read lacks the explicit fs.read effect; intrinsic, effect and complete suggested_effects agree."
|
|
},
|
|
"phase2/reject/own_free_while_borrowed.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md",
|
|
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
|
|
},
|
|
"phase2/reject/own_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
|
|
"rule": "An allocated owner reaches return without consumption."
|
|
},
|
|
"phase2/reject/own_use_after_free.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md",
|
|
"rule": "A closed/freed resource is borrowed again."
|
|
},
|
|
"phase2/reject/own_use_after_move.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.2",
|
|
"rule": "An owner transferred to a consuming call is subsequently borrowed."
|
|
},
|
|
"phase2/reject/region_allocation_outlives_borrow.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a78/\u00a79",
|
|
"rule": "The explicit region borrow lexically outlives its derived allocation borrow. Source generates reverse-order ends and forbids yielding a borrow out of an arm/block, so parent-before-allocation-end cannot be authored."
|
|
},
|
|
"phase2/reject/region_destroy_with_live_reference.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md",
|
|
"rule": "The same region operation would invalidate a live allocation reference."
|
|
},
|
|
"phase2/reject/region_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
|
|
"rule": "An owned region reaches return without region.destroy."
|
|
},
|
|
"phase2/reject/region_reset_with_live_reference.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md",
|
|
"rule": "The same region operation would invalidate a live allocation reference."
|
|
},
|
|
"phase2/reject/resource_close_twice_after_error.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md",
|
|
"rule": "The same resource is consumed twice."
|
|
},
|
|
"phase2/reject/resource_close_while_borrowed.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md",
|
|
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
|
|
},
|
|
"phase2/reject/resource_join_mismatch.air": {
|
|
"kind": "same_code",
|
|
"site": "block",
|
|
"spec": "docs/spec/08-verifier.md \u00a711.4",
|
|
"rule": "The same file is closed on one incoming edge and still live on another."
|
|
},
|
|
"phase2/reject/resource_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
|
|
"rule": "An opened file<read> reaches return without close."
|
|
},
|
|
"phase2/reject/resource_use_after_close.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md",
|
|
"rule": "A closed/freed resource is borrowed again."
|
|
},
|
|
"phase2/reject/resource_use_after_move.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.2",
|
|
"rule": "An opened file<read> is transferred to a consuming call and then borrowed again.",
|
|
"required_ops": {
|
|
"call": 1
|
|
}
|
|
},
|
|
"phase2/reject/undeclared_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.3",
|
|
"rule": "A call lacks the callee io.write effect; callee identities may differ but declared effect sets agree."
|
|
},
|
|
"phase2/reject/unknown_effect.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "An unregistered effect atom rejects E7002 before the function body; the source position is the function start.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/effect_names/ordinary_unused.aji",
|
|
"codes": [
|
|
"E7002"
|
|
],
|
|
"fields": {
|
|
"name": "unknown",
|
|
"effect": "unknown"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase2/reject/unsafe_call_from_safe.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/13-contracts-and-unsafe.md \u00a76",
|
|
"rule": "A safe function calls an effects [unsafe] function without an unsafe or trusted boundary."
|
|
},
|
|
"phase2/reject/unsafe_outside_boundary.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/13-contracts-and-unsafe.md \u00a76",
|
|
"rule": "borrow.index.unchecked occurs outside an unsafe or trusted function."
|
|
},
|
|
"phase2/reject/wrong_capability_kind.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a710.5",
|
|
"rule": "fs.create receives cap<fs.read> instead of required cap<fs.write>; expected/found authority facts agree."
|
|
},
|
|
"phase3/reject/cancel_join_keeps_loans.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained.",
|
|
"required_ops": {
|
|
"task.join.cancel": 1
|
|
}
|
|
},
|
|
"phase3/reject/cancel_join_twice_keeps_spawn.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained.",
|
|
"required_ops": {
|
|
"task.join.cancel": 2
|
|
}
|
|
},
|
|
"phase3/reject/channels_borrow_element.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "A channel element cannot contain a borrow. Source checks the constructor type argument once (E7005), while AIR rejects both annotated endpoint parameters (two E1001); this is an analogue, not a same-code/count twin.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/typecheck/channel_borrow_element.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"position": "member",
|
|
"type_constructor": "ref"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase3/reject/channels_receiver_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
|
|
"rule": "A channel receiver remains unclosed at return after its sender is closed. The source success arm passes through a single-predecessor match join; the allocation failure arm traps."
|
|
},
|
|
"phase3/reject/channels_recv_without_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a737.4/\u00a738",
|
|
"rule": "channel.recv lacks task.wait on a borrowed receiver parameter; no allocation adds another missing effect."
|
|
},
|
|
"phase3/reject/channels_use_after_send.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a738",
|
|
"rule": "The old owner is borrowed after failed send returns its ownership under a new name; closed and cancelled both merge to the same error site, as in AIR.",
|
|
"required_ops": {
|
|
"channel.send": 1
|
|
}
|
|
},
|
|
"phase3/reject/sync_call_waiting_function.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a741",
|
|
"rule": "A function declaring task.wait is called while a mutex guard is held."
|
|
},
|
|
"phase3/reject/sync_lock_twice.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a741",
|
|
"rule": "A second mutex.lock may wait while the first guard is held."
|
|
},
|
|
"phase3/reject/sync_take_while_borrowed.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a740",
|
|
"rule": "mutex.take consumes a mutex with a live shared borrow, retaining that borrow as the related conflict."
|
|
},
|
|
"phase3/reject/sync_wait_while_locked.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a741",
|
|
"rule": "channel.recv may wait while a mutex guard is held."
|
|
},
|
|
"phase3/reject/tasks_access_lent.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
|
|
"rule": "The parent indexes an exclusive slice lent to an unjoined task; raw borrow.index/load errors share one source location."
|
|
},
|
|
"phase3/reject/tasks_borrow_return.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a719",
|
|
"rule": "The specific source rule rejects passing a borrow-returning function to task.spawn with E7006 at the spawn, while AIR retains the reserved task_borrow_returns gate.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/borrow_returns/spawn_return.aji",
|
|
"codes": [
|
|
"E7006"
|
|
],
|
|
"fields": {
|
|
"function": "first",
|
|
"reason": "invalid_borrow_return"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase3/reject/tasks_end_lent_borrow.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The lent borrow is ended while its task remains unjoined; the creating spawn is retained."
|
|
},
|
|
"phase3/reject/tasks_not_send.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a735",
|
|
"rule": "An exclusive borrow of a live task handle is lent to another task although mut<task<u8>> is not Send; the second task is joined before the borrow ends and the original task is joined last."
|
|
},
|
|
"phase3/reject/tasks_not_share.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a735",
|
|
"rule": "A shared borrow of a region is lent to a task although region is not Share. Worker and argument spellings are identities; the complete rejected parameter type and argument role agree."
|
|
},
|
|
"phase3/reject/tasks_same_mut_twice.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a734",
|
|
"rule": "The same exclusive borrow is lent to a second task while the first task remains live."
|
|
},
|
|
"phase3/reject/tasks_scope_end_unjoined.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a733",
|
|
"rule": "A task scope ends while a child task remains unjoined."
|
|
},
|
|
"phase3/reject/tasks_spawn_without_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a733",
|
|
"rule": "task.spawn lacks the explicit task.spawn effect; the selected missing effect and complete suggested list agree."
|
|
},
|
|
"phase4/reject/arc_content_mutex.air": {
|
|
"kind": "same_code",
|
|
"site": "block",
|
|
"spec": "docs/spec/03-memory-model.md \u00a724",
|
|
"rule": "An arc result contains mutex<u64>, which is Share but not ArcSafe."
|
|
},
|
|
"phase4/reject/arc_release_twice.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md",
|
|
"rule": "The same resource is consumed twice."
|
|
},
|
|
"phase4/reject/frozen_borrow_mut.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a78",
|
|
"rule": "A frozen graph provides immutable access only; source rejects mut frozen.at with E7005 before a store is generated.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/layer9/reject/frozen_mut.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {}
|
|
}
|
|
]
|
|
},
|
|
"phase4/reject/frozen_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a723",
|
|
"rule": "An owned frozen graph reaches return without frozen.release."
|
|
},
|
|
"phase4/reject/island_content_owner.air": {
|
|
"kind": "same_code",
|
|
"site": "block",
|
|
"spec": "docs/spec/03-memory-model.md \u00a722",
|
|
"rule": "An island result contains own<u64>, a foreign mutable edge forbidden by IslandSafe."
|
|
},
|
|
"phase4/reject/island_destroy_while_borrowed.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a722",
|
|
"rule": "island.destroy invalidates a live container borrow and its child object borrow; the child is used afterwards.",
|
|
"required_ops": {
|
|
"island.borrow": 1,
|
|
"load": 1
|
|
}
|
|
},
|
|
"phase4/reject/island_lend_task.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a735",
|
|
"rule": "A shared borrow of an island is lent to a task although its mutable graph is not Share. Worker and argument spellings are identities; the complete rejected parameter type and argument role agree."
|
|
},
|
|
"phase4/reject/island_two_mut.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a722",
|
|
"rule": "A second mutable object borrow is created through the same island, using a different iref."
|
|
},
|
|
"phase4/reject/island_use_after_freeze.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md",
|
|
"rule": "An island is borrowed after freezing transferred its ownership."
|
|
},
|
|
"phase4/reject/island_use_after_send.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/03-memory-model.md \u00a722",
|
|
"rule": "An island is borrowed after successful channel.send transferred its ownership."
|
|
},
|
|
"phase4/reject/islands_not_declared.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The missing AIR feature header cannot be authored in source, whose lowering generates the full dependency closure."
|
|
},
|
|
"phase5/reject/cmpxchg_failure_release.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The same atomic operation rejects the same ordering and allowed set."
|
|
},
|
|
"phase5/reject/cmpxchg_failure_stronger.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a724.1",
|
|
"rule": "atomic.cmpxchg.relaxed.acquire uses failure ordering acquire, stronger than the success ordering relaxed."
|
|
},
|
|
"phase5/reject/fence_relaxed.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The same atomic operation rejects the same ordering and allowed set."
|
|
},
|
|
"phase5/reject/island_content.air": {
|
|
"kind": "same_code",
|
|
"site": "block",
|
|
"spec": "docs/spec/03-memory-model.md \u00a722",
|
|
"rule": "An island result contains atomic<u64>, a foreign mutable edge forbidden by IslandSafe."
|
|
},
|
|
"phase5/reject/leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a723",
|
|
"rule": "An atomic cell reaches return without being taken, moved or returned."
|
|
},
|
|
"phase5/reject/load_release.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The same atomic operation rejects the same ordering and allowed set."
|
|
},
|
|
"phase5/reject/missing_atomic_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a713",
|
|
"rule": "atomic.load.seq_cst lacks atomic; atomic.new and atomic.take require no effect."
|
|
},
|
|
"phase5/reject/missing_weak_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a713",
|
|
"rule": "atomic.load.acquire lacks atomic.weak; the complete suggested effects are [atomic, atomic.weak]."
|
|
},
|
|
"phase5/reject/mut_operand.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a712",
|
|
"rule": "Atomic cells require shared ref access; spelling a mutable cell borrow is E7005 in source.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/layer10/reject/mut_borrow.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"name": "c"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase5/reject/not_declared.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The missing AIR feature header cannot be authored in source, whose lowering generates the full dependency closure."
|
|
},
|
|
"phase5/reject/store_acquire.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The same atomic operation rejects the same ordering and allowed set."
|
|
},
|
|
"phase5/reject/take_while_borrowed.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md",
|
|
"rule": "The same owning-resource consumption or whole-place borrow conflicts with a live borrow."
|
|
},
|
|
"phase5/reject/take_while_lent.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a728",
|
|
"rule": "atomic.take consumes a cell while a borrow of it is lent to a live task."
|
|
},
|
|
"phase5/reject/u128_cell.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "A 128-bit integer cannot be atomic cell content; this source-decided type error uses E7005.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/layer10/reject/wide_cell.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"found": "u128"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"static_functions/missing_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/05-effects-and-capabilities.md \u00a79.3",
|
|
"rule": "A call to selected lacks io.write; source supplies that same function through an explicit static parameter with its declared contract."
|
|
},
|
|
"static_functions/owner_leak.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/06-resources-and-errors.md \u00a76.3",
|
|
"rule": "selected returns without consuming its owning parameter; source also invokes it through explicit specialization."
|
|
},
|
|
"buffers/reserve_missing_effect.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/15-source-language.md \u00a717",
|
|
"rule": "buffer.reserve requires explicit mem.alloc even when both outcomes trap."
|
|
},
|
|
"buffers/wrong_capability.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/15-source-language.md \u00a717",
|
|
"rule": "buffer.reserve is supplied cap<io.write> instead of the required cap<mem.alloc>."
|
|
},
|
|
"buffers/readonly_view_push.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/15-source-language.md \u00a717",
|
|
"rule": "buffer.push mutates a buffer while its shared buffer.view borrow is live, even when both outcomes trap.",
|
|
"required_ops": {
|
|
"borrow.ref": 1,
|
|
"buffer.view": 1,
|
|
"buffer.push": 1,
|
|
"const.u64": 1,
|
|
"trap": 2
|
|
},
|
|
"exact_ops": true,
|
|
"required_identity_uses": {
|
|
"conflicts_with": "buffer.view"
|
|
}
|
|
},
|
|
"error_values/no_authority.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "An error value cannot supply capability authority; the result type mismatch is source-decided E7005.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/error_values/no_authority.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "cap<mem.alloc>",
|
|
"found": "alloc_error"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"error_values/wrong_family.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "Returning alloc_error where io_error is declared rejects before AIR as E7005.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/error_values/wrong_family.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "io_error",
|
|
"found": "alloc_error"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"error_values/unknown_variant.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a76",
|
|
"rule": "An unknown built-in error variant is E7002 under the source error-construction rule.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/error_values/unknown_variant.aji",
|
|
"codes": [
|
|
"E7002"
|
|
],
|
|
"fields": {
|
|
"enum": "alloc_error",
|
|
"variant": "invalid"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"error_values/payload.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a76",
|
|
"rule": "Built-in error variants reject payload arguments with E7005. This non-empty source payload is an analogue of the AIR empty argument list; empty source () instead rejects E7001.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/error_values/payload.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"variant": "budget_exceeded"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"buffers/borrowed_element.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "A borrowed buffer element violates member-position rules. AIR checks a parameter while this source analogue checks the buffer.new type argument, both before the operation.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/buffers/borrowed_element.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"position": "member",
|
|
"type_constructor": "ref"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"linear/borrow_array.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "Borrowed inferred array elements reject E7006 invalid_literal before AIR. The source list has two elements and AIR has one; element count does not decide this member-position rule.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/array_literals/list_ref.aji",
|
|
"codes": [
|
|
"E7006"
|
|
],
|
|
"fields": {
|
|
"reason": "invalid_literal"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"buffers/undeclared.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
|
|
},
|
|
"linear/without_feature.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
|
|
},
|
|
"error_values/undeclared.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
|
|
},
|
|
"error_values/dependency.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The missing AIR feature or dependency header cannot be authored in source: lowering generates the used features and their full dependency closure."
|
|
},
|
|
"phase0/reject/float_reserved.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a73",
|
|
"rule": "Source has no built-in f32/f64 type (spec 07 \u00a78.4). An undeclared f64 spelling is an ordinary E7002 unknown name; a user nominal f64 lowers to @f64 and cannot produce the reserved AIR primitive f64. Neither tests the reserved_type rule. Spec 15 \u00a71 restricts source to published features."
|
|
},
|
|
"phase3/reject/cancel_join_needs_wait.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a737.4",
|
|
"rule": "In a module declaring cancellation, task.join requires task.wait. Source declares cancellation via a shield helper in the same module, preserving main's task.spawn contract and its suggested effects.",
|
|
"required_ops": {
|
|
"task.spawn": 1,
|
|
"task.join": 1
|
|
}
|
|
},
|
|
"phase3/reject/sync_use_after_take.air": {
|
|
"kind": "same_code",
|
|
"site": "instruction",
|
|
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a732",
|
|
"rule": "A mutex is borrowed again after mutex.take consumed it; the source lock begins with that same borrow.ref.",
|
|
"required_ops": {
|
|
"mutex.take": 1
|
|
}
|
|
},
|
|
"phase2/reject/own_nested.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
|
|
},
|
|
"phase2/reject/own_of_resource.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
|
|
},
|
|
"phase2/reject/resource_in_struct.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
|
|
},
|
|
"phase2/reject/cap_without_feature.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
|
|
},
|
|
"phase5/reject/struct_field.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a79",
|
|
"rule": "The existing AIR rejects a missing feature header, not the type itself. Source lowering automatically includes capabilities or the published linear_aggregates feature and its closure for these types."
|
|
},
|
|
"phase2/reject/unsafe_trusted_without_feature.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a72",
|
|
"rule": "A source trusted clause always rejects E7006 as forbidden, independently of obligation or effects. The AIR trusted declaration rules for an empty obligation, an unsafe boundary contract or a missing feature therefore cannot be isolated in source."
|
|
},
|
|
"phase2/reject/unsafe_trusted_declares_unsafe.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a72",
|
|
"rule": "A source trusted clause always rejects E7006 as forbidden, independently of obligation or effects. The AIR trusted declaration rules for an empty obligation, an unsafe boundary contract or a missing feature therefore cannot be isolated in source."
|
|
},
|
|
"phase2/reject/unsafe_empty_obligation.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a72",
|
|
"rule": "A source trusted clause always rejects E7006 as forbidden, independently of obligation or effects. The AIR trusted declaration rules for an empty obligation, an unsafe boundary contract or a missing feature therefore cannot be isolated in source."
|
|
},
|
|
"linear/enum_incomplete.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a716",
|
|
"rule": "A linear enum match move omits Maybe::none; source rejects the incomplete consuming match with E7004 before emitting enum.take.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_enum_incomplete.aji",
|
|
"codes": [
|
|
"E7004"
|
|
],
|
|
"fields": {
|
|
"missing": "Maybe::none"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"linear/unpack_count.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a716",
|
|
"rule": "array.unpack of a one-element linear array binds two components. Source rejects the authored extra binding before emitting an AIR continuation.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_unpack_count.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {}
|
|
}
|
|
]
|
|
},
|
|
"buffers/metadata_owner.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a717",
|
|
"rule": "buffer.len receives an owner instead of the required named ref/mut buffer binding; source checks that operand form before AIR.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_metadata_owner.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {}
|
|
}
|
|
]
|
|
},
|
|
"buffers/push_continuation_count.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a717",
|
|
"rule": "The authored buffer.push success arm binds an extra value although ok has zero bindings. This source outcome-arity error rejects before AIR.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_push_continuation_count.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"outcome": "ok",
|
|
"expected": "0"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"buffers/new_count_type.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "buffer.new receives a u64 capacity instead of usize; the source operand type rule preserves both types in E7005.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_new_count_type.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "usize",
|
|
"found": "u64"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"linear/enum_switch.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a716",
|
|
"rule": "An ordinary match on a named linear enum needs explicit move; source rejects E7003 before the invalid enum.switch.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/linear/plain_enum_match.aji",
|
|
"codes": [
|
|
"E7003"
|
|
],
|
|
"fields": {
|
|
"name": "old"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"buffers/new_return_type.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "Despite the AIR filename, the first rejection is the non-Copy content of own_array<own<u64>> on its outcome block parameter. Source checks that same content rule at the annotation.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/own_array_content/owner.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"constraint": "Copy",
|
|
"type_constructor": "own_array"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase2/reject/wrong_file_mode.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "fs.write_all requires a writable file; source rejects file<read> at its operand before emitting the invalid intrinsic.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/layer6/reject/wrong_mode.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "file<write> or file<append>",
|
|
"found": "file<read>"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"phase2/reject/unknown_capability_kind.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "An unregistered capability kind rejects E7002 in source. AIR uses root and the existing source analogue uses unknown; neither can be registered by a program.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/diagnostic_envelope/capability_kind_unknown.aji",
|
|
"codes": [
|
|
"E7002"
|
|
],
|
|
"fields": {
|
|
"capability_kind": "unknown"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"buffers/reserve_count_type.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "buffer.reserve receives a u64 capacity instead of usize; source reports E7005 for the same operand type mismatch.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_buffer_reserve_count_type.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "usize",
|
|
"found": "u64"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"buffers/push_type.air": {
|
|
"kind": "source_error",
|
|
"spec": "docs/spec/15-source-language.md \u00a710",
|
|
"rule": "buffer.push into a buffer<own<u64>> receives a u64 value; source rejects the content type mismatch with E7005.",
|
|
"analogues": [
|
|
{
|
|
"source": "source/reject_twins/analogue_buffer_push_type.aji",
|
|
"codes": [
|
|
"E7005"
|
|
],
|
|
"fields": {
|
|
"expected": "own<u64>",
|
|
"found": "u64"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"linear/array_count.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "A source list literal fixes its own array length and supplies every element. The AIR mismatch between declared array.make length and input count is generated mechanics; a source annotation mismatch is a different type rule."
|
|
},
|
|
"buffers/pop_return_type.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "The pop success binding type is generated from buffer<T>. Source outcome bindings cannot annotate an incompatible type; a later let annotation mismatch is a different rule."
|
|
},
|
|
"buffers/free_return_type.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a71",
|
|
"rule": "The free error binding is generated as the returned buffer<T>. Source cannot annotate that outcome binding as own<T>; a later variable annotation mismatch is a different rule."
|
|
},
|
|
"error_values/unknown_family.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a76",
|
|
"rule": "Only registered built-in error families lower to error.const. An undeclared family spelling in source is ordinary enum-name resolution (E7002); a user enum of that name lowers to enum.make @Name, never an unregistered error.const family."
|
|
},
|
|
"error_values/frozen_enum_make.air": {
|
|
"kind": "air_only",
|
|
"spec": "docs/spec/15-source-language.md \u00a76",
|
|
"rule": "Built-in error expressions lower to error.const with error_values and its closure. Source cannot choose the frozen legacy enum.make spelling for a built-in error family; user nominal enums use a distinct @Name type."
|
|
}
|
|
}
|
|
}
|