std.debug.panic: pass the args

Why was this passing null? These values are available and useful.
This commit is contained in:
Andrew Kelley 2024-04-11 13:58:08 -07:00
parent 9cfac4718d
commit 3bafc4400a

View file

@ -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`