srctree

Andrew Kelley parent 9cfac471 3bafc440
std.debug.panic: pass the args

Why was this passing null? These values are available and useful.

inlinesplit
lib/std/debug.zig added: 2, removed: 2, total 0
@@ -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`