- Notifications
You must be signed in to change notification settings - Fork3.1k
Do not userangeHash whenrangeDiff 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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
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 toe7110d5Compare This comment was marked as outdated.
This comment was marked as outdated.
e7110d5 to57d6ce4Compare 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 whenrangeDiff is 0rangeHash whenrangeDiff is 0 [ci: last-only]455b0df to3ff2b76Comparelrytz commentedNov 5, 2024
LGTM. Can we change |
SethTisue commentedNov 5, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Yes, as documented since 2020, as per#9051 andscala/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 libraryminor version bumps in their Scala LTSpatch 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. |
OndrejSpanel commentedNov 5, 2024
How will this cope with |
sjrd commentedNov 5, 2024
In the changed code paths, we already know the |
lrytz commentedNov 5, 2024
@Friendseeker could you squash the changes in a single commit? |
3ff2b76 toe84b53fCompareFriendseeker commentedNov 5, 2024
Done! |
7649050 intoscala:2.13.xUh oh!
There was an error while loading.Please reload this page.
Do not use `rangeHash` when `rangeDiff` is 0 [ci: last-only]
Do not use `rangeHash` when `rangeDiff` is 0 [ci: last-only]
Closesscala/bug#12826 via implementingscala/bug#12826 (comment)