authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-24 05:08:18+00:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2025-01-24 22:33:23+00:00
log3232e59ab99154154631eccc177b7159633acd7f
treed474f158177e2791f4235c10b7036a4b9ee2d633
parent38b47034f7f70b256c1f91569971bca1f970e9e0
signaturelock-open Commit is signed but in an unrecognized format.

std: remove old declarations now a zig1 update has happened


4 files changed, 0 insertions(+), 54 deletions(-)

lib/std/builtin.zig-3
...@@ -1135,9 +1135,6 @@ pub const panic: type = p: {...@@ -1135,9 +1135,6 @@ pub const panic: type = p: {
1135 break :p std.debug.FullPanic(std.debug.defaultPanic);1135 break :p std.debug.FullPanic(std.debug.defaultPanic);
1136};1136};
11371137
1138/// To be deleted after zig1.wasm is updated.
1139pub const Panic = panic;
1140
1141pub noinline fn returnError() void {1138pub noinline fn returnError() void {
1142 @branchHint(.unlikely);1139 @branchHint(.unlikely);
1143 @setRuntimeSafety(false);1140 @setRuntimeSafety(false);
lib/std/debug.zig-3
...@@ -134,9 +134,6 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type {...@@ -134,9 +134,6 @@ pub fn FullPanic(comptime panicFn: fn ([]const u8, ?usize) noreturn) type {
134 @branchHint(.cold);134 @branchHint(.cold);
135 call("'noreturn' function returned", @returnAddress());135 call("'noreturn' function returned", @returnAddress());
136 }136 }
137
138 /// To be deleted after zig1.wasm update.
139 pub const messages = simple_panic.messages;
140 };137 };
141}138}
142139
lib/std/debug/no_panic.zig-24
...@@ -134,27 +134,3 @@ pub fn noreturnReturned() noreturn {...@@ -134,27 +134,3 @@ pub fn noreturnReturned() noreturn {
134 @branchHint(.cold);134 @branchHint(.cold);
135 @trap();135 @trap();
136}136}
137
138/// To be deleted after zig1.wasm update.
139pub const messages = struct {
140 pub const reached_unreachable = "";
141 pub const unwrap_null = "";
142 pub const cast_to_null = "";
143 pub const incorrect_alignment = "";
144 pub const invalid_error_code = "";
145 pub const cast_truncated_data = "";
146 pub const negative_to_unsigned = "";
147 pub const integer_overflow = "";
148 pub const shl_overflow = "";
149 pub const shr_overflow = "";
150 pub const divide_by_zero = "";
151 pub const exact_division_remainder = "";
152 pub const integer_part_out_of_bounds = "";
153 pub const corrupt_switch = "";
154 pub const shift_rhs_too_big = "";
155 pub const invalid_enum_value = "";
156 pub const for_len_mismatch = "";
157 pub const memcpy_len_mismatch = "";
158 pub const memcpy_alias = "";
159 pub const noreturn_returned = "";
160};
lib/std/debug/simple_panic.zig-24
...@@ -126,27 +126,3 @@ pub fn memcpyAlias() noreturn {...@@ -126,27 +126,3 @@ pub fn memcpyAlias() noreturn {
126pub fn noreturnReturned() noreturn {126pub fn noreturnReturned() noreturn {
127 call("'noreturn' function returned", null);127 call("'noreturn' function returned", null);
128}128}
129
130/// To be deleted after zig1.wasm update.
131pub const messages = struct {
132 pub const reached_unreachable = "reached unreachable code";
133 pub const unwrap_null = "attempt to use null value";
134 pub const cast_to_null = "cast causes pointer to be null";
135 pub const incorrect_alignment = "incorrect alignment";
136 pub const invalid_error_code = "invalid error code";
137 pub const cast_truncated_data = "integer cast truncated bits";
138 pub const negative_to_unsigned = "attempt to cast negative value to unsigned integer";
139 pub const integer_overflow = "integer overflow";
140 pub const shl_overflow = "left shift overflowed bits";
141 pub const shr_overflow = "right shift overflowed bits";
142 pub const divide_by_zero = "division by zero";
143 pub const exact_division_remainder = "exact division produced remainder";
144 pub const integer_part_out_of_bounds = "integer part of floating point value out of bounds";
145 pub const corrupt_switch = "switch on corrupt value";
146 pub const shift_rhs_too_big = "shift amount is greater than the type size";
147 pub const invalid_enum_value = "invalid enum value";
148 pub const for_len_mismatch = "for loop over objects with non-equal lengths";
149 pub const memcpy_len_mismatch = "@memcpy arguments have non-equal lengths";
150 pub const memcpy_alias = "@memcpy arguments alias";
151 pub const noreturn_returned = "'noreturn' function returned";
152};