diff --git a/flake.lock b/flake.lock index 55d5bcb..9ccbeff 100644 --- a/flake.lock +++ b/flake.lock @@ -109,11 +109,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1710331756, - "narHash": "sha256-ZYFHWEHupxj/e9jOcjUOJLVTuvMR4fYMV53F0zu8Rfs=", + "lastModified": 1711109355, + "narHash": "sha256-VZPO5mq2di5yjHkkY9ZGEIZaX7EtdusSkxICBAtHAec=", "owner": "mitchellh", "repo": "zig-overlay", - "rev": "510a1f01f1ddc06df0f2b888f12ad1aa9a65cc31", + "rev": "5fe52bdf2c213e47712d93c9ce12dfed4c4cef86", "type": "github" }, "original": { diff --git a/src/block.zig b/src/block.zig index cfffc4b..46b3ca9 100644 --- a/src/block.zig +++ b/src/block.zig @@ -122,7 +122,6 @@ pub fn Block( return @Type(.{ .Fn = .{ .calling_convention = .C, - .alignment = @typeInfo(fn () callconv(.C) void).Fn.alignment, .is_generic = false, .is_var_args = false, .return_type = Return, diff --git a/src/msg_send.zig b/src/msg_send.zig index f4be408..e146993 100644 --- a/src/msg_send.zig +++ b/src/msg_send.zig @@ -204,14 +204,9 @@ fn MsgSendFn( break :params &acc; }; - // Copy the alignment of a normal function type so equality works - // (mainly for tests, I don't think this has any consequence otherwise) - const alignment = @typeInfo(fn () callconv(.C) void).Fn.alignment; - return @Type(.{ .Fn = .{ .calling_convention = .C, - .alignment = alignment, .is_generic = false, .is_var_args = false, .return_type = Return,