aboutsummaryrefslogtreecommitdiff
path: root/src/type.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-05-20 15:50:56 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:53 -0700
commitdfb3521160eb4397b7482de68796d370230a8d11 (patch)
treef40c8351fec5f2a71e76d402a4d37fdc57f5858e /src/type.zig
parent115c08956278b79c848e04c2f4eefca40e6cd8a3 (diff)
downloadzig-dfb3521160eb4397b7482de68796d370230a8d11.tar.gz
zig-dfb3521160eb4397b7482de68796d370230a8d11.zip
compiler: remove var_args_param_type from SimpleType
This is now represented instead by a special `InternPool.Index.Tag` that has no corresponding type/value.
Diffstat (limited to 'src/type.zig')
-rw-r--r--src/type.zig10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/type.zig b/src/type.zig
index d0cf054845..d1ee185be5 100644
--- a/src/type.zig
+++ b/src/type.zig
@@ -105,7 +105,6 @@ pub const Type = struct {
.type_info => .Union,
.generic_poison => return error.GenericPoison,
- .var_args_param => unreachable,
},
// values, not types
@@ -803,7 +802,6 @@ pub const Type = struct {
=> false,
.generic_poison => unreachable,
- .var_args_param => unreachable,
},
.struct_type => |struct_type| {
const struct_obj = mod.structPtrUnwrap(struct_type.index) orelse {
@@ -952,8 +950,6 @@ pub const Type = struct {
.type_info,
.generic_poison,
=> false,
-
- .var_args_param => unreachable,
},
.struct_type => |struct_type| {
const struct_obj = mod.structPtrUnwrap(struct_type.index) orelse {
@@ -1198,7 +1194,6 @@ pub const Type = struct {
.noreturn => unreachable,
.generic_poison => unreachable,
- .var_args_param => unreachable,
},
.struct_type => |struct_type| {
const struct_obj = mod.structPtrUnwrap(struct_type.index) orelse
@@ -1610,7 +1605,6 @@ pub const Type = struct {
.type_info => unreachable,
.noreturn => unreachable,
.generic_poison => unreachable,
- .var_args_param => unreachable,
},
.struct_type => |struct_type| switch (ty.containerLayout(mod)) {
.Packed => {
@@ -1841,7 +1835,6 @@ pub const Type = struct {
.undefined => unreachable,
.enum_literal => unreachable,
.generic_poison => unreachable,
- .var_args_param => unreachable,
.atomic_order => unreachable, // missing call to resolveTypeFields
.atomic_rmw_op => unreachable, // missing call to resolveTypeFields
@@ -2717,7 +2710,6 @@ pub const Type = struct {
.undefined => return Value.undef,
.generic_poison => unreachable,
- .var_args_param => unreachable,
},
.struct_type => |struct_type| {
if (mod.structPtrUnwrap(struct_type.index)) |s| {
@@ -2896,8 +2888,6 @@ pub const Type = struct {
.enum_literal,
.type_info,
=> true,
-
- .var_args_param => unreachable,
},
.struct_type => |struct_type| {
// A struct with no fields is not comptime-only.