From aac2d6b56f32134ea32fb3d984e3fcdfddd8aaf6 Mon Sep 17 00:00:00 2001 From: r00ster91 Date: Tue, 13 Dec 2022 22:30:06 +0100 Subject: std.builtin: rename Type.UnionField and Type.StructField's field_type to type --- test/behavior/bitcast.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/behavior/bitcast.zig') diff --git a/test/behavior/bitcast.zig b/test/behavior/bitcast.zig index 73b20f3568..8e0bf4ec32 100644 --- a/test/behavior/bitcast.zig +++ b/test/behavior/bitcast.zig @@ -358,7 +358,7 @@ test "comptime @bitCast packed struct to int and back" { const rt_cast = @bitCast(S, i); const ct_cast = comptime @bitCast(S, @as(Int, 0)); inline for (@typeInfo(S).Struct.fields) |field| { - if (@typeInfo(field.field_type) == .Vector) + if (@typeInfo(field.type) == .Vector) continue; //TODO: https://github.com/ziglang/zig/issues/13201 try expectEqual(@field(rt_cast, field.name), @field(ct_cast, field.name)); -- cgit v1.2.3