Skip to content

Conversation

@stmontgomery
Copy link
Contributor

This has no functional change, it just updates the comment and tracking bug ID explaining why a certain workaround in ConfirmationTests.swift for existential composition of parameterized protocol types is still necessary.

Motivation:

I tried removing this workaround recently, since it should no longer be necessary, but discovered that while the syntax is now valid in Swift 6.2, there's a new blocker—the runtime crash tracked by the new bug ID. It's helpful to document this so we know why the workaround is still needed.

Note that even if/when this remaining issue is resolved, this capability will require a certain minimum OS version on Apple platforms, since the compiler fix had a runtime component.

Checklist:

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

@stmontgomery stmontgomery added this to the Swift 6.x (main) milestone Nov 4, 2025
@stmontgomery stmontgomery self-assigned this Nov 4, 2025
@stmontgomery stmontgomery added the bug 🪲 Something isn't working label Nov 4, 2025
@stmontgomery stmontgomery added documentation 📚 Improvements or additions to documentation self-reviewed PR was self-reviewed by a code owner labels Nov 4, 2025
/// argument type for `confirmedOutOfRange(_:)`. Although we can now write
/// `any RangeExpression<Int> & Sequence<Int> & Sendable` as of Swift 6.2
/// (per [swiftlang/swift#76705](https://github.com/swiftlang/swift/pull/76705)),
/// attempting to form an array of such values crashes at runtime. ([163980446](rdar://163980446))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

???

@grynspan grynspan added the workaround Workaround for an issue in another component (may need to revert later) label Nov 4, 2025
@stmontgomery stmontgomery removed the self-reviewed PR was self-reviewed by a code owner label Nov 5, 2025
@stmontgomery stmontgomery merged commit 3dabdba into swiftlang:main Nov 5, 2025
27 checks passed
@stmontgomery stmontgomery deleted the update-workaround-bug-id branch November 5, 2025 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working documentation 📚 Improvements or additions to documentation workaround Workaround for an issue in another component (may need to revert later)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants