Skip to content

[6.0] Map the isolated variable type into context correctly. #73074

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

Explanation: The fix for #72484 didn't properly handle the case of a "generic" context where all the type parameters had concrete assignments. In this situation, F.mapTypeIntoContext does not work because the function has no generic environment.
Scope: Conversions of actor-instance-isolated functions to @isolated(any) type, which happens on all of the basic paths for task creation.
Issue: rdar://126085573
Original PR: #73031
Risk: Low. Highly localized fix that is well-tested for previously-working code paths.
Testing: New regression test
Reviewer: (tbd)

The fix for swiftlang#72484 didn't properly handle the case of a "generic" context
where all the type parameters had concrete assignments.  In this situation,
F.mapTypeIntoContext does not work because the function has no generic
environment.

Fixes rdar://126085573
@rjmccall rjmccall requested a review from a team as a code owner April 17, 2024 07:32
@rjmccall
Copy link
Contributor Author

@swift-ci Please test

@rjmccall rjmccall merged commit 1e36088 into swiftlang:release/6.0 Apr 17, 2024
@rjmccall rjmccall deleted the map-fully-specialized-isolation-6.0 branch April 17, 2024 16:29
@MaxDesiatov
Copy link
Contributor

Looks like "original PR" field in the description is wrong, it links to an unrelated PR against main that's still in draft state.

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