From 9158d3b2819b9fd3d93922f2522162a0ece53f5a Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 22 Dec 2025 15:51:04 -0800 Subject: [PATCH] std: remove ability to override Io.File.Permissions This is causing another compiler dependency loop. I'll tackle these overrides separately. --- lib/std/Io/File.zig | 4 +--- lib/std/std.zig | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/std/Io/File.zig b/lib/std/Io/File.zig index 804b0c91558ab26b8ce8d72ec2f4e42c90640a70..30cda7a74cbad11acb3f22952a08ba5e18c249af 100644 --- a/lib/std/Io/File.zig +++ b/lib/std/Io/File.zig @@ -389,9 +389,7 @@ pub fn setOwner(file: File, io: Io, owner: ?Uid, group: ?Gid) SetOwnerError!void /// Cross-platform representation of permissions on a file. /// /// On POSIX systems this corresponds to "mode" and on Windows this corresponds to "attributes". -/// -/// Overridable via `std.options`. -pub const Permissions = std.io_options.FilePermissions orelse if (is_windows) enum(std.os.windows.DWORD) { +pub const Permissions = if (is_windows) enum(std.os.windows.DWORD) { default_file = 0, _, diff --git a/lib/std/std.zig b/lib/std/std.zig index 46f6415d09ea95e695747f43fd61d3e92251e9ce..dccaffb75fb71e68d70b06f16afc577e51ba3650 100644 --- a/lib/std/std.zig +++ b/lib/std/std.zig @@ -190,8 +190,6 @@ pub const Options = struct { }; pub const IoOptions = struct { - /// Overrides `std.Io.File.Permissions`. - FilePermissions: ?type = null, debug_threaded_io: ?*Io.Threaded = Io.Threaded.global_single_threaded, }; -- 2.54.0