Repository navigation
fix #21033: Add template _d_newarrayUTrace - #21525
Merged
Merged
Conversation
|
Thanks for your pull request, @teodutu! 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.
|
_d_newarrayUTrace_d_newarrayUTrace
teodutu
force-pushed
the
fix-21033
branch
2 times, most recently
from
July 11, 2025 15:58
b1f74e7 to
364a3e9
Compare
thewilsonator
approved these changes
Jul 11, 2025
PR dlang#15299 added the template `_d_newarrayU`, but not its corresponding trace-GC hook `_d_newarrayUTrace`. This commit adds the latter as a wrapper on top of `_d_newarrayUPureNothrow` so `_d_newarrayUTrace` can be called from such contexts. Signed-off-by: Teodor Dutu <[email protected]>
Comment on lines
+281
to
+282
| { "_d_newarrayU" }, | ||
| { "_d_newarrayUTrace" }, |
Contributor
There was a problem hiding this comment.
you should make sure that id.h is up to date too
teodutu
added a commit
to teodutu/phobos
that referenced
this pull request
Jul 12, 2025
dlang/dmd#21525 Adds the template `_d_newarrayUTrace`. To fix dlang/dmd#21033, this commit needs to replace the use of the non-template hook with the newly added template in `std.array.d`. Signed-off-by: Teodor Dutu <[email protected]>
This was referenced Jul 12, 2025
teodutu
added a commit
to teodutu/phobos
that referenced
this pull request
Jul 12, 2025
dlang/dmd#21525 Adds the template `_d_newarrayUTrace`. To fix dlang/dmd#21033, this commit needs to replace the use of the non-template hook with the newly added template in `std.array.d`. Signed-off-by: Teodor Dutu <[email protected]>
teodutu
added a commit
to teodutu/phobos
that referenced
this pull request
Jul 12, 2025
dlang/dmd#21525 Adds the template `_d_newarrayUTrace`. To fix dlang/dmd#21033, this commit needs to replace the use of the non-template hook with the newly added template in `std.array.d`. Signed-off-by: Teodor Dutu <[email protected]>
thewilsonator
pushed a commit
to dlang/phobos
that referenced
this pull request
Jul 21, 2025
dlang/dmd#21525 Adds the template `_d_newarrayUTrace`. To fix dlang/dmd#21033, this commit needs to replace the use of the non-template hook with the newly added template in `std.array.d`. Signed-off-by: Teodor Dutu <[email protected]>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR #15299 added the template
_d_newarrayU, but not its corresponding trace-GC hook. This commit adds the latter as a wrapper on top of_d_newarrayUPureNothrowso_d_newarrayUTracecan be called from such contexts