-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
Check for sortedness must not use ==
#7928
Check for sortedness must not use ==
#7928
Conversation
|
Thanks for your pull request and interest in making D better, @a-ludi! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + phobos#7928" |
|
Hi @a-ludi , thanks for your PR! In case this is your first PR to phobos: welcome to the Dlang community! Generally, changes that are accepted into the standard library need to be accompanied by a strong justification. Can you please provide a case where the current code does not work correctly? The unittest you added passes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide a justification for this PR.
|
Oh, I am sorry, that the unit test is a bad example. I did not really check it. I am going to write one that really shows the trouble. The theoretical justification is simply that |
|
I updated the unit test accordingly. Note, that the behavior only occurs when compiling with |
|
Thanks! |
|
Issue number? |
|
I have not created an issue. Should I do so? |
|
It would be great if you could create the issue and link it to this PR. |
|
ping @a-ludi |
|
Filed as issue 21810. |
|
Please retitle the commit message to say "Fix issue 21810: issue description goes here" |
|
Please add a commit that contains the message "Fix Issue 21810 - .." so that the bot picks it up. |
|
For some reason, buildkite is always failing druntime with this PR. As far as I could tell the error seems unrelated. @thewilsonator any ideas? |
|
Unfortunately, the message must contain "Fix", not "Fixed". |
aac3f73 to
f5faee7
Compare
Should I try rebasing the current master branch? |
|
CircleCI failed because it could not pull docker images. Maybe a restart will fix it. |
yes |
|
yes, please rebase. |
Checking sortedness according to a given predicate must not use `==` operator because it may not be in accordance with the predicate
Previous test did not trigger the undesired behavior because `canCheckSortedness` was false because `hasAliasing!(int[]) == true`
f5faee7 to
b13306c
Compare
|
The rebase changed the actual error encountered in buildkite but the pipeline still fails. |
Checking sortedness according to a given predicate must not use
==operatorbecause it may not be in accordance with the predicate.