mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 03:53:20 +00:00
std.builtin: remove TypeInfo and Type.FnArg (deprecated in 0.10)
Followup to d3d24874c91054a70c706fed47278c81c9ce890a. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
parent
4d5fb62a82
commit
4936453d56
@ -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 {
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user