-
-
Notifications
You must be signed in to change notification settings - Fork 702
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
Fix Issue 19838 - RefCounted fails to instantiate due to pureness of … #7006
Conversation
Thanks for your pull request and interest in making D better, @marcioapm! 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 fetch digger
dub run digger -- build "stable + phobos#7006" |
Please add a test case to avoid future regressions. |
@wilzbach I can't find a reduced test case that reproduces the behavior on our codebase. Somehow it seems that inferring pureness doesn't work in this particular case, which points to a deeper issue. This PR will alleviate the situation introduced by manually annotating |
Shouldn't this be a dmd bug? |
Ping! Any comments on this and if this, or a better fix are going to be merged? |
Please add the test case for the issue. |
I did try to find a reduced test case but wasn't able to. I suppose once the real bug is found and understood better it will be easier. Despite not being a real fix, it will at least hopefully revert things to how they used to be before the Phobos change was introduced. This bug is preventing us from upgrading without a big code refactor so we are stuck in 2.083.1 |
OK. |
Also please target stable. |
Done - Thanks! |
…moveEmplace