update to latest zig version

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-12-30 18:30:07 -07:00 committed by Emi Gutekanst
parent e7d538bf7c
commit b3139fbb0a
4 changed files with 31 additions and 32 deletions

View file

@ -747,8 +747,8 @@ fn ModuleTuple(comptime tuple: anytype) type {
.name = std.fmt.bufPrintZ(&num_buf, "{d}", .{tuple_fields.len}) catch unreachable,
.type = type,
.default_value = &elem,
.is_comptime = false,
.alignment = if (@sizeOf(elem) > 0) @alignOf(elem) else 0,
.is_comptime = true,
.alignment = 0,
}};
} else if (@typeInfo(@TypeOf(elem)) == .@"struct" and @typeInfo(@TypeOf(elem)).@"struct".is_tuple) {
// Nested tuple
@ -762,8 +762,8 @@ fn ModuleTuple(comptime tuple: anytype) type {
.name = std.fmt.bufPrintZ(&num_buf, "{d}", .{tuple_fields.len}) catch unreachable,
.type = type,
.default_value = &nested,
.is_comptime = false,
.alignment = if (@sizeOf(nested) > 0) @alignOf(nested) else 0,
.is_comptime = true,
.alignment = 0,
}};
}
} else {

View file

@ -34,12 +34,11 @@ pub fn add(
args: anytype,
note: ?ErrorMsg.Note,
) !void {
const err_msg = .{
try self.list.append(self.arena.allocator(), .{
.loc = loc,
.msg = try std.fmt.allocPrint(self.arena.allocator(), comptime format, args),
.note = note,
};
try self.list.append(self.arena.allocator(), err_msg);
});
}
pub fn createNote(