From 9f0b9b8da1a111d16eb8d1254212ff98a8b4be08 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Tue, 23 Mar 2021 00:19:29 +0100 Subject: 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. --- src/value.zig | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/value.zig') 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, -- cgit v1.2.3