Skip to content

Add two Sendable annotations to enable building SourceKit-LSP in Swift 6 mode #7553

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 13, 2024

  • Mark FileRuleDescription as Sendable
  • Make Platform sendable and make Platform.current a constant

This allows us to build `SourceKitLSP` in Swift 6 mode.
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

@swift-ci Please test macOS

This allows us to build `SourceKitLSP` in Swift 6 mode.
@ahoppen ahoppen changed the title Mark FileRuleDescription as Sendable Add two Sendable annotations to enable building SourceKit-LSP in Swift 6 mode May 13, 2024
@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented May 13, 2024

swiftlang/sourcekit-lsp#1276

@swift-ci Please test

@ahoppen ahoppen merged commit daea522 into swiftlang:main May 14, 2024
5 checks passed
@ahoppen ahoppen deleted the file-rule-description-sendable branch May 14, 2024 03:52
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
…ift 6 mode (swiftlang#7553)

- Mark `FileRuleDescription` as `Sendable`
- Make `Platform` sendable and make `Platform.current` a constant
furby-tm pushed a commit to wabiverse/swift-package-manager that referenced this pull request May 15, 2024
…ift 6 mode (swiftlang#7553)

- Mark `FileRuleDescription` as `Sendable`
- Make `Platform` sendable and make `Platform.current` a constant
ahoppen added a commit that referenced this pull request May 15, 2024
…t 6 mode (#7559)

* **Explanation**: Mark `FileRuleDescription` and `Platform` as
`Sendable` and make `Platform.current` a constant. This allows us to
build SourceKit-LSP in Swift 6 mode
* **Scope**: `FileRuleDescription` and `Platform` if SwiftPM is used as
a library
* **Risk**: Very low, adding `Sendable` conformances is safe and I don’t
expect anyone to modify `Platform.current`
* **Testing**: Verified that this helps us build SourceKit-LSP in Swift
6 mode
* **Issue**: n/a
* **Reviewer**: @xedin on
#7553
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