General

Profile

yuki300 (y h)

  • Login: yuki300
  • Registered on: 09/13/2026
  • Last sign in: 11/03/2026

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

11/09/2026

04:50 PM Ruby Revision 02471f1b (git): [ruby/openssl] x509store: fix double free if warning raises in verify callback
Clear the temporary StoreContext before calling rb_warn() instead of
after it. rb_warn() can raise, e.g. if Warning.warn is overridden, and
the StoreContext would then free the X509_STORE_CTX it only borrows.
https://github.com/ruby/ope...
yuki300 (y h)

11/04/2026

07:30 PM Ruby Revision 2a7000a5 (git): [ruby/prism] Warn about `it` in void context
`_1` already gets the "possibly useless use of a variable in void
context" warning, but `it` didn't because it has its own node type.
parse.y warns for both.
https://github.com/ruby/prism/commit/c860652854
yuki300 (y h)
07:30 PM Ruby Revision cfd9ce3e (git): [ruby/prism] Warn about void statements inside parentheses and begin
parse.y flattens `(foo)` and a plain `begin ... end` into the
surrounding statements, so something like `(foo); bar` or
`begin; foo; end; bar` warns about `foo`. Prism didn't look inside
them at all.
Parentheses only count when there's ...
yuki300 (y h)

11/03/2026

10:35 AM Ruby Bug #22314 (Closed): parse.y does not check **rest bindings in patterns (duplicate / alternation)
Applied in changeset commit:git|c260d575a1c84fa57adb0184133482757ff7fea8.
----------
[Bug #22314] Check `**rest` in patterns for duplicates and alternations
`p_kwrest` was the only binding rule in patterns that skipped
`error_duplicate...
yuki300 (y h)
10:35 AM Ruby Revision c260d575 (git): [Bug #22314] Check `**rest` in patterns for duplicates and alternations
`p_kwrest` was the only binding rule in patterns that skipped
`error_duplicate_pattern_variable`, so parse.y accepted `{ a: x, **x }`
and `1 | { a: 1, **rest }` at parse time while Prism rejects both. Route
it through the same check as `...
yuki300 (y h)
09:20 AM Ruby Bug #22310 (Closed): parse.y rejects a variable binding that precedes an unrelated alternative pattern
Applied in changeset commit:git|0c404b09a00a4bccfd738e165159ba336c873d29.
----------
[Bug #22310] Check only the left operand for captures in alternative patterns
`capture_in_pattern` is set by any binding in the whole `in` clause, so
...
yuki300 (y h)
09:19 AM Ruby Revision 0c404b09 (git): [Bug #22310] Check only the left operand for captures in alternative patterns
`capture_in_pattern` is set by any binding in the whole `in` clause, so
`in [ x, :a | :b ]` was rejected while `in [ :a | :b, x ]` was accepted.
Keep the flag as a pre-check and walk the left operand for an actual
binding before raising,...
yuki300 (y h)

09/28/2026

04:22 PM Ruby Revision 42bf37a4 (git): [ruby/prism] Only report real captures inside alternation patterns
When a variable is captured anywhere in a pattern, the operands of each
alternation are visited to report captures inside them. That visitor
treated every local variable target as a capture, including
underscore-prefixed names and target...
yuki300 (y h)

09/27/2026

10:26 AM Ruby Bug #22310: parse.y rejects a variable binding that precedes an unrelated alternative pattern
A follow-up on "every form I tried gives the same answer": while writing more tests I found a few forms where it's Prism that gets it wrong, the other way around. With a sibling capture present, Prism also rejects `in [x, 1 | _a]`, `in [... yuki300 (y h)

09/14/2026

07:13 PM Ruby Bug #22310: parse.y rejects a variable binding that precedes an unrelated alternative pattern
Filed the `**rest` one separately as #22314 (fix in https://github.com/ruby/ruby/pull/18831). yuki300 (y h)

Also available in: Atom