Remove all usages of std.mem.copy and remove std.mem.set (#18143)

This commit is contained in:
David Rubin
2023-11-29 13:03:02 -08:00
committed by GitHub
parent cd7ac56a5a
commit 1e42a3de89
15 changed files with 24 additions and 29 deletions

View File

@@ -35,7 +35,7 @@ test "pointer to thread local array" {
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
const s = "Hello world";
std.mem.copy(u8, buffer[0..], s);
@memcpy(buffer[0..s.len], s);
try std.testing.expectEqualSlices(u8, buffer[0..], s);
}