Inline hasElaborateDestructor!(...) into __(needsDestruction, ...)#22853
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 referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. 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 + dmd#22853" |
thewilsonator
left a comment
There was a problem hiding this comment.
otherwise looks good.
2be52af to
93cfd18
Compare
|
|
||
| // Used by std.traits.hasElaborateDestructor | ||
| // TODO inline this in druntime | ||
| // TODO deprecate |
There was a problem hiding this comment.
this is internal, we can probably just remove it, but that can be dome later.
For the sake of avoiding template bloat as evaluation of a built trait is magnitudes faster than instantiating any template.
As mentioned in TODO at https://github.com/dlang/dmd/pull/22853/changes#diff-9cf671c1375bf050cf93c1ed0b4b81b30d5ba8822b10b9ef3435fc8f67e85553L289.