aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-03-23 00:19:29 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2021-03-23 00:23:41 +0100
commit9f0b9b8da1a111d16eb8d1254212ff98a8b4be08 (patch)
tree2d1b8a5c3355de2a2f116bd3d23ee69716c3c877 /src/value.zig
parent240b15381dd560cac004c5e84783fb93f03c0697 (diff)
downloadzig-9f0b9b8da1a111d16eb8d1254212ff98a8b4be08.tar.gz
zig-9f0b9b8da1a111d16eb8d1254212ff98a8b4be08.zip
stage2: remove all async related code
The current plan is to avoid using async and related features in the stage2 compiler so that we can bootstrap before implementing them. Having this untested and incomplete code in the codebase increases friction while working on stage2, in particular when preforming larger refactors such as the current zir memory layout rework. Therefore remove all async related code, leaving only error messages in astgen.
Diffstat (limited to 'src/value.zig')
-rw-r--r--src/value.zig18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/value.zig b/src/value.zig
index 194cd44f10..5d5ba0934a 100644
--- a/src/value.zig
+++ b/src/value.zig
@@ -62,7 +62,6 @@ pub const Value = extern union {
single_const_pointer_to_comptime_int_type,
const_slice_u8_type,
enum_literal_type,
- anyframe_type,
undef,
zero,
@@ -153,7 +152,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.undef,
.zero,
.one,
@@ -308,7 +306,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.undef,
.zero,
.one,
@@ -462,7 +459,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type => return out_stream.writeAll("*const comptime_int"),
.const_slice_u8_type => return out_stream.writeAll("[]const u8"),
.enum_literal_type => return out_stream.writeAll("@Type(.EnumLiteral)"),
- .anyframe_type => return out_stream.writeAll("anyframe"),
// TODO this should print `NAME{}`
.empty_struct_value => return out_stream.writeAll("struct {}{}"),
@@ -590,7 +586,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type => Type.initTag(.single_const_pointer_to_comptime_int),
.const_slice_u8_type => Type.initTag(.const_slice_u8),
.enum_literal_type => Type.initTag(.enum_literal),
- .anyframe_type => Type.initTag(.@"anyframe"),
.int_type => {
const payload = self.castTag(.int_type).?.data;
@@ -687,7 +682,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.null_value,
.function,
.extern_fn,
@@ -774,7 +768,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.null_value,
.function,
.extern_fn,
@@ -861,7 +854,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.null_value,
.function,
.extern_fn,
@@ -975,7 +967,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.null_value,
.function,
.extern_fn,
@@ -1067,7 +1058,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.null_value,
.function,
.extern_fn,
@@ -1224,7 +1214,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.bool_true,
.bool_false,
.null_value,
@@ -1308,7 +1297,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.null_value,
.function,
.extern_fn,
@@ -1460,7 +1448,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.ty,
=> {
// Directly return Type.hash, toType can only fail for .int_type and .error_set.
@@ -1618,7 +1605,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.zero,
.one,
.bool_true,
@@ -1705,7 +1691,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.zero,
.one,
.bool_true,
@@ -1809,7 +1794,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.zero,
.one,
.empty_array,
@@ -1891,7 +1875,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.zero,
.one,
.null_value,
@@ -1993,7 +1976,6 @@ pub const Value = extern union {
.single_const_pointer_to_comptime_int_type,
.const_slice_u8_type,
.enum_literal_type,
- .anyframe_type,
.error_set,
=> true,