Skip to content

Mark the closures to the forEach functions as non-escaping #198

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 1 commit into from
Jun 2, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 1, 2024

These functions don’t actually let the body escape. We should not need to mark body as @escaping and should use withoutActuallyEscaping in the implementation.

rdar://126803786

These functions don’t actually let the body escape. We should not need to mark `body` as `@escaping` and should use `withoutActuallyEscaping` in the implementation.
@ahoppen
Copy link
Member Author

ahoppen commented Jun 1, 2024

@swift-ci Please test

ahoppen added a commit to ahoppen/sourcekit-lsp that referenced this pull request Jun 1, 2024
@ahoppen ahoppen merged commit b429f79 into swiftlang:main Jun 2, 2024
3 checks passed
@ahoppen ahoppen deleted the foreach-not-escaping branch June 2, 2024 05:31
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.

2 participants