| ... | ... | @@ -1731,7 +1731,7 @@ static Error resolve_union_alignment(CodeGen *g, ZigType *union_type) { |
| 1731 | 1731 | union_type->data.unionation.reported_infinite_err = true; |
| 1732 | 1732 | union_type->data.unionation.resolve_status = ResolveStatusInvalid; |
| 1733 | 1733 | ErrorMsg *msg = add_node_error(g, decl_node, |
| 1734 | | buf_sprintf("union '%s' depends on its own alignment", buf_ptr(&union_type->name))); |
| 1734 | buf_sprintf("union '%s' contains itself", buf_ptr(&union_type->name))); |
| 1735 | 1735 | emit_error_notes_for_ref_stack(g, msg); |
| 1736 | 1736 | } |
| 1737 | 1737 | return ErrorSemanticAnalyzeFail; |
| ... | ... | @@ -2225,7 +2225,7 @@ static Error resolve_struct_alignment(CodeGen *g, ZigType *struct_type) { |
| 2225 | 2225 | if (struct_type->data.structure.resolve_status != ResolveStatusInvalid) { |
| 2226 | 2226 | struct_type->data.structure.resolve_status = ResolveStatusInvalid; |
| 2227 | 2227 | ErrorMsg *msg = add_node_error(g, decl_node, |
| 2228 | | buf_sprintf("struct '%s' depends on its own alignment", buf_ptr(&struct_type->name))); |
| 2228 | buf_sprintf("struct '%s' contains itself", buf_ptr(&struct_type->name))); |
| 2229 | 2229 | emit_error_notes_for_ref_stack(g, msg); |
| 2230 | 2230 | } |
| 2231 | 2231 | return ErrorSemanticAnalyzeFail; |