air: compare and print nested types without recursion

This commit is contained in:
dev committed 2026-10-09 20:09:00 +03:00
1 parent d0fcc3d473
commit 53030efcea
7 files changed
+180 -67

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ pub const Context = struct {
pub fn typeName(c: *Context, t: air.Type) std.mem.Allocator.Error![]const u8 {
var w: std.Io.Writer.Allocating = .init(c.arena);
air.print.printType(c.module, t, &w.writer) catch return error.OutOfMemory;
air.print.printType(c.arena, c.module, t, &w.writer) catch return error.OutOfMemory;
return w.written();
}
};