From 2b242157b875573c68e92ebe4b8dbddc7f01ffdf Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 6 Aug 2026 19:49:00 -0700 Subject: [PATCH] std.mem.Allocator: remove bitrotted comments closes #36398 --- lib/std/mem/Allocator.zig | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/std/mem/Allocator.zig b/lib/std/mem/Allocator.zig index 486c69966e0e3d9bccf1b99e92d404cc36363283..9ab983f8b82c2ba60b6f5b45399b7fb8031b1336 100644 --- a/lib/std/mem/Allocator.zig +++ b/lib/std/mem/Allocator.zig @@ -326,9 +326,6 @@ pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool { return false; } const old_memory: []u8 = @ptrCast(@constCast(mem.absorbSentinel(allocation))); - // I would like to use saturating multiplication here, but LLVM cannot lower it - // on WebAssembly: https://github.com/ziglang/zig/issues/9660 - //const new_len_bytes = new_len *| @sizeOf(T); const new_len_bytes = math.mul(usize, @sizeOf(T), new_len) catch return false; return self.rawResize( old_memory, @@ -372,9 +369,6 @@ pub fn remap(self: Allocator, allocation: anytype, new_len: usize) ?@TypeOf(allo return new_memory; } const old_memory: []u8 = @ptrCast(@constCast(mem.absorbSentinel(allocation))); - // I would like to use saturating multiplication here, but LLVM cannot lower it - // on WebAssembly: https://github.com/ziglang/zig/issues/9660 - //const new_len_bytes = new_len *| @sizeOf(T); const new_len_bytes = math.mul(usize, @sizeOf(T), new_len) catch return null; const new_ptr = self.rawRemap( old_memory, -- 2.54.0