From 069a079ddc2ae07cfe1998a364402624f07ce960 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Sun, 26 Nov 2023 04:41:24 -0800 Subject: [PATCH] complete todo --- lib/std/Build/Step.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/Build/Step.zig b/lib/std/Build/Step.zig index 872035fb3d..9a06e4b9e5 100644 --- a/lib/std/Build/Step.zig +++ b/lib/std/Build/Step.zig @@ -371,8 +371,7 @@ pub fn evalZigProcess( // TODO: use @ptrCast when the compiler supports it const unaligned_extra = std.mem.bytesAsSlice(u32, extra_bytes); const extra_array = try arena.alloc(u32, unaligned_extra.len); - // TODO: use @memcpy when it supports slices - for (extra_array, unaligned_extra) |*dst, src| dst.* = src; + @memcpy(extra_array, unaligned_extra); s.result_error_bundle = .{ .string_bytes = try arena.dupe(u8, string_bytes), .extra = extra_array,