diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-11-29 15:57:34 +0200 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-11-29 21:44:08 +0200 |
| commit | e60db701d13a50798222bbef2d4560245f975671 (patch) | |
| tree | fb3f0e65bb9fb8937771b230775c669e70efaaac /lib/std | |
| parent | ed734299269d50083db27d68598ced7df42b8631 (diff) | |
| download | zig-e60db701d13a50798222bbef2d4560245f975671.tar.gz zig-e60db701d13a50798222bbef2d4560245f975671.zip | |
Sema: add option to disable formatted panics
Closes #13174
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/builtin.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |
