From c3b8abfc26e5b5e3de79fc4270d4540588541c02 Mon Sep 17 00:00:00 2001 From: Matthew Lugg Date: Sun, 18 Oct 2026 21:14:03 +0100 Subject: [PATCH] std.Build.Cache: fix diagnostic printing --- lib/std/Build/Cache.zig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/std/Build/Cache.zig b/lib/std/Build/Cache.zig index c4d1c106022d436b7b32295c627c0898797b8906..d8f79c54ece069301e065b1bd172fea4e15cb885 100644 --- a/lib/std/Build/Cache.zig +++ b/lib/std/Build/Cache.zig @@ -1727,7 +1727,14 @@ pub const Manifest = struct { pub fn format(this: @This(), w: *Io.Writer) Io.Writer.Error!void { switch (this) { .none => return w.writeAll("none"), - else => |err, tag| return w.print("{t}: {t}", .{ tag, err }), + + .open_file, + .open_dir, + .stat_file, + .stat_dir, + .read_file, + .read_dir, + => |err, tag| return w.print("{t}: {t}", .{ tag, err }), } } }; -- 2.54.0