From bfc8500390f0ed9371b01e2d9b1836b23bea68b9 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Fri, 9 Apr 2021 10:46:40 +0200 Subject: [PATCH] testing: Avoid @import-ing builtins module Use std.builtins instead. --- lib/std/testing.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }