diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-12-09 14:55:51 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-12-09 15:27:27 -0500 |
| commit | a3f6a58c7785e7958f9d0b96d54356944bf34e32 (patch) | |
| tree | 4e7ce7220eaeda3f3ee60cc10e93c4708d688639 /src/parser.cpp | |
| parent | f205d23e650019dd66120cf122ffb449267f619b (diff) | |
| download | zig-a3f6a58c7785e7958f9d0b96d54356944bf34e32.tar.gz zig-a3f6a58c7785e7958f9d0b96d54356944bf34e32.zip | |
remove var args from the language
closes #208
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); |
