Skip to content

Commit 669e6ed

Browse files
committed
update to Zig 0.16.0-dev.1458+755a3d957
1 parent 36fc805 commit 669e6ed

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

DiffMatchPatch.zig

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2944,13 +2944,12 @@ fn CheckAllAllocationFailuresTuples(comptime TestFn: type) struct {
29442944
}
29452945

29462946
// remove the first tuple field (`Allocator`)
2947-
var extra_args_tuple_info = @typeInfo(ArgsTuple);
2948-
var extra_args_fields = extra_args_tuple_info.@"struct".fields[1..].*;
2949-
for (&extra_args_fields, 0..) |*extra_field, i| {
2950-
extra_field.name = fn_args_fields[i].name;
2947+
var extra_args_tuple_info = @typeInfo(ArgsTuple).@"struct";
2948+
var field_types: [extra_args_tuple_info.fields.len - 1]type = undefined;
2949+
for (&field_types, extra_args_tuple_info.fields[1..]) |*ty, field| {
2950+
ty.* = field.type;
29512951
}
2952-
extra_args_tuple_info.@"struct".fields = &extra_args_fields;
2953-
const ExtraArgsTuple = @Type(extra_args_tuple_info);
2952+
const ExtraArgsTuple = @Tuple(&field_types);
29542953

29552954
return .{
29562955
.ArgsTuple = ArgsTuple,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Currently implemented:
1111
## Installation
1212

1313
> [!NOTE]
14-
> The minimum supported Zig version is `0.16.0-dev.1204+389368392`.
14+
> The minimum supported Zig version is `0.16.0-dev.1458+755a3d957`.
1515
> Consider using previous commits when targeting older Zig version like `0.15.2`.
1616
1717
```bash

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = .diffz,
33
.version = "0.0.1",
4-
.minimum_zig_version = "0.16.0-dev.1204+389368392",
4+
.minimum_zig_version = "0.16.0-dev.1458+755a3d957",
55
.paths = .{
66
"DiffMatchPatch.zig",
77
"LICENSE",

0 commit comments

Comments
 (0)