zig
zig copied to clipboard
std.debug: handle some possible errors and resolve low-hanging TODOs
ttyconf.setColor(stderr, .Dim)
just like stderr.print("{s}", .{plain.msg})
can fail, so I don't see why we wouldn't handle the former just like the latter. It's an edge case. You can always still ignore the error in your specific case if you want to.
Apart from that it solves a bunch of related TODOs and it also removes a bunch of unreachable
s in std.Progress
which is supposed to be non-fallible because now I'm confident these unreachable
s can be reached since the user can modify the std.Progress.terminal
field. It can probably fail anyway. Better safe than sorry.
Looks like I merged your PRs out of order. Sorry about that. You mind rebasing this one?
Sure! Rebased.
Now it should be up-to-date again.
aarch64-windows got stuck so I rebased once more. All other CIs already passed though.