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 17084 - Can't sort array of structs with alias this #6472
Conversation
Thanks for your pull request and interest in making D better, @bbasile! 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 "master + phobos#6472" |
Hmm, how about using |
I don't know. It uses a delegate, meaning an indirection. AssumeNoGC is rather used when the attribute cant even be put at all. |
std/exception.d
Outdated
version(unittest) | ||
{ | ||
// 17084 : bug doesn't happen if these declaration are local (even static) | ||
struct Page17084 |
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.
Can these be made private
or is this what you meant by local
?
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.
they can be made private
. by
local even static
i meant inside the unittest block. Will make the comment less ambiguous.
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.
LGTM
@bbasile could you squash the commits? Also, what about the |
Added a test, it works without explicit |
This fix is actually more a workaround. I propose it because it's verifiable by hand that
doesPointTo
is well@nogc
.