mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std: remove old declarations now a zig1 update has happened
This commit is contained in:
parent
38b47034f7
commit
3232e59ab9
4 changed files with 0 additions and 54 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = "";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue