aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-12-04 15:03:32 +0200
committerVeikka Tuominen <git@vexu.eu>2022-12-07 14:48:24 +0200
commit92f1a29c4082817f11e12ff58bd4fdb5fffb8608 (patch)
treeeec9d9d740422b004a0062162c4772a82a402a72 /lib/std/testing.zig
parent1310ef75777209f061bfd61473db75911538b5ff (diff)
downloadzig-92f1a29c4082817f11e12ff58bd4fdb5fffb8608.tar.gz
zig-92f1a29c4082817f11e12ff58bd4fdb5fffb8608.zip
AstGen: make `@compileError` operand implicitly comptime
This matches the language reference.
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index 1bda46ecce..1a7d3fd732 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -765,7 +765,7 @@ pub fn checkAllAllocationFailures(backing_allocator: std.mem.Allocator, comptime
}
const expected_args_tuple_len = fn_args_fields.len - 1;
if (extra_args.len != expected_args_tuple_len) {
- @compileError("The provided function expects " ++ (comptime std.fmt.comptimePrint("{d}", .{expected_args_tuple_len})) ++ " extra arguments, but the provided tuple contains " ++ (comptime std.fmt.comptimePrint("{d}", .{extra_args.len})));
+ @compileError("The provided function expects " ++ std.fmt.comptimePrint("{d}", .{expected_args_tuple_len}) ++ " extra arguments, but the provided tuple contains " ++ std.fmt.comptimePrint("{d}", .{extra_args.len}));
}
// Setup the tuple that will actually be used with @call (we'll need to insert