From d513aa4eaffd22f50b66669334287599fadeb4f6 Mon Sep 17 00:00:00 2001 From: torque Date: Sun, 7 Apr 2024 14:08:49 -0700 Subject: [PATCH] source: update struct layout enum usage The enum member name case was changed in ziglang/zig@099f3c4039d5702b073639ef8b55881973b71c80. This appears to be the only change required to bring us up to compatibility with zig 0.12.0-dev.3561+f45ba7d0c. --- source/command.zig | 8 ++++---- source/meta.zig | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/command.zig b/source/command.zig index c467f7b..26b5364 100644 --- a/source/command.zig +++ b/source/command.zig @@ -446,21 +446,21 @@ pub fn CommandBuilder(comptime UserContext: type) type { } _ = @Type(.{ .Struct = .{ - .layout = .Auto, + .layout = .auto, .fields = tag_fields, .decls = &.{}, .is_tuple = false, } }); _ = @Type(.{ .Struct = .{ - .layout = .Auto, + .layout = .auto, .fields = env_var_fields, .decls = &.{}, .is_tuple = false, } }); return @Type(.{ .Struct = .{ - .layout = .Auto, + .layout = .auto, .fields = fields, .decls = &.{}, .is_tuple = false, @@ -519,7 +519,7 @@ pub fn CommandBuilder(comptime UserContext: type) type { } return @Type(.{ .Struct = .{ - .layout = .Auto, + .layout = .auto, .fields = fields, .decls = &.{}, .is_tuple = false, diff --git a/source/meta.zig b/source/meta.zig index ea3afa6..314daf3 100644 --- a/source/meta.zig +++ b/source/meta.zig @@ -265,7 +265,7 @@ pub const TupleBuilder = struct { } return @Type(.{ .Struct = .{ - .layout = .Auto, + .layout = .auto, .fields = &fields, .decls = &.{}, .is_tuple = true,