From fd72b38f68c6c0f637c7d3639162e4053135086c Mon Sep 17 00:00:00 2001 From: mlugg Date: Sun, 1 Jun 2025 08:28:51 +0100 Subject: [PATCH] std: remove old panic handlers after zig1.wasm update --- lib/std/debug.zig | 6 ------ lib/std/debug/no_panic.zig | 7 ------- lib/std/debug/simple_panic.zig | 7 ------- 3 files changed, 20 deletions(-) diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 450c627e15..48b13a6b1a 100644 --- a/lib/std/debug.zig +++ b/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()); diff --git a/lib/std/debug/no_panic.zig b/lib/std/debug/no_panic.zig index 67181b116e..f24317b9b7 100644 --- a/lib/std/debug/no_panic.zig +++ b/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(); diff --git a/lib/std/debug/simple_panic.zig b/lib/std/debug/simple_panic.zig index 61a3d5d76f..95f7d679ed 100644 --- a/lib/std/debug/simple_panic.zig +++ b/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); }