Skip to content

Fix warnings in Swift 6.2 about non-sendable types in isolated closures #1233

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 2 commits into from
Jun 17, 2025

Conversation

d-ronnqvist
Copy link
Contributor

Bug/issue #, if applicable:

Summary

This resolves a few warnings in Swift 6.2 about non-sendable types in isolated closures.

These changes are all in internal API, so we don't need to consider API breaking changes.

Dependencies

None.

Testing

Build DocC with a Swift 6.2 compiler. There shouldn't be warnings about "capture of non-sendable type in an isolated closure".

Checklist

Make sure you check off the following items. If they cannot be completed, provide a reason.

  • [ ] Added tests
  • Ran the ./bin/test script and it succeeded
  • [ ] Updated documentation if necessary

@d-ronnqvist d-ronnqvist added the code cleanup Code cleanup *without* user facing changes label Jun 4, 2025
@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist
Copy link
Contributor Author

@swift-ci please test

@d-ronnqvist d-ronnqvist merged commit 6fa695d into swiftlang:main Jun 17, 2025
2 checks passed
@d-ronnqvist d-ronnqvist deleted the sendable-metatype-warnings branch June 17, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Code cleanup *without* user facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants