Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Oct 28, 2025

This PR uses Unmanaged to avoid calling unsafeBitCast() in the new _TestingInterop target on platforms that can use Atomic. This improves type safety (yay!)

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

This PR uses `Unmanaged` to avoid calling `unsafeBitCast()` in the new
`_TestingInterop` target on platforms that can use `Atomic`. This improves type
safety (yay!)
@grynspan grynspan added this to the Swift 6.x (main) milestone Oct 28, 2025
@grynspan grynspan self-assigned this Oct 28, 2025
@grynspan grynspan added tools integration 🛠️ Integration of swift-testing into tools/IDEs tech-debt 💾 reduces technical debt labels Oct 28, 2025
@grynspan
Copy link
Contributor Author

I'm going to add a path for Embedded Swift that just sets a global (since there's no concurrency support in Embedded Swift at this time.)

@grynspan grynspan merged commit 664d24f into main Oct 29, 2025
27 checks passed
@grynspan grynspan deleted the jgrynspan/avoid-unsafe-bitcast-in-interop branch October 29, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tech-debt 💾 reduces technical debt tools integration 🛠️ Integration of swift-testing into tools/IDEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants