diff options
author | Jeremy Evans <code@jeremyevans.net> | 2023-12-08 14:30:39 -0800 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2024-01-24 18:25:55 -0800 |
commit | 4f77d8d3289ece0e3537d9273a5c745120bff59a (patch) | |
tree | ab56abca15cc1ad9a6277c6ff45c05d3dc226f4d /parse.y | |
parent | 0f90a24a816bec438edb272fb83f334484dfc285 (diff) |
Do not use ruby2_keywords for ... argument forwarding
This allows ... argument forwarding to benefit from Allocationless
Anonymous Splat Forwarding, allowing the `f` call below to not
allocate an array or a hash.
```ruby
a = [1]
kw = {b: 2}
def c(a, b:)
end
def f(...)
c(...)
end
f(*a, **kw)
```
This temporarily skips prism locals tests until prism is changed
to use * and ** for ..., instead of using ruby2_keywords.
Ignore failures in rbs bundled gems tests, since they fail due
to this change.
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1627,7 +1627,6 @@ static void numparam_pop(struct parser_params *p, NODE *prev_inner); #else #define arg_FWD_BLOCK idFWD_BLOCK #endif -#define FORWARD_ARGS_WITH_RUBY2_KEYWORDS #define RE_OPTION_ONCE (1<<16) #define RE_OPTION_ENCODING_SHIFT 8 |