Upgrade Zig (#2656)

* Upgrade Zig

* Don't add `d` files in github actions

* Revert "Don't add `d` files in github actions"

This reverts commit 446e2dd674.

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
Jarred Sumner
2023-04-14 03:58:38 -07:00
committed by GitHub
parent 6c69c2b364
commit f6a4516d66
13 changed files with 30 additions and 28 deletions

View File

@@ -24,7 +24,7 @@ pub inline fn contains(self: string, str: string) bool {
}
pub fn toUTF16Literal(comptime str: []const u8) []const u16 {
comptime {
return comptime brk: {
comptime var output: [str.len]u16 = undefined;
for (str, 0..) |c, i| {
@@ -34,9 +34,8 @@ pub fn toUTF16Literal(comptime str: []const u8) []const u16 {
const Static = struct {
pub const literal: []const u16 = output[0..];
};
return Static.literal;
}
break :brk Static.literal;
};
}
const OptionalUsize = std.meta.Int(.unsigned, @bitSizeOf(usize) - 1);