Skip to content

Set compare_by_identity changes were backported to 4.0 - #1406

Open
mrhoribu wants to merge 1 commit into
ruby:masterfrom
mrhoribu:set-compare-by-identity-4.0
Open

mrhoribu wants to merge 1 commit into
ruby:masterfrom
mrhoribu:set-compare-by-identity-4.0

Conversation

@mrhoribu

@mrhoribu mrhoribu commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

The fix for Bug #22174 was backported to Ruby 4.0.8 (ruby/ruby@1533c10971). This PR changes the ruby_version_is "4.1" guards on the "retains compare_by_identity flag" Set specs to "4.0". It's step 4 of the plan from #1403 (comment).

The diff is just the 6 guard lines in core/set/{classify,divide,flatten,intersection,map}_spec.rb.

Before merging

Checked locally with mspec-run core/set: 4.0.9 and 4.1.0-preview1 both pass.

🤖 Generated with Claude Code

The fix for [Bug #22174] was backported to Ruby 4.0.8.
See https://bugs.ruby-lang.org/issues/22174

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mrhoribu
mrhoribu force-pushed the set-compare-by-identity-4.0 branch from 6b431f6 to a374445 Compare October 24, 2026 16:43
@mrhoribu
mrhoribu marked this pull request as ready for review October 24, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant