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
Let safety of cartesianProduct.Result.popFront be inferred #7519
Conversation
Thanks for your pull request and interest in making D better, @John-Colvin! 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 "stable + phobos#7519" |
Is there a |
Indeed, #7440 was only applying a pre-existing comment, but on second look, that comment was wrong. There are plenty of |
…ges with @System popFront
done Also re-targeted to stable because it's a regression |
Style check failed:
|
The first one seems fair enough. The fact that the second 2 apply to unittests is madness, because it means phobos can't test functions like them! |
True, but why would you use |
That's a reasonable question, but even if we assume one shouldn't use it, it's all over people's code for historical reasons or because of misunderstanding. You can't easily remove it because it affects |
Yeah, maybe we should add a check that no new usage is introduced.
Is there any code in Phobos that requires the usage of |
There was at least some code that didn't work unless |
I don't believe #7440 was the correct thing to do. @Geod24