Commit 3bafc4400a

Andrew Kelley <andrew@ziglang.org>
2024-04-11 22:58:08
std.debug.panic: pass the args
Why was this passing null? These values are available and useful.
1 parent 9cfac47
Changed files (1)
lib
lib/std/debug.zig
@@ -406,7 +406,7 @@ pub fn assert(ok: bool) void {
 pub fn panic(comptime format: []const u8, args: anytype) noreturn {
     @setCold(true);
 
-    panicExtra(null, null, format, args);
+    panicExtra(@errorReturnTrace(), @returnAddress(), format, args);
 }
 
 /// `panicExtra` is useful when you want to print out an `@errorReturnTrace`