diff options
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 1786e38d4b..96162632b9 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -802,12 +802,6 @@ static AstNode *ast_parse_fn_proto(ParseContext *pc) { res->data.fn_proto.auto_err_set = exmark != nullptr; res->data.fn_proto.return_type = return_type; - // It seems that the Zig compiler expects varargs to be the - // last parameter in the decl list. This is not encoded in - // the grammar, which allows varargs anywhere in the decl. - // Since varargs is gonna be removed at some point, I'm not - // gonna encode this "varargs is always last" rule in the - // grammar, and just enforce it here, until varargs is removed. for (size_t i = 0; i < params.length; i++) { AstNode *param_decl = params.at(i); assert(param_decl->type == NodeTypeParamDecl); |
