Skip to content

Make the SourceKitLSP module build in Swift 6 mode #1292

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
May 14, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 14, 2024

Swift 6 mode didn’t find any notable data races. But it’s good to know Swift 6 will prevent future ones.

Swift 6 mode didn’t find any notable data races. But it’s good to know Swift 6 will prevent future ones.
@ahoppen ahoppen requested review from bnbarham and hamishknight May 14, 2024 04:28
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 14, 2024 04:28
@ahoppen
Copy link
Member Author

ahoppen commented May 14, 2024

@swift-ci Please test

@@ -218,7 +218,7 @@ public actor SwiftLanguageService: LanguageService {
}

/// - Important: For testing only
public func setReusedNodeCallback(_ callback: ReusedNodeCallback?) async {
public func setReusedNodeCallback(_ callback: (@Sendable (_ node: Syntax) -> ())?) async {
Copy link
Contributor

Choose a reason for hiding this comment

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

Sucks that @Sendable ReusedNodeCallback is not legal :(

@ahoppen ahoppen merged commit 1fb087f into swiftlang:main May 14, 2024
3 checks passed
@ahoppen ahoppen deleted the sourcekitlsp-in-swift-6-mode branch May 14, 2024 13:15
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