authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-10-18 21:14:03+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-10-19 18:30:35+01:00
logc3b8abfc26e5b5e3de79fc4270d4540588541c02
tree68282d57817c2ec21ef98831fec1de1076b5a366
parentf83d28d5c61ae408369be03b0ce3bbbf9c079874
signature Commit is signed but in an unrecognized format.

std.Build.Cache: fix diagnostic printing


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

lib/std/Build/Cache.zig+8-1
...@@ -1727,7 +1727,14 @@ pub const Manifest = struct {...@@ -1727,7 +1727,14 @@ pub const Manifest = struct {
1727 pub fn format(this: @This(), w: *Io.Writer) Io.Writer.Error!void {1727 pub fn format(this: @This(), w: *Io.Writer) Io.Writer.Error!void {
1728 switch (this) {1728 switch (this) {
1729 .none => return w.writeAll("none"),1729 .none => return w.writeAll("none"),
1730 else => |err, tag| return w.print("{t}: {t}", .{ tag, err }),1730
1731 .open_file,
1732 .open_dir,
1733 .stat_file,
1734 .stat_dir,
1735 .read_file,
1736 .read_dir,
1737 => |err, tag| return w.print("{t}: {t}", .{ tag, err }),
1731 }1738 }
1732 }1739 }
1733 };1740 };