Remove deprecated zig features

This commit is contained in:
Locria Cyber 2021-10-26 20:21:55 -04:00
parent ed1e751123
commit 791c46fe0d
4 changed files with 8 additions and 6 deletions

View file

@ -159,7 +159,8 @@ fn exportUtilsFn(comptime func: anytype, comptime func_name: []const u8) void {
// Custom panic function, as builtin Zig version errors during LLVM verification
pub fn panic(message: []const u8, stacktrace: ?*std.builtin.StackTrace) noreturn {
if (std.builtin.is_test) {
const builtin = @import("builtin");
if (builtin.is_test) {
std.debug.print("{s}: {?}", .{ message, stacktrace });
} else {
_ = message;