aboutsummaryrefslogtreecommitdiff
path: root/src/parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.c')
-rw-r--r--src/parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/parser.c b/src/parser.c
index fb8d5d91b..403fcdda2 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -2746,11 +2746,11 @@ AstNode *parse_type_or_ident(AstFile *f) {
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
}
is_packed = true;
- // } else if (str_eq(tag.string, str_lit("ordered"))) {
- // if (is_ordered) {
- // syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
- // }
- // is_ordered = true;
+ } else if (str_eq(tag.string, str_lit("ordered"))) {
+ if (is_ordered) {
+ syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));
+ }
+ is_ordered = true;
} else if (str_eq(tag.string, str_lit("align"))) {
if (align) {
syntax_error(tag, "Duplicate struct tag `#%.*s`", LIT(tag.string));