air: compare and print nested types without recursion
This commit is contained in:
1 parent
d0fcc3d473
commit
53030efcea
7 files changed
+180
-67
No files matched your search
+1
-1
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user