Skip to content

Commit a2fdc16

Browse files
committed
std.mem: delete workaround now that zig1.wasm is updated
1 parent 86d8f38 commit a2fdc16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/std/mem.zig

+1-5
Original file line numberDiff line numberDiff line change
@@ -636,18 +636,14 @@ test lessThan {
636636
try testing.expect(lessThan(u8, "", "a"));
637637
}
638638

639-
/// Normally, we could simply use `builtin.fuzz` but this requires a zig1.wasm
640-
/// update. After the next zig1.wasm update, the `@hasDecl` can be removed.
641-
const fuzz = @hasDecl(builtin, "fuzz") and builtin.fuzz;
642-
643639
const eqlBytes_allowed = switch (builtin.zig_backend) {
644640
// The SPIR-V backend does not support the optimized path yet.
645641
.stage2_spirv64 => false,
646642
// The RISC-V does not support vectors.
647643
.stage2_riscv64 => false,
648644
// The naive memory comparison implementation is more useful for fuzzers to
649645
// find interesting inputs.
650-
else => !fuzz,
646+
else => !builtin.fuzz,
651647
};
652648

653649
/// Compares two slices and returns whether they are equal.

0 commit comments

Comments
 (0)