@@ -1230,7 +1230,7 @@ gb_internal Ast *ast_dynamic_array_type(AstFile *f, Token token, Ast *elem) {
12301230}
12311231
12321232gb_internal Ast *ast_struct_type (AstFile *f, Token token, Slice<Ast *> fields, isize field_count,
1233- Ast *polymorphic_params, bool is_packed, bool is_raw_union, bool is_no_copy, bool is_all_or_none,
1233+ Ast *polymorphic_params, bool is_packed, bool is_raw_union, bool is_all_or_none,
12341234 Ast *align, Ast *min_field_align, Ast *max_field_align,
12351235 Token where_token, Array<Ast *> const &where_clauses) {
12361236 Ast *result = alloc_ast_node (f, Ast_StructType);
@@ -1240,7 +1240,6 @@ gb_internal Ast *ast_struct_type(AstFile *f, Token token, Slice<Ast *> fields, i
12401240 result->StructType .polymorphic_params = polymorphic_params;
12411241 result->StructType .is_packed = is_packed;
12421242 result->StructType .is_raw_union = is_raw_union;
1243- result->StructType .is_no_copy = is_no_copy;
12441243 result->StructType .is_all_or_none = is_all_or_none;
12451244 result->StructType .align = align;
12461245 result->StructType .min_field_align = min_field_align;
@@ -2776,7 +2775,6 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
27762775 bool is_packed = false ;
27772776 bool is_all_or_none = false ;
27782777 bool is_raw_union = false ;
2779- bool no_copy = false ;
27802778 Ast *align = nullptr ;
27812779 Ast *min_field_align = nullptr ;
27822780 Ast *max_field_align = nullptr ;
@@ -2863,11 +2861,6 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
28632861 syntax_error (tag, " Duplicate struct tag '#%.*s'" , LIT (tag.string ));
28642862 }
28652863 is_raw_union = true ;
2866- } else if (tag.string == " no_copy" ) {
2867- if (no_copy) {
2868- syntax_error (tag, " Duplicate struct tag '#%.*s'" , LIT (tag.string ));
2869- }
2870- no_copy = true ;
28712864 } else {
28722865 syntax_error (tag, " Invalid struct tag '#%.*s'" , LIT (tag.string ));
28732866 }
@@ -2913,7 +2906,7 @@ gb_internal Ast *parse_operand(AstFile *f, bool lhs) {
29132906 parser_check_polymorphic_record_parameters (f, polymorphic_params);
29142907
29152908 return ast_struct_type (f, token, decls, name_count,
2916- polymorphic_params, is_packed, is_raw_union, no_copy, is_all_or_none,
2909+ polymorphic_params, is_packed, is_raw_union, is_all_or_none,
29172910 align, min_field_align, max_field_align,
29182911 where_token, where_clauses);
29192912 } break ;
0 commit comments