aboutsummaryrefslogtreecommitdiff
path: root/src/Type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-30 14:50:33 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-31 12:49:18 -0700
commit150169f1e0cf08d4b76fed81fc205a63177b6e01 (patch)
treec39318b34c361a9a5a8ddaa1aae80cba1fe27f0c /src/Type.zig
parentab99dd9c5d22a3d927453081654b1f75b2521b48 (diff)
downloadzig-150169f1e0cf08d4b76fed81fc205a63177b6e01.tar.gz
zig-150169f1e0cf08d4b76fed81fc205a63177b6e01.zip
std.fmt: delete deprecated APIs
std.fmt.Formatter -> std.fmt.Alt std.fmt.format -> std.Io.Writer.print
Diffstat (limited to 'src/Type.zig')
-rw-r--r--src/Type.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Type.zig b/src/Type.zig
index d1685fe5a6..3cdd48c3f3 100644
--- a/src/Type.zig
+++ b/src/Type.zig
@@ -127,7 +127,7 @@ pub fn format(ty: Type, writer: *std.Io.Writer) !void {
@compileError("do not format types directly; use either ty.fmtDebug() or ty.fmt()");
}
-pub const Formatter = std.fmt.Formatter(Format, Format.default);
+pub const Formatter = std.fmt.Alt(Format, Format.default);
pub fn fmt(ty: Type, pt: Zcu.PerThread) Formatter {
return .{ .data = .{
@@ -145,7 +145,7 @@ const Format = struct {
}
};
-pub fn fmtDebug(ty: Type) std.fmt.Formatter(Type, dump) {
+pub fn fmtDebug(ty: Type) std.fmt.Alt(Type, dump) {
return .{ .data = ty };
}