Skip to content

[6.0] Allow @isolated(any) mismatches in witness matching. #72672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rjmccall
Copy link
Contributor

I'm not really convinced that this shouldn't be done by introducing a new kind of constraint rather than hacking in what are essentially conversions as "bind" constraints, but this is the most direct path for now

Explanation: Witness matching was not allowing a function that took an @isolated(any) parameter to witness a requirement that took a non-@isolated(any) parameter. This caused a source break with a project that added a protocol for different TaskGroup types.
Scope: Fixes a source compatibility issue. Should have no impact outside of witness matching or if @isolated(any) isn't involved.
Issue: rdar://125394096
Original PR: #72641
Risk: Low
Testing: Just regression testing
Reviewer: @xedin approved the original PR

I'm not really convinced that this shouldn't be done by introducing a new
kind of constraint rather than hacking in what are essentially conversions
as "bind" constraints, but this is the most direct path for now.

Fixes rdar://125394096
@rjmccall rjmccall requested a review from a team as a code owner March 28, 2024 18:39
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

@rjmccall
Copy link
Contributor Author

Blocked on #72679.

@xedin
Copy link
Contributor

xedin commented Mar 29, 2024

@swift-ci please test

@xedin
Copy link
Contributor

xedin commented Mar 29, 2024

@swift-ci please test Linux platform

@rjmccall rjmccall merged commit a67f720 into swiftlang:release/6.0 Apr 1, 2024
@rjmccall rjmccall deleted the isolated-any-witness-mismatch-6.0 branch April 1, 2024 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants