diff --git a/flake.lock b/flake.lock index 2f2ffe2..55d5bcb 100644 --- a/flake.lock +++ b/flake.lock @@ -109,11 +109,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1704500574, - "narHash": "sha256-Ockm1D5QsxdVZZoD0Yf5Kg4FupbVnk3X0RLkc6geRIE=", + "lastModified": 1710331756, + "narHash": "sha256-ZYFHWEHupxj/e9jOcjUOJLVTuvMR4fYMV53F0zu8Rfs=", "owner": "mitchellh", "repo": "zig-overlay", - "rev": "e056aafd8db157ff7519518a026c5ba7040522cf", + "rev": "510a1f01f1ddc06df0f2b888f12ad1aa9a65cc31", "type": "github" }, "original": { diff --git a/src/block.zig b/src/block.zig index 92eec34..cfffc4b 100644 --- a/src/block.zig +++ b/src/block.zig @@ -192,7 +192,7 @@ fn BlockContext(comptime Captures: type, comptime InvokeFn: type) type { return @Type(.{ .Struct = .{ - .layout = .Extern, + .layout = .@"extern", .fields = &fields, .decls = &.{}, .is_tuple = false, diff --git a/src/encoding.zig b/src/encoding.zig index c028576..edd247f 100644 --- a/src/encoding.zig +++ b/src/encoding.zig @@ -121,7 +121,7 @@ pub const Encoding = union(enum) { }, .structure => |s| { const struct_info = @typeInfo(s.struct_type); - assert(struct_info.Struct.layout == .Extern); + assert(struct_info.Struct.layout == .@"extern"); // Strips the fully qualified type name to leave just the // type name. Used in naming the Struct in an encoding. @@ -143,7 +143,7 @@ pub const Encoding = union(enum) { }, .@"union" => |u| { const union_info = @typeInfo(u.union_type); - assert(union_info.Union.layout == .Extern); + assert(union_info.Union.layout == .@"extern"); // Strips the fully qualified type name to leave just the // type name. Used in naming the Union in an encoding