aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-02-19 15:08:59 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-02-19 15:11:18 -0700
commit8841a71aa675f76c0ff7658339872a5faa5e4d5b (patch)
tree21b3dc18b72e6baa1b5230dcae9e32f7eabe781d /lib
parent746435a9549b1dee6d39e73991592a26cdd582ac (diff)
downloadzig-8841a71aa675f76c0ff7658339872a5faa5e4d5b.tar.gz
zig-8841a71aa675f76c0ff7658339872a5faa5e4d5b.zip
AstGen: evaluate `comptime var` init expressions in a comptime context
Diffstat (limited to 'lib')
-rw-r--r--lib/std/fmt.zig1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/std/fmt.zig b/lib/std/fmt.zig
index 240a3ad233..b6594f193c 100644
--- a/lib/std/fmt.zig
+++ b/lib/std/fmt.zig
@@ -77,7 +77,6 @@ pub fn format(
) !void {
const ArgsType = @TypeOf(args);
const args_type_info = @typeInfo(ArgsType);
- // XXX: meta.trait.is(.Struct)(ArgsType) doesn't seem to work...
if (args_type_info != .Struct) {
@compileError("Expected tuple or struct argument, found " ++ @typeName(ArgsType));
}