Update std.meta.ArgsTuple for alignment in StructField/UnionField

This commit is contained in:
Tadeo Kondrak
2020-09-29 13:50:43 -06:00
parent ec8f0777f2
commit 362c87f1aa

View File

@@ -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.?),
};
}