commit 069a079ddc2ae07cfe1998a364402624f07ce960 (tree)
parent 2549de80b226cddd0664ce4ad8c40887101f302b
Author: David Rubin <daviru007@icloud.com>
Date: Sun, 26 Nov 2023 04:41:24 -0800
complete todo
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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,