Skip to content
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

Migrate to Swift 6 #950

Open
anferbui opened this issue Jun 12, 2024 · 0 comments
Open

Migrate to Swift 6 #950

anferbui opened this issue Jun 12, 2024 · 0 comments
Labels
enhancement Improvements or enhancements to existing functionality

Comments

@anferbui
Copy link
Contributor

Feature Name

Swift 6 Migration

Description

We should enable the Swift 6 language mode for Swift-DocC, and resolve any failing compiler safety checks.

We can do so incrementally by:

  1. Enabling complete concurrency checking
  2. Enabling the Swift 6 language mode

Swift 6 is enabled per-target, so there are multiple targets we potentially need to migrate:

  • SwiftDocC
  • SwiftDocCUtilities
  • SwiftDocCTestUtilities?

Motivation

With the Swift 6 language mode, the compiler can now guarantee that concurrent programs are free of data races:
https://www.swift.org/migration/documentation/migrationguide/

Importance

As Swift-DocC uses concurrency in some areas of its code, it is important to ensure that these areas are data-race-free.

Alternatives Considered

No response

@anferbui anferbui added the enhancement Improvements or enhancements to existing functionality label Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or enhancements to existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant