diag: preserve envelope fields and reject JSON key collisions in tests

This commit is contained in:
dev committed 2026-10-07 19:28:36 +03:00
1 parent 8ee0f4c2bf
commit 364eb57bbc
16 files changed
+166 -12

No files matched your search

+1 -1
View File
@@ -654,7 +654,7 @@ fn step(w: *Walker, inst: air.Inst) !void {
.mutex_unlock => |g| {
if (!w.live[g]) return w.report("E2002", "linear value consumed twice", g, null);
for (w.live, 0..) |is_live, b| if (is_live and w.info[b] != null and w.info[b].?.root == g) {
try w.report("E2102", "guard unlocked while a borrow from it is live", g, .{ "borrow", @intCast(b) });
try w.report("E2102", "guard unlocked while a borrow from it is live", @intCast(b), .{ "guard", g });
break;
};
w.live[g] = false;