summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding/encoding.h
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2024-03-20 16:21:04 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2024-03-21 13:20:32 -0400
commit15dc3aaa311b32203d8ffb414bcf9b8e55ce5691 (patch)
treeff16db362682fc281825b3f653853dc6059478d4 /include/ruby/internal/encoding/encoding.h
parent806edd295653a64901b49928b5b14d6c815f8e74 (diff)
Remove excess allocation for kwsplat to kw call
Previously, calls like the following duplicated the kwsplat hash unnecessarily: ```ruby def foo(a:) = a hash = {a: 10} foo(**hash) ``` This is due to the fix in ca204a20231. Since it targets when the callee has no keyword parameters, skip duplicating when the method takes keywords.
Diffstat (limited to 'include/ruby/internal/encoding/encoding.h')
0 files changed, 0 insertions, 0 deletions