From e60db701d13a50798222bbef2d4560245f975671 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Tue, 29 Nov 2022 15:57:34 +0200 Subject: Sema: add option to disable formatted panics Closes #13174 --- lib/std/builtin.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/std') diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index fcdf43bd31..8c8d0b37b7 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -891,6 +891,10 @@ pub const panic_messages = struct { pub const corrupt_switch = "switch on corrupt value"; pub const shift_rhs_too_big = "shift amount is greater than the type size"; pub const invalid_enum_value = "invalid enum value"; + pub const sentinel_mismatch = "sentinel mismatch"; + pub const unwrap_error = "attempt to unwrap error"; + pub const index_out_of_bounds = "index out of bounds"; + pub const start_index_greater_than_end = "start index is larger than end index"; }; pub noinline fn returnError(st: *StackTrace) void { -- cgit v1.2.3