Skip to content

Commit c8782ce

Browse files
Adopt Swift 6 language mode
- Update swift-tools-version to 6.0 - Remove feature flags enabled in Swift 6 language mode - Annotate global flag as nonisolated(unsafe) - Resolves #29
1 parent 5b7f349 commit c8782ce

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

Package.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 5.9
1+
// swift-tools-version: 6.0
22

33
// This source file is part of the Swift.org open source project
44
//
@@ -12,12 +12,7 @@ import PackageDescription
1212

1313
// Settings to use for all targets
1414
let swiftSettings: [SwiftSetting] = [
15-
.enableUpcomingFeature("BareSlashRegexLiterals"),
1615
.enableUpcomingFeature("ExistentialAny"),
17-
.enableUpcomingFeature("ForwardTrailingClosures"),
18-
.enableUpcomingFeature("ConciseMagicFile"),
19-
.enableUpcomingFeature("ImportObjcForwardDeclarations"),
20-
.enableUpcomingFeature("DisableOutwardActorInference"),
2116
]
2217

2318
let package = Package(

Sources/EvolutionMetadataExtraction/CommandLineSupport.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
import Foundation
1111
import ArgumentParser
1212

13-
// Will be nonisolated(unsafe) in Swift 5.10 and later
14-
private var VERBOSE_ENABLED: Bool = false // Set once in `validate(verbose:)`, read once for `verboseEnabled`.
13+
nonisolated(unsafe) private var VERBOSE_ENABLED: Bool = false // Set once in `validate(verbose:)`, read once for `verboseEnabled`.
1514
func verbosePrint(_ items: Any..., additionalCondition: Bool = true, separator: String = " ", terminator: String = "\n\n") {
1615
if verboseEnabled && additionalCondition { print(items, separator: separator, terminator: terminator) }
1716
}

0 commit comments

Comments
 (0)