authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-30 21:54:01 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-30 21:54:01 -07:00
log1a90f8f77b3e01150399d0fca057bc8e109bf7e2
tree4aa1e164fbe0026e97bf1c61eb50afb5a2cbc45b
parente96a016e3fe9b942e66d24dc95e484323767f357
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add a trailing compile error that also prints the specifier


1 files changed, 1 insertions(+), 0 deletions(-)

fmt.zig+1
......@@ -618,6 +618,7 @@ fn formatType(value: anytype, comptime fmt: []const u8, options: FormatOptions,
618618 },
619619 else => @compileError("unable to format type '" ++ @typeName(T) ++ "'"),
620620 }
621 @compileError("unable to format type '" ++ @typeName(T) ++ "' with specifier '" ++ actual_fmt ++ "'");
621622}
622623
623624pub inline fn comptimePrint(comptime fmt: []const u8, args: anytype) *const [count(fmt, args):0]u8 {