File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed
Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments