aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-09-26 16:46:02 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-09-26 16:46:02 -0700
commitdb8c0744767b3d472f9682827a312a8ffed74adf (patch)
treebc3c246a0f2bad79600970a20bcfd98bc42e7e12 /lib/std
parent1b491e640d7c6a3cd71c4b146ca104ff0b136edd (diff)
downloadzig-db8c0744767b3d472f9682827a312a8ffed74adf.tar.gz
zig-db8c0744767b3d472f9682827a312a8ffed74adf.zip
fix still calling std.builtin.panic sometimes
Diffstat (limited to 'lib/std')
-rw-r--r--lib/std/builtin.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig
index 67a144eebf..664a45f12b 100644
--- a/lib/std/builtin.zig
+++ b/lib/std/builtin.zig
@@ -770,7 +770,7 @@ pub const panic: PanicFn = if (@hasDecl(root, "panic"))
else if (@hasDecl(root, "os") and @hasDecl(root.os, "panic"))
root.os.panic
else
- std.debug.defaultPanic;
+ Panic.call;
/// This namespace is used by the Zig compiler to emit various kinds of safety
/// panics. These can be overridden by making a public `Panic` namespace in the