-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Do not use rangeHash
when rangeDiff
is 0 [ci: last-only]
#10912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
0fbde01
to
e7110d5
Compare
This comment was marked as outdated.
This comment was marked as outdated.
e7110d5
to
57d6ce4
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
rangeHash
when rangeDiff
is 0rangeHash
when rangeDiff
is 0 [ci: last-only]
455b0df
to
3ff2b76
Compare
LGTM. Can we change |
Yes, as documented since 2020, as per #9051 and scala/bug#11646 . Admittedly that issue and PR didn't attract much attention/discussion. But they also haven't attracted any pushback, either at the time or in the years since. cc @scala/collections @Ichoran Let's release-note it regardless (especially since the 2.13.16 release notes won't be that long). In a Scala 3 context, it's a bit less clear-cut. Normally Scala 3 takes our standard library minor version bumps in their Scala LTS patch version bumps. Does that change the answer here? I would argue it doesn't, because
I don't doubt that some codebases will see some test failures because they were (perhaps inadvertently) relying on hash order, but IMO our stance should be that those tests were overly sensitive to begin with and it's normal to ask users to either 1) make them less sensitive, or 2) leave them sensitive for convenience but with the awareness that as a consequence they may need adjusting at Scala version bump time. |
How will this cope with |
In the changed code paths, we already know the |
@Friendseeker could you squash the changes in a single commit? |
3ff2b76
to
e84b53f
Compare
Done! |
Do not use `rangeHash` when `rangeDiff` is 0 [ci: last-only]
Do not use `rangeHash` when `rangeDiff` is 0 [ci: last-only]
Closes scala/bug#12826 via implementing scala/bug#12826 (comment)