From 1b491e640d7c6a3cd71c4b146ca104ff0b136edd Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 26 Sep 2024 15:22:57 -0700 Subject: fixes and make sema report errors when std.builtin wrong instead of panicking --- lib/std/builtin.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index 5d3eca5f1e..67a144eebf 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -777,7 +777,7 @@ else /// root source file. pub const Panic: type = if (@hasDecl(root, "Panic")) root.Panic -else if (std.builtin.zig_backend == .stage2_riscv64) +else if (builtin.zig_backend == .stage2_riscv64) std.debug.SimplePanic // https://github.com/ziglang/zig/issues/21519 else std.debug.FormattedPanic; -- cgit v1.2.3