summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2025-06-19 17:57:20 -0700
committerJeremy Evans <[email protected]>2025-06-22 06:43:13 +0900
commit353fa6f0bab278d9bd5bd8bd073b31f586116600 ()
tree90538134217d5756e23bab5740b001d87983cb3e /lib
parentd84a811f31a65821642b165d712f380c0cc060e0 (diff)
Avoid allocation for positional splat for literal array keyword argumentHEADmaster
If all nodes in the array are safe, then it is safe to avoid allocation for the positional splat: ```ruby m(*a, kw: [:a]) # Safe m(*a, kw: [meth]) # Unsafe ``` This avoids an unnecessary allocation in a Rails method call. Details: https://.com/rails/rails/pull/54949/files#r2052645431
0 files changed, 0 insertions, 0 deletions