aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/resinator/errors.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-06 17:23:07 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:07 -0800
commit3204fb756980c19b7a95534acdd7a1bba837fbc3 (patch)
tree45b5525ead2923de83ea85eacca351da64d55c46 /lib/compiler/resinator/errors.zig
parent1b1fb7fab623e40f4ddc24d7b5ef7e48949e8a17 (diff)
downloadzig-3204fb756980c19b7a95534acdd7a1bba837fbc3.tar.gz
zig-3204fb756980c19b7a95534acdd7a1bba837fbc3.zip
update all occurrences of std.fs.File to std.Io.File
Diffstat (limited to 'lib/compiler/resinator/errors.zig')
-rw-r--r--lib/compiler/resinator/errors.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/compiler/resinator/errors.zig b/lib/compiler/resinator/errors.zig
index 8509aa610f..61fd00e683 100644
--- a/lib/compiler/resinator/errors.zig
+++ b/lib/compiler/resinator/errors.zig
@@ -169,9 +169,9 @@ pub const ErrorDetails = struct {
filename_string_index: FilenameStringIndex,
pub const FilenameStringIndex = std.meta.Int(.unsigned, 32 - @bitSizeOf(FileOpenErrorEnum));
- pub const FileOpenErrorEnum = std.meta.FieldEnum(std.fs.File.OpenError || std.fs.File.StatError);
+ pub const FileOpenErrorEnum = std.meta.FieldEnum(Io.File.OpenError || Io.File.StatError);
- pub fn enumFromError(err: (std.fs.File.OpenError || std.fs.File.StatError)) FileOpenErrorEnum {
+ pub fn enumFromError(err: (Io.File.OpenError || Io.File.StatError)) FileOpenErrorEnum {
return switch (err) {
inline else => |e| @field(ErrorDetails.FileOpenError.FileOpenErrorEnum, @errorName(e)),
};
@@ -1094,8 +1094,8 @@ const CorrespondingLines = struct {
last_byte: u8 = 0,
at_eof: bool = false,
span: SourceMappings.CorrespondingSpan,
- file: std.fs.File,
- file_reader: std.fs.File.Reader,
+ file: Io.File,
+ file_reader: Io.File.Reader,
code_page: SupportedCodePage,
pub fn init(