Commit 3232e59ab9
Changed files (4)
lib
lib/std/debug/no_panic.zig
@@ -134,27 +134,3 @@ pub fn noreturnReturned() noreturn {
@branchHint(.cold);
@trap();
}
-
-/// To be deleted after zig1.wasm update.
-pub const messages = struct {
- pub const reached_unreachable = "";
- pub const unwrap_null = "";
- pub const cast_to_null = "";
- pub const incorrect_alignment = "";
- pub const invalid_error_code = "";
- pub const cast_truncated_data = "";
- pub const negative_to_unsigned = "";
- pub const integer_overflow = "";
- pub const shl_overflow = "";
- pub const shr_overflow = "";
- pub const divide_by_zero = "";
- pub const exact_division_remainder = "";
- pub const integer_part_out_of_bounds = "";
- pub const corrupt_switch = "";
- pub const shift_rhs_too_big = "";
- pub const invalid_enum_value = "";
- pub const for_len_mismatch = "";
- pub const memcpy_len_mismatch = "";
- pub const memcpy_alias = "";
- pub const noreturn_returned = "";
-};
lib/std/debug/simple_panic.zig
@@ -126,27 +126,3 @@ pub fn memcpyAlias() noreturn {
pub fn noreturnReturned() noreturn {
call("'noreturn' function returned", null);
}
-
-/// To be deleted after zig1.wasm update.
-pub const messages = struct {
- pub const reached_unreachable = "reached unreachable code";
- pub const unwrap_null = "attempt to use null value";
- pub const cast_to_null = "cast causes pointer to be null";
- pub const incorrect_alignment = "incorrect alignment";
- pub const invalid_error_code = "invalid error code";
- pub const cast_truncated_data = "integer cast truncated bits";
- pub const negative_to_unsigned = "attempt to cast negative value to unsigned integer";
- pub const integer_overflow = "integer overflow";
- pub const shl_overflow = "left shift overflowed bits";
- pub const shr_overflow = "right shift overflowed bits";
- pub const divide_by_zero = "division by zero";
- pub const exact_division_remainder = "exact division produced remainder";
- pub const integer_part_out_of_bounds = "integer part of floating point value out of bounds";
- 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 for_len_mismatch = "for loop over objects with non-equal lengths";
- pub const memcpy_len_mismatch = "@memcpy arguments have non-equal lengths";
- pub const memcpy_alias = "@memcpy arguments alias";
- pub const noreturn_returned = "'noreturn' function returned";
-};
lib/std/builtin.zig
@@ -1135,9 +1135,6 @@ pub const panic: type = p: {
break :p std.debug.FullPanic(std.debug.defaultPanic);
};
-/// To be deleted after zig1.wasm is updated.
-pub const Panic = panic;
-
pub noinline fn returnError() void {
@branchHint(.unlikely);
@setRuntimeSafety(false);
lib/std/debug.zig
@@ -134,9 +134,6 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type {
@branchHint(.cold);
call("'noreturn' function returned", @returnAddress());
}
-
- /// To be deleted after zig1.wasm update.
- pub const messages = simple_panic.messages;
};
}