authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-06 19:49:00-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-08-06 19:49:00-07:00
log2b242157b875573c68e92ebe4b8dbddc7f01ffdf
treee4548faf1c8ed2afb3639b9ffe0aad74f67588dd
parentcbf00af868e527f61ab59746ea23507a7e1e124a

std.mem.Allocator: remove bitrotted comments

closes #36398

1 files changed, 0 insertions(+), 6 deletions(-)

lib/std/mem/Allocator.zig-6
......@@ -326,9 +326,6 @@ pub fn resize(self: Allocator, allocation: anytype, new_len: usize) bool {
326326 return false;
327327 }
328328 const old_memory: []u8 = @ptrCast(@constCast(mem.absorbSentinel(allocation)));
329 // I would like to use saturating multiplication here, but LLVM cannot lower it
330 // on WebAssembly: https://github.com/ziglang/zig/issues/9660
331 //const new_len_bytes = new_len *| @sizeOf(T);
332329 const new_len_bytes = math.mul(usize, @sizeOf(T), new_len) catch return false;
333330 return self.rawResize(
334331 old_memory,
......@@ -372,9 +369,6 @@ pub fn remap(self: Allocator, allocation: anytype, new_len: usize) ?@TypeOf(allo
372369 return new_memory;
373370 }
374371 const old_memory: []u8 = @ptrCast(@constCast(mem.absorbSentinel(allocation)));
375 // I would like to use saturating multiplication here, but LLVM cannot lower it
376 // on WebAssembly: https://github.com/ziglang/zig/issues/9660
377 //const new_len_bytes = new_len *| @sizeOf(T);
378372 const new_len_bytes = math.mul(usize, @sizeOf(T), new_len) catch return null;
379373 const new_ptr = self.rawRemap(
380374 old_memory,