From 75bbc74d56f26da812c47436c6f5712d3cfde12d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jan 2022 22:25:49 -0700 Subject: a small crusade against std.meta.declarations --- lib/std/testing.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/testing.zig') diff --git a/lib/std/testing.zig b/lib/std/testing.zig index a09d448e0a..a9874d4df1 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -465,7 +465,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 (!builtin.is_test) return; - inline for (std.meta.declarations(T)) |decl| { + inline for (comptime std.meta.declarations(T)) |decl| { _ = decl; } } -- cgit v1.2.3