diff options
| author | Jonathan Marler <johnnymarler@gmail.com> | 2022-02-01 11:42:41 -0700 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-03-08 20:38:12 +0200 |
| commit | d805adddd6744e0d55263c02d2a03e27ad0c7d68 (patch) | |
| tree | 430dca3714090db578e6b34ed497ff2b3baee783 /lib/std/json.zig | |
| parent | 404f5d617982e2323c6ab6b878c29880af3d64c2 (diff) | |
| download | zig-d805adddd6744e0d55263c02d2a03e27ad0c7d68.tar.gz zig-d805adddd6744e0d55263c02d2a03e27ad0c7d68.zip | |
deprecated TypeInfo in favor of Type
Co-authored-by: Veikka Tuominen <git@vexu.eu>
Diffstat (limited to 'lib/std/json.zig')
| -rw-r--r-- | lib/std/json.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/json.zig b/lib/std/json.zig index e9fde26bec..e495d0d0b9 100644 --- a/lib/std/json.zig +++ b/lib/std/json.zig @@ -138,11 +138,10 @@ const AggregateContainerType = enum(u1) { object, array }; fn AggregateContainerStack(comptime n: usize) type { return struct { const Self = @This(); - const TypeInfo = std.builtin.TypeInfo; const element_bitcount = 8 * @sizeOf(usize); const element_count = n / element_bitcount; - const ElementType = @Type(TypeInfo{ .Int = TypeInfo.Int{ .signedness = .unsigned, .bits = element_bitcount } }); + const ElementType = @Type(.{ .Int = .{ .signedness = .unsigned, .bits = element_bitcount } }); const ElementShiftAmountType = std.math.Log2Int(ElementType); comptime { |
