std.meta: remove TagType (deprecated in 0.9)
Followup to 902df103c6.
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
@@ -711,8 +711,6 @@ test "std.meta.DeclEnum" {
|
||||
try expectEqualEnum(enum { a, b, c }, DeclEnum(C));
|
||||
}
|
||||
|
||||
pub const TagType = @compileError("deprecated; use Tag");
|
||||
|
||||
pub fn Tag(comptime T: type) type {
|
||||
return switch (@typeInfo(T)) {
|
||||
.Enum => |info| info.tag_type,
|
||||
|
||||
Reference in New Issue
Block a user