update zig

This commit is contained in:
Mitchell Hashimoto 2024-03-22 11:05:40 -07:00
parent 83a52ce8e3
commit 0a89cc09da
No known key found for this signature in database
GPG key ID: 523D5DC389D273BC
3 changed files with 3 additions and 9 deletions

6
flake.lock generated
View file

@ -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": {

View file

@ -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,

View file

@ -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,