-
-
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
Make Phobos compilable with preview=fieldwise #7624
Conversation
|
Thanks for your pull request and interest in making D better, @nordlow! 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#7624" |
|
Alternatively, is it possible to statically check whether an Asked at Slack. |
9841180 to
f18ed52
Compare
|
Now correctly handles user-defined |
|
Nice, that seems to work with and without the flag. But I'm not sure if we should enable it by default for all CI machines given that code could break when not compiling with Let's merge the bugfix first and deal with the transition in the dmd pr when it becomes the default. |
|
Do you mean that this PR is the bugfix or you should I remove anything from this PR? It's ok for me to merge this. |
|
I meant reverting the changes to the Makefiles, we want to ensure Phobos is compilable without |
Shall we revert the additions of |
No that's fine and very unlikely to break something. Furthermore, that one is more of a bug fix. |
f18ed52 to
f49fd9e
Compare
|
Corrected according to all comments. I'm done. |
f49fd9e to
4db80b3
Compare
|
Ping. Ready to roll? |
|
Ping again.
|
... with preview=fieldwise. Equality checks will never fail for instances of empty structs, hence don't generate code checking `<` and `>` for them. This was exposed by `-preview=fieldwise` which (as a side effect) enables dmd to const-fold the aformentioned equality test in the frontend.
|
Reverted changes to |
4db80b3 to
e824871
Compare
Reopened to see if things build.