From 1a90f8f77b3e01150399d0fca057bc8e109bf7e2 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 30 May 2026 21:54:01 -0700 Subject: [PATCH] add a trailing compile error that also prints the specifier --- fmt.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/fmt.zig b/fmt.zig index a1e98b8e45978da6840e1d167c76b2f995913261..099a3bf4b05f1dc55d682418b529bcab93168d23 100644 --- a/fmt.zig +++ b/fmt.zig @@ -618,6 +618,7 @@ fn formatType(value: anytype, comptime fmt: []const u8, options: FormatOptions, }, else => @compileError("unable to format type '" ++ @typeName(T) ++ "'"), } + @compileError("unable to format type '" ++ @typeName(T) ++ "' with specifier '" ++ actual_fmt ++ "'"); } pub inline fn comptimePrint(comptime fmt: []const u8, args: anytype) *const [count(fmt, args):0]u8 { -- 2.54.0