Skip to content

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Oct 6, 2025

This PR removes some outstanding uses of @unchecked Sendable and of AnySequence.

Ironically we still need Test.testCases to type-erase with AnySequence in its implementation only for now because if we change it from some Sequence<Test.Case> to any Sequence<Test.Case> we get this diagnostic:

🛑 Runtime support for parameterized protocol types is only available in macOS
13.0.0 or newer

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 removes some outstanding uses of `@unchecked Sendable` and of
`AnySequence`.

Ironically we still need `Test.testCases` to type-erase with `AnySequence` _in
its implementation only_ for now because if we change it from
`some Sequence<Test.Case>` to `any Sequence<Test.Case>` we get this diagnostic:

> 🛑 Runtime support for parameterized protocol types is only available in macOS
> 13.0.0 or newer
@grynspan grynspan added this to the Swift 6.x (main) milestone Oct 6, 2025
@grynspan grynspan self-assigned this Oct 6, 2025
@grynspan grynspan added concurrency 🔀 Swift concurrency/sendability issues parameterized-testing Related to parameterized testing functionality discovery 🔎 test content discovery tech-debt 💾 reduces technical debt labels Oct 6, 2025
@grynspan grynspan merged commit 81dd324 into main Oct 6, 2025
24 checks passed
@grynspan grynspan deleted the jgrynspan/remove-unchecked-sendable branch October 6, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency 🔀 Swift concurrency/sendability issues discovery 🔎 test content discovery parameterized-testing Related to parameterized testing functionality tech-debt 💾 reduces technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants