Skip to content

Sema: Implement adoption mode for AsyncCallerExecution #80008

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
merged 5 commits into from
Mar 18, 2025

Conversation

AnthonyLatsis
Copy link
Collaborator

In adoption mode, warn that the behavior of nonisolated async functions will change under AsyncCallerExecution and suggest @execution(concurrent) to preserve the current behavior.

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test macOS

@ktoso
Copy link
Contributor

ktoso commented Mar 14, 2025

Looks good :)


/// Add a fix-it suggesting to add the given attribute to the given
/// closure.
InFlightDiagnostic &fixItAddAttribute(const DeclAttribute *Attr,
Copy link
Member

Choose a reason for hiding this comment

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

Yes, very nice!

These files already have the appropriate Lit feature markers to prevent
them from running with asserts if necessary.
Also combine the computed isolation and preconcurrency once at the end
rather than at every return.
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

1 similar comment
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis merged commit ad3a5ad into swiftlang:main Mar 18, 2025
3 checks passed
@AnthonyLatsis AnthonyLatsis deleted the danaus-plexippus-4 branch March 21, 2025 14:10
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.

5 participants