diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-01-31 22:25:49 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-31 22:25:49 -0700 |
| commit | 75bbc74d56f26da812c47436c6f5712d3cfde12d (patch) | |
| tree | c243bba0c998f3f44afe5e67f1120433117d5ead /lib/std/testing.zig | |
| parent | aa326328d0b4a0d4ee8167be9b2ab25fd560b0c9 (diff) | |
| download | zig-75bbc74d56f26da812c47436c6f5712d3cfde12d.tar.gz zig-75bbc74d56f26da812c47436c6f5712d3cfde12d.zip | |
a small crusade against std.meta.declarations
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 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; } } |
