From 92f1a29c4082817f11e12ff58bd4fdb5fffb8608 Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Sun, 4 Dec 2022 15:03:32 +0200 Subject: AstGen: make `@compileError` operand implicitly comptime This matches the language reference. --- 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 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 -- cgit v1.2.3