source: update struct layout enum usage

The enum member name case was changed in
ziglang/zig@099f3c4039. This appears to
be the only change required to bring us up to compatibility with zig
0.12.0-dev.3561+f45ba7d0c.
This commit is contained in:
2024-04-07 14:08:49 -07:00
parent 89360ac197
commit d513aa4eaf
2 changed files with 5 additions and 5 deletions

View File

@@ -446,21 +446,21 @@ pub fn CommandBuilder(comptime UserContext: type) type {
} }
_ = @Type(.{ .Struct = .{ _ = @Type(.{ .Struct = .{
.layout = .Auto, .layout = .auto,
.fields = tag_fields, .fields = tag_fields,
.decls = &.{}, .decls = &.{},
.is_tuple = false, .is_tuple = false,
} }); } });
_ = @Type(.{ .Struct = .{ _ = @Type(.{ .Struct = .{
.layout = .Auto, .layout = .auto,
.fields = env_var_fields, .fields = env_var_fields,
.decls = &.{}, .decls = &.{},
.is_tuple = false, .is_tuple = false,
} }); } });
return @Type(.{ .Struct = .{ return @Type(.{ .Struct = .{
.layout = .Auto, .layout = .auto,
.fields = fields, .fields = fields,
.decls = &.{}, .decls = &.{},
.is_tuple = false, .is_tuple = false,
@@ -519,7 +519,7 @@ pub fn CommandBuilder(comptime UserContext: type) type {
} }
return @Type(.{ .Struct = .{ return @Type(.{ .Struct = .{
.layout = .Auto, .layout = .auto,
.fields = fields, .fields = fields,
.decls = &.{}, .decls = &.{},
.is_tuple = false, .is_tuple = false,

View File

@@ -265,7 +265,7 @@ pub const TupleBuilder = struct {
} }
return @Type(.{ .Struct = .{ return @Type(.{ .Struct = .{
.layout = .Auto, .layout = .auto,
.fields = &fields, .fields = &fields,
.decls = &.{}, .decls = &.{},
.is_tuple = true, .is_tuple = true,