diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-02-19 15:08:59 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-02-19 15:11:18 -0700 |
| commit | 8841a71aa675f76c0ff7658339872a5faa5e4d5b (patch) | |
| tree | 21b3dc18b72e6baa1b5230dcae9e32f7eabe781d /lib/std | |
| parent | 746435a9549b1dee6d39e73991592a26cdd582ac (diff) | |
| download | zig-8841a71aa675f76c0ff7658339872a5faa5e4d5b.tar.gz zig-8841a71aa675f76c0ff7658339872a5faa5e4d5b.zip | |
AstGen: evaluate `comptime var` init expressions in a comptime context
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/fmt.zig | 1 |
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)); } |
