authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2025-01-18 17:32:35-05:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2025-01-18 17:33:10-05:00
log128658038d26a75dd1a52f82fc65fba3e91bba9e
tree698b34b3f51708f1f2126ce58e08cd9364eb7248
parenta446101677e556c54a1633c430cb1611b2cdd5fe

debug: fix `std.debug.NoPanic` compile errors


1 files changed, 5 insertions(+), 5 deletions(-)

lib/std/debug/NoPanic.zig+5-5
......@@ -10,27 +10,27 @@ pub fn call(_: []const u8, _: ?*std.builtin.StackTrace, _: ?usize) noreturn {
1010 @trap();
1111}
1212
13pub inline fn sentinelMismatch(_: anytype, _: anytype) noreturn {
13pub fn sentinelMismatch(_: anytype, _: anytype) noreturn {
1414 @branchHint(.cold);
1515 @trap();
1616}
1717
18pub inline fn unwrapError(_: ?*std.builtin.StackTrace, _: anyerror) noreturn {
18pub fn unwrapError(_: ?*std.builtin.StackTrace, _: anyerror) noreturn {
1919 @branchHint(.cold);
2020 @trap();
2121}
2222
23pub inline fn outOfBounds(_: usize, _: usize) noreturn {
23pub fn outOfBounds(_: usize, _: usize) noreturn {
2424 @branchHint(.cold);
2525 @trap();
2626}
2727
28pub inline fn startGreaterThanEnd(_: usize, _: usize) noreturn {
28pub fn startGreaterThanEnd(_: usize, _: usize) noreturn {
2929 @branchHint(.cold);
3030 @trap();
3131}
3232
33pub inline fn inactiveUnionField(_: anytype, _: anytype) noreturn {
33pub fn inactiveUnionField(_: anytype, _: anytype) noreturn {
3434 @branchHint(.cold);
3535 @trap();
3636}