Commit fd72b38f68

mlugg <mlugg@mlugg.co.uk>
2025-06-01 09:28:51
std: remove old panic handlers after zig1.wasm update
1 parent cc047fd
Changed files (3)
lib/std/debug/no_panic.zig
@@ -120,13 +120,6 @@ pub fn forLenMismatch() noreturn {
     @trap();
 }
 
-/// Delete after next zig1.wasm update
-pub const memcpyLenMismatch = copyLenMismatch;
-/// Delete after next zig1.wasm update
-pub const castTruncatedData = integerOutOfBounds;
-/// Delete after next zig1.wasm update
-pub const negativeToUnsigned = integerOutOfBounds;
-
 pub fn copyLenMismatch() noreturn {
     @branchHint(.cold);
     @trap();
lib/std/debug/simple_panic.zig
@@ -116,13 +116,6 @@ pub fn forLenMismatch() noreturn {
     call("for loop over objects with non-equal lengths", null);
 }
 
-/// Delete after next zig1.wasm update
-pub const memcpyLenMismatch = copyLenMismatch;
-/// Delete after next zig1.wasm update
-pub const castTruncatedData = integerOutOfBounds;
-/// Delete after next zig1.wasm update
-pub const negativeToUnsigned = integerOutOfBounds;
-
 pub fn copyLenMismatch() noreturn {
     call("source and destination have non-equal lengths", null);
 }
lib/std/debug.zig
@@ -122,12 +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;
-        /// Delete after next zig1.wasm update
-        pub const castTruncatedData = integerOutOfBounds;
-        /// Delete after next zig1.wasm update
-        pub const negativeToUnsigned = integerOutOfBounds;
         pub fn copyLenMismatch() noreturn {
             @branchHint(.cold);
             call("source and destination arguments have non-equal lengths", @returnAddress());