Skip to content

Commit

Permalink
adjust for Zig's removal of std.builtin.default_panic
Browse files Browse the repository at this point in the history
  • Loading branch information
karlseguin committed Oct 1, 2024
1 parent 5b9e871 commit fd978f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_runner.zig
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, ret_
if (current_test) |ct| {
std.debug.print("\x1b[31m{s}\npanic running \"{s}\"\n{s}\x1b[0m\n", .{BORDER, ct, BORDER});
}
std.builtin.default_panic(msg, error_return_trace, ret_addr);
std.builtin.Panic.call(msg, error_return_trace, ret_addr);
}

fn isUnnamed(t: std.builtin.TestFn) bool {
Expand Down

0 comments on commit fd978f6

Please sign in to comment.