authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-22 02:02:19+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-22 02:02:33+00:00
log6e7ae66871575a2bf6b15c0f0280b13a57fc59eb
tree56e83cd7aca746d9d34837c0addb6d6eb845faf7
parentf244c8891a6956fb9560c26e516278052b5acef5
signaturelock-open Commit is signed but in an unrecognized format.

std.debug: remove `errorReturnTraceHelper`

This function doesn't do what it says; it's a nop.

1 files changed, 0 insertions(+), 7 deletions(-)

lib/std/debug.zig-7
......@@ -413,16 +413,9 @@ pub fn assertReadable(slice: []const volatile u8) void {
413413 for (slice) |*byte| _ = byte.*;
414414}
415415
416/// By including a call to this function, the caller gains an error return trace
417/// secret parameter, making `@errorReturnTrace()` more useful. This is not
418/// necessary if the function already contains a call to an errorable function
419/// elsewhere.
420pub fn errorReturnTraceHelper() anyerror!void {}
421
422416/// Equivalent to `@panic` but with a formatted message.
423417pub fn panic(comptime format: []const u8, args: anytype) noreturn {
424418 @branchHint(.cold);
425 errorReturnTraceHelper() catch unreachable;
426419 panicExtra(@errorReturnTrace(), @returnAddress(), format, args);
427420}
428421