Commit ec8f0777f2

Tadeo Kondrak <me@tadeo.ca>
2020-09-29 18:37:24
Update std.meta.Tuple for alignment in StructField/UnionField
1 parent e187ac0
Changed files (1)
lib
lib/std/meta.zig
@@ -884,6 +884,7 @@ pub fn Tuple(comptime types: []const type) type {
             .field_type = T,
             .default_value = @as(?T, null),
             .is_comptime = false,
+            .alignment = @alignOf(T),
         };
     }