Commit 8b8e57c670
Changed files (2)
lib
std
lib/std/meta/trailer_flags.zig
@@ -24,10 +24,7 @@ pub fn TrailerFlags(comptime Fields: type) type {
fields[i] = Type.StructField{
.name = struct_field.name,
.field_type = ?struct_field.field_type,
- .default_value = @as(
- ??struct_field.field_type,
- @as(?struct_field.field_type, null),
- ),
+ .default_value = &@as(?struct_field.field_type, null),
.is_comptime = false,
.alignment = @alignOf(?struct_field.field_type),
};
lib/std/meta.zig
@@ -10,6 +10,10 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags;
const Type = std.builtin.Type;
+test "std.meta.TrailerFlags" {
+ _ = TrailerFlags;
+}
+
pub fn tagName(v: anytype) []const u8 {
const T = @TypeOf(v);
switch (@typeInfo(T)) {