diff --git a/lib/std/testing.zig b/lib/std/testing.zig index f2bd26fbcf..ac1aa3bf6d 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -451,7 +451,7 @@ test { /// Given a type, reference all the declarations inside, so that the semantic analyzer sees them. pub fn refAllDecls(comptime T: type) void { - if (!@import("builtin").is_test) return; + if (!std.builtin.is_test) return; inline for (std.meta.declarations(T)) |decl| { _ = decl; }