diag: preserve factual source atomic-access diagnostics

This commit is contained in:
dev committed 2026-10-09 00:04:12 +03:00
1 parent ee09a7a290
commit edfef82cc6
18 files changed
+346 -9

No files matched your search

+21
View File
@@ -1711,6 +1711,27 @@
"source/reject_twins/linear_swap_leak.aji": "6f9fa0d8ef40b75951c2a2042d1d171c221268301df18b38775b74a47f606cc7"
}
}
},
"phase5/reject/ordinary_load.air": {
"kind": "same_code",
"site": "instruction",
"spec": "docs/spec/04-concurrency-and-atomics.md \u00a728; docs/spec/15-source-language.md \u00a712",
"rule": "An ordinary load through ref<atomic<u64>> rejects E4202 with found and use atomic.load. The source wraps the created cell in an explicit linear struct so its shared field read reaches AIR; it unpacks and takes the cell afterwards. The rule does not depend on the carrier. Both actual operands must be the borrow used by the offending load; raw/source identities and positions remain exact.",
"required_ops": {
"atomic.new": 1,
"load": 1,
"atomic.take": 1
}
},
"phase3/reject/cfg_provenance_loan_cbr.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74",
"rule": "The AIR regression passes the directly spawned lent handle as an argument to both cbr arm targets. Source if arms have no target arguments; loop-exit cbr arguments instead forward loop-header variables. The direct two-arm handoff context has no implemented source spelling."
},
"phase3/reject/cfg_provenance_loan_switch.air": {
"kind": "air_only",
"spec": "docs/spec/15-source-language.md \u00a74",
"rule": "The AIR regression passes a lent task as switch target arguments. Source integer/enum match arms have no target arguments; changing variables reach a subsequent br join. A later-merge E4302 would discard the switch-handoff context being tested."
}
}
}