0.16.0 Released

I’m very excited to try this out and appreciate all of the work done in this release.

One thing to note: I see that we have many cool new changes have been added to the fuzzer, but running zig build test --fuzz after zig init seems to fail to compile from std changes on x86_64 linux:

Trying to run fuzzer
// using anyzig
$ zig 0.16.0 init
$ zig 0.16.0 build test --fuzz
info(web_server): web interface listening at http://[::1]:46785/
info(web_server): hint: pass '--webui=[::1]:46785' to use the same port next time
Build Summary: 5/5 steps succeeded; 3/3 tests passed
test
└─ run test
   └─ compile test Debug native 1 errors
path/lib/compiler/test_runner.zig:566:55: error: expected type '*const debug.StackTrace', found '*builtin.StackTrace'
                            std.debug.writeStackTrace(trace, stderr) catch break :p;
                                                      ^~~~~
path/lib/compiler/test_runner.zig:566:55: note: pointer type child 'builtin.StackTrace' cannot cast into pointer type child 'debug.StackTrace'
path/lib/std/builtin.zig:11:24: note: struct declared here
pub const StackTrace = struct {
                       ^~~~~~
path/lib/std/debug.zig:604:24: note: struct declared here
pub const StackTrace = struct {
                       ^~~~~~
path/lib/std/debug.zig:824:28: note: parameter type declared here
pub fn writeStackTrace(st: *const StackTrace, t: Io.Terminal) Writer.Error!void {
                           ^~~~~~~~~~~~~~~~~
referenced by:
    fuzz__anon_43958: path/lib/compiler/test_runner.zig:589:41
    fuzz [inlined]: path/lib/std/testing.zig:1232:32
    test.fuzz example: src/main.zig:43:25
error: 1 compilation errors
failed command: path/zig test -ffuzz -ODebug --dep foo -Mroot=path/src/main.zig -Mfoo=path/src/root.zig --cache-dir .zig-cache --global-cache-dir path/.cache/zig --name test --zig-lib-dir path/lib/ --listen=-
error: one or more unit tests failed to be rebuilt in fuzz mode
error: the following build command failed with exit code 1:
.zig-cache/o/d5998567d9a17182212e699ba1f271fa/build path/zig path/lib path .zig-cache path/.cache/zig --seed 0x619b697 -Za9e8ef37c309dad4 test --fuzz

It might be useful to set expectations for compile errors somewhere in the Fuzzer section.

1 Like