From 4936453d56a565c79535261bd3ee8fe35a3864fb Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Mon, 5 Jun 2023 00:17:09 +0600 Subject: [PATCH] std.builtin: remove `TypeInfo` and `Type.FnArg` (deprecated in 0.10) Followup to d3d24874c91054a70c706fed47278c81c9ce890a. Signed-off-by: Eric Joldasov --- lib/std/builtin.zig | 3 --- test/behavior/type_info.zig | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/std/builtin.zig b/lib/std/builtin.zig index ef93bb14ee14977632d1a9728bc0e6b8b1cb3b5e..b449080e864397e2ef0407619e94b6d373a3a38c 100644 --- a/lib/std/builtin.zig +++ b/lib/std/builtin.zig @@ -221,7 +221,6 @@ pub const SourceLocation = struct { }; pub const TypeId = std.meta.Tag(Type); -pub const TypeInfo = @compileError("deprecated; use Type"); /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. @@ -388,8 +387,6 @@ pub const Type = union(enum) { decls: []const Declaration, }; - pub const FnArg = @compileError("deprecated; use Fn.Param"); - /// This data structure is used by the Zig language code generation and /// therefore must be kept in sync with the compiler implementation. pub const Fn = struct { diff --git a/test/behavior/type_info.zig b/test/behavior/type_info.zig index e8199913bcdb8fa39596f7e0b73718d22cb62014..2c32b70807e8af37702c786bbfad31dc7556223f 100644 --- a/test/behavior/type_info.zig +++ b/test/behavior/type_info.zig @@ -257,7 +257,7 @@ fn testUnion() !void { try expect(typeinfo_info.Union.tag_type.? == TypeId); try expect(typeinfo_info.Union.fields.len == 24); try expect(typeinfo_info.Union.fields[4].type == @TypeOf(@typeInfo(u8).Int)); - try expect(typeinfo_info.Union.decls.len == 22); + try expect(typeinfo_info.Union.decls.len == 21); const TestNoTagUnion = union { Foo: void, -- 2.54.0