authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-04-09 10:46:40+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-09 10:04:16-07:00
logbfc8500390f0ed9371b01e2d9b1836b23bea68b9
tree0c32dda6ef5e4a94551512eb2e635e37b96c84f6
parentb0e905a30dc99928c6686bf2b1401bebc0b0bdc0

testing: Avoid @import-ing builtins module

Use std.builtins instead.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/testing.zig+1-1
......@@ -451,7 +451,7 @@ test {
451451
452452/// Given a type, reference all the declarations inside, so that the semantic analyzer sees them.
453453pub fn refAllDecls(comptime T: type) void {
454 if (!@import("builtin").is_test) return;
454 if (!std.builtin.is_test) return;
455455 inline for (std.meta.declarations(T)) |decl| {
456456 _ = decl;
457457 }