all: update to std.builtin.Type.{Pointer,Array,StructField} field renames

This commit is contained in:
mlugg
2025-01-15 17:34:12 +00:00
parent 89a9cabafd
commit 9804cc8bc6
26 changed files with 117 additions and 153 deletions

View File

@@ -20,13 +20,13 @@ test "tuple declaration type info" {
try expectEqualStrings(info.fields[0].name, "0");
try expect(info.fields[0].type == u32);
try expect(@as(*const u32, @ptrCast(@alignCast(info.fields[0].default_value))).* == 1);
try expect(info.fields[0].defaultValue() == 1);
try expect(info.fields[0].is_comptime);
try expect(info.fields[0].alignment == @alignOf(u32));
try expectEqualStrings(info.fields[1].name, "1");
try expect(info.fields[1].type == []const u8);
try expect(info.fields[1].default_value == null);
try expect(info.fields[1].defaultValue() == null);
try expect(!info.fields[1].is_comptime);
try expect(info.fields[1].alignment == @alignOf([]const u8));
}