diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-27 21:20:18 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-08-29 17:14:26 -0700 |
| commit | 79f267f6b9e7f80a6fed3b1019f9de942841c3be (patch) | |
| tree | 29a243d4aa85d8295cc06608bde59333ebdb843c /src/Compilation.zig | |
| parent | 558bea2a76179fcc00779fdd326e5a866956fc9b (diff) | |
| download | zig-79f267f6b9e7f80a6fed3b1019f9de942841c3be.tar.gz zig-79f267f6b9e7f80a6fed3b1019f9de942841c3be.zip | |
std.Io: delete GenericReader
and delete deprecated alias std.io
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 6c917b79c4..12749cd8b5 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -12,7 +12,7 @@ const ThreadPool = std.Thread.Pool; const WaitGroup = std.Thread.WaitGroup; const ErrorBundle = std.zig.ErrorBundle; const fatal = std.process.fatal; -const Writer = std.io.Writer; +const Writer = std.Io.Writer; const Value = @import("Value.zig"); const Type = @import("Type.zig"); @@ -468,7 +468,7 @@ pub const Path = struct { const Formatter = struct { p: Path, comp: *Compilation, - pub fn format(f: Formatter, w: *std.io.Writer) std.io.Writer.Error!void { + pub fn format(f: Formatter, w: *Writer) Writer.Error!void { const root_path: []const u8 = switch (f.p.root) { .zig_lib => f.comp.dirs.zig_lib.path orelse ".", .global_cache => f.comp.dirs.global_cache.path orelse ".", @@ -1883,7 +1883,7 @@ pub const CreateDiagnostic = union(enum) { sub: []const u8, err: (fs.Dir.MakeError || fs.Dir.OpenError || fs.Dir.StatFileError), }; - pub fn format(diag: CreateDiagnostic, w: *std.Io.Writer) std.Io.Writer.Error!void { + pub fn format(diag: CreateDiagnostic, w: *Writer) Writer.Error!void { switch (diag) { .export_table_import_table_conflict => try w.writeAll("'--import-table' and '--export-table' cannot be used together"), .emit_h_without_zcu => try w.writeAll("cannot emit C header with no Zig source files"), @@ -6457,7 +6457,7 @@ fn updateWin32Resource(comp: *Compilation, win32_resource: *Win32Resource, win32 // In .rc files, a " within a quoted string is escaped as "" const fmtRcEscape = struct { - fn formatRcEscape(bytes: []const u8, writer: *std.io.Writer) std.io.Writer.Error!void { + fn formatRcEscape(bytes: []const u8, writer: *Writer) Writer.Error!void { for (bytes) |byte| switch (byte) { '"' => try writer.writeAll("\"\""), '\\' => try writer.writeAll("\\\\"), |
