mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
Previously, logic in `Compilation.getAllErrorsAlloc` was corrupting the `failed_analysis` hashmap. This meant that on updates after the initial update, attempts to remove entries from this map (because the `AnalUnit` in question is being re-analyzed) silently failed. This resulted in compile errors from earlier updates wrongly getting "stuck", i.e. never being removed. This commit also adds a few log calls which helped me to find this bug.
53 lines
1.4 KiB
Plaintext
53 lines
1.4 KiB
Plaintext
#target=x86_64-linux-selfhosted
|
|
#target=x86_64-linux-cbe
|
|
#target=x86_64-windows-cbe
|
|
#update=initial version
|
|
#file=main.zig
|
|
pub fn main() !void {}
|
|
comptime { @compileError("c0"); }
|
|
comptime { @compileError("c1"); }
|
|
comptime { @compileError("c2"); }
|
|
comptime { @compileError("c3"); }
|
|
comptime { @compileError("c4"); }
|
|
comptime { @compileError("c5"); }
|
|
comptime { @compileError("c6"); }
|
|
comptime { @compileError("c7"); }
|
|
comptime { @compileError("c8"); }
|
|
comptime { @compileError("c9"); }
|
|
export fn f0() void { @compileError("f0"); }
|
|
export fn f1() void { @compileError("f1"); }
|
|
export fn f2() void { @compileError("f2"); }
|
|
export fn f3() void { @compileError("f3"); }
|
|
export fn f4() void { @compileError("f4"); }
|
|
export fn f5() void { @compileError("f5"); }
|
|
export fn f6() void { @compileError("f6"); }
|
|
export fn f7() void { @compileError("f7"); }
|
|
export fn f8() void { @compileError("f8"); }
|
|
export fn f9() void { @compileError("f9"); }
|
|
#expect_error=ignored
|
|
#update=fix all the errors
|
|
#file=main.zig
|
|
pub fn main() !void {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
comptime {}
|
|
export fn f0() void {}
|
|
export fn f1() void {}
|
|
export fn f2() void {}
|
|
export fn f3() void {}
|
|
export fn f4() void {}
|
|
export fn f5() void {}
|
|
export fn f6() void {}
|
|
export fn f7() void {}
|
|
export fn f8() void {}
|
|
export fn f9() void {}
|
|
const std = @import("std");
|
|
#expect_stdout=""
|