From 128658038d26a75dd1a52f82fc65fba3e91bba9e Mon Sep 17 00:00:00 2001 From: Jacob Young Date: Sat, 18 Jan 2025 17:32:35 -0500 Subject: [PATCH] debug: fix `std.debug.NoPanic` compile errors --- lib/std/debug/NoPanic.zig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/std/debug/NoPanic.zig b/lib/std/debug/NoPanic.zig index 04ae79b8cc..fb26de53f1 100644 --- a/lib/std/debug/NoPanic.zig +++ b/lib/std/debug/NoPanic.zig @@ -10,27 +10,27 @@ pub fn call(_: []const u8, _: ?*std.builtin.StackTrace, _: ?usize) noreturn { @trap(); } -pub inline fn sentinelMismatch(_: anytype, _: anytype) noreturn { +pub fn sentinelMismatch(_: anytype, _: anytype) noreturn { @branchHint(.cold); @trap(); } -pub inline fn unwrapError(_: ?*std.builtin.StackTrace, _: anyerror) noreturn { +pub fn unwrapError(_: ?*std.builtin.StackTrace, _: anyerror) noreturn { @branchHint(.cold); @trap(); } -pub inline fn outOfBounds(_: usize, _: usize) noreturn { +pub fn outOfBounds(_: usize, _: usize) noreturn { @branchHint(.cold); @trap(); } -pub inline fn startGreaterThanEnd(_: usize, _: usize) noreturn { +pub fn startGreaterThanEnd(_: usize, _: usize) noreturn { @branchHint(.cold); @trap(); } -pub inline fn inactiveUnionField(_: anytype, _: anytype) noreturn { +pub fn inactiveUnionField(_: anytype, _: anytype) noreturn { @branchHint(.cold); @trap(); }