summaryrefslogtreecommitdiff
path: root/src/crash.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 12:14:58 -0300
committerGabriel Schneider <[email protected]>2026-11-06 14:56:36 -0300
commit77671575bd2f481651ea54e956ac5c7da8d63710 (patch)
treedef07749c63bdc279e0119d58101aa1399dd5cf3 /src/crash.zig
parentb5bb5e8ccf71a5755dde95f04440ee9c6aaa18da (diff)
downloadpardes-77671575bd2f481651ea54e956ac5c7da8d63710.tar.gz
pardes-77671575bd2f481651ea54e956ac5c7da8d63710.zip
idioms #1, std.fs's deprecated aliases in the hosts: std.fs.path and std.fs.max_path_bytes are std.Io.Dir.path and std.Io.Dir.max_path_bytes in 0.17, so the hosts name them there
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/crash.zig')
-rw-r--r--src/crash.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crash.zig b/src/crash.zig
index 998cc982..26e810ac 100644
--- a/src/crash.zig
+++ b/src/crash.zig
@@ -201,12 +201,12 @@ test "a crash record names the build, appends, and carries the panic message" {
const gpa = std.testing.allocator;
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();
- var base_buf: [std.fs.max_path_bytes]u8 = undefined;
+ var base_buf: [std.Io.Dir.max_path_bytes]u8 = undefined;
const base_len = try tmp.dir.realPath(io, &base_buf);
// A directory that does NOT exist yet, which is the case that matters: the
// user who has never written an init file is the likeliest reporter.
- const config_dir = try std.fs.path.join(gpa, &.{ base_buf[0..base_len], "pardes" });
+ const config_dir = try std.Io.Dir.path.join(gpa, &.{ base_buf[0..base_len], "pardes" });
defer gpa.free(config_dir);
const saved_len = dir_len;
defer dir_len = saved_len;
@@ -219,7 +219,7 @@ test "a crash record names the build, appends, and carries the panic message" {
recording.store(false, .seq_cst);
record("second boom");
- const path = try std.fs.path.join(gpa, &.{ config_dir, name });
+ const path = try std.Io.Dir.path.join(gpa, &.{ config_dir, name });
defer gpa.free(path);
const bytes = try std.Io.Dir.cwd().readFileAlloc(io, path, gpa, .limited(1 << 20));
defer gpa.free(bytes);