diff options
| author | LemonBoy <thatlemon@gmail.com> | 2021-04-09 10:46:40 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-09 10:04:16 -0700 |
| commit | bfc8500390f0ed9371b01e2d9b1836b23bea68b9 (patch) | |
| tree | 0c32dda6ef5e4a94551512eb2e635e37b96c84f6 /lib/std/testing.zig | |
| parent | b0e905a30dc99928c6686bf2b1401bebc0b0bdc0 (diff) | |
| download | zig-bfc8500390f0ed9371b01e2d9b1836b23bea68b9.tar.gz zig-bfc8500390f0ed9371b01e2d9b1836b23bea68b9.zip | |
testing: Avoid @import-ing builtins module
Use std.builtins instead.
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
