authorgravatar for bratishkaerik@getgoogleoff.meEric Joldasov <bratishkaerik@getgoogleoff.me> 2023-06-05 00:17:09+06:00
committergravatar for bratishkaerik@getgoogleoff.meEric Joldasov <bratishkaerik@getgoogleoff.me> 2023-06-13 23:46:58+06:00
log4936453d56a565c79535261bd3ee8fe35a3864fb
tree058f848d4cdc376ca728f4b35d3a3f199bef6e73
parent4d5fb62a82065e84c6df6bb1bf911c561cdd51e0
signaturelock-open Commit is signed but in an unrecognized format.

std.builtin: remove `TypeInfo` and `Type.FnArg` (deprecated in 0.10)

Followup to d3d24874c91054a70c706fed47278c81c9ce890a. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>

2 files changed, 1 insertions(+), 4 deletions(-)

lib/std/builtin.zig-3
...@@ -221,7 +221,6 @@ pub const SourceLocation = struct {...@@ -221,7 +221,6 @@ pub const SourceLocation = struct {
221};221};
222222
223pub const TypeId = std.meta.Tag(Type);223pub const TypeId = std.meta.Tag(Type);
224pub const TypeInfo = @compileError("deprecated; use Type");
225224
226/// This data structure is used by the Zig language code generation and225/// This data structure is used by the Zig language code generation and
227/// therefore must be kept in sync with the compiler implementation.226/// therefore must be kept in sync with the compiler implementation.
...@@ -388,8 +387,6 @@ pub const Type = union(enum) {...@@ -388,8 +387,6 @@ pub const Type = union(enum) {
388 decls: []const Declaration,387 decls: []const Declaration,
389 };388 };
390389
391 pub const FnArg = @compileError("deprecated; use Fn.Param");
392
393 /// This data structure is used by the Zig language code generation and390 /// This data structure is used by the Zig language code generation and
394 /// therefore must be kept in sync with the compiler implementation.391 /// therefore must be kept in sync with the compiler implementation.
395 pub const Fn = struct {392 pub const Fn = struct {
test/behavior/type_info.zig+1-1
...@@ -257,7 +257,7 @@ fn testUnion() !void {...@@ -257,7 +257,7 @@ fn testUnion() !void {
257 try expect(typeinfo_info.Union.tag_type.? == TypeId);257 try expect(typeinfo_info.Union.tag_type.? == TypeId);
258 try expect(typeinfo_info.Union.fields.len == 24);258 try expect(typeinfo_info.Union.fields.len == 24);
259 try expect(typeinfo_info.Union.fields[4].type == @TypeOf(@typeInfo(u8).Int));259 try expect(typeinfo_info.Union.fields[4].type == @TypeOf(@typeInfo(u8).Int));
260 try expect(typeinfo_info.Union.decls.len == 22);260 try expect(typeinfo_info.Union.decls.len == 21);
261261
262 const TestNoTagUnion = union {262 const TestNoTagUnion = union {
263 Foo: void,263 Foo: void,