Skip to content

[pull] master from ruby:master#1010

Merged
pull[bot] merged 10 commits into
turkdevops:masterfrom
ruby:master
May 14, 2026
Merged

[pull] master from ruby:master#1010
pull[bot] merged 10 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 14, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jhawthorn and others added 10 commits May 13, 2026 13:40
When a class or module was cloned, rb_vm_rewrite_cref would rewrite the
CREF chain of each cloned method to point at the new class. Remove this
special case so that clone behaves consistently with all other ways of
adopting a method.

This also removes the RCLASS_CLONED flag which was used to prevent
constant inline cache sharing between cloned classes [Bug #15877], and
the vm_cref_new_use_prev helper which only existed for CREF rewriting.

[Feature #21981]
This helps get rid of repeated type guards in a loop such as structaref
or structaset benchmark. @dak2 originally had this in his PR but it
wasn't tested so I removed it. This brings it back with a test that
catches it.
Swatinem/rust-cache (embedded in actions-rust-lang/setup-rust-toolchain)
caches ${CARGO_HOME}/bin by default. When the cache is restored from a
stale or partially-populated state, the rustup proxy binaries at
~/.cargo/bin/{rustc,cargo,...} get overwritten with broken ones, leaving
rustc behaving as rustup-init.

This surfaces at make time: `rustc -V` returns the rustup version
(1.29.0) instead of the active toolchain (1.95.0), and `rustc
--crate-name=jit ...` fails with "error: unexpected argument
'--crate-name' found / Usage: rustup-init[EXE] [OPTIONS]", breaking
libjit.rlib in combo YJIT+ZJIT builds.

The macOS runner image already preinstalls rustup, so caching
~/.cargo/bin saves only a few seconds while risking exactly this kind of
poisoning. Disable it; the separate Cargo dependency cache stays on.
@pull pull Bot locked and limited conversation to collaborators May 14, 2026
@pull pull Bot added the ⤵️ pull label May 14, 2026
@pull pull Bot merged commit b1a2609 into turkdevops:master May 14, 2026
1 of 3 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants