Commit 362c87f1aa

Tadeo Kondrak <me@tadeo.ca>
2020-09-29 21:50:43
Update std.meta.ArgsTuple for alignment in StructField/UnionField
1 parent ec8f077
Changed files (1)
lib
lib/std/meta.zig
@@ -854,6 +854,7 @@ pub fn ArgsTuple(comptime Function: type) type {
             .field_type = arg.arg_type.?,
             .default_value = @as(?(arg.arg_type.?), null),
             .is_comptime = false,
+            .alignment = @alignOf(arg.arg_type.?),
         };
     }