Skip to content

core.internal.array.duplication: Replace _d_newarrayU with template in _dup#16097

Merged
RazvanN7 merged 1 commit intodlang:masterfrom
teodutu:_d_newarrayU-dup
Jan 27, 2024
Merged

core.internal.array.duplication: Replace _d_newarrayU with template in _dup#16097
RazvanN7 merged 1 commit intodlang:masterfrom
teodutu:_d_newarrayU-dup

Conversation

@teodutu
Copy link
Member

@teodutu teodutu commented Jan 26, 2024

  • Only use the pure nothrow wrapper _d_newarrayUPureNothrow for the pure nothrow _dup
  • Unqualify the template type given to _d_newarrayU. The initial template relied on this unqualification being done by the compiler, but now it's called from _dup
  • Fix TypeInfoSize to only account for type structs
  • Cannot remove _d_newarray{iT,T,U} from rt.lifetime because they're used by aaA.d

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @teodutu!

Bugzilla references

Your 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 locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#16097"

@teodutu teodutu force-pushed the _d_newarrayU-dup branch 3 times, most recently from be75566 to c3aa1a5 Compare January 26, 2024 15:09
- Only use the `pure nothrow` wrapper `_d_newarrayUPureNothrow` for the
`pure nothrow` `_dup`
- Unqualify the template type given to `_d_newarrayU`. The initial
template was relying on this unqualification being done by the compiler,
but now it's called from `_dup`
- Fix `TypeInfoSize` to only account for type `struct`s
- Cannot remove `_d_newarray{iT,T,U}` from `rt.lifetime` because they're used by `aaA.d`

Signed-off-by: Teodor Dutu <teodor.dutu@gmail.com>
@RazvanN7 RazvanN7 merged commit 1778ab8 into dlang:master Jan 27, 2024
@schveiguy
Copy link
Member

This caused a regression: https://issues.dlang.org/show_bug.cgi?id=24453

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

5 participants

Comments