aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 527676566c..48b13a6b1a 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -78,13 +78,9 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type {
@branchHint(.cold);
call("invalid error code", @returnAddress());
}
- pub fn castTruncatedData() noreturn {
+ pub fn integerOutOfBounds() noreturn {
@branchHint(.cold);
- call("integer cast truncated bits", @returnAddress());
- }
- pub fn negativeToUnsigned() noreturn {
- @branchHint(.cold);
- call("attempt to cast negative value to unsigned integer", @returnAddress());
+ call("integer does not fit in destination type", @returnAddress());
}
pub fn integerOverflow() noreturn {
@branchHint(.cold);
@@ -126,8 +122,6 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type {
@branchHint(.cold);
call("for loop over objects with non-equal lengths", @returnAddress());
}
- /// Delete after next zig1.wasm update
- pub const memcpyLenMismatch = copyLenMismatch;
pub fn copyLenMismatch() noreturn {
@branchHint(.cold);
call("source and destination arguments have non-equal lengths", @returnAddress());