Skip to content

Commit 04a7964

Browse files
committed
Use Swift 6 language mode in new target
1 parent f40ce48 commit 04a7964

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ let package = Package(
122122
// This target shouldn't have any local dependencies so that all other targets can depend on it.
123123
// We can add dependencies on SymbolKit and Markdown here but they're not needed yet.
124124
],
125-
swiftSettings: swiftSettings // FIXME: Use `[.swiftLanguageMode(.v6)]` here
125+
swiftSettings: [.swiftLanguageMode(.v6)]
126126
),
127127

128128
.testTarget(
@@ -131,7 +131,7 @@ let package = Package(
131131
.target(name: "Common"),
132132
.target(name: "TestUtilities"),
133133
],
134-
swiftSettings: swiftSettings // FIXME: Use `[.swiftLanguageMode(.v6)]` here
134+
swiftSettings: [.swiftLanguageMode(.v6)]
135135
),
136136

137137
// Test app for CommandLine

Sources/Common/SourceLanguage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010

1111
/// A programming language.
12-
public struct SourceLanguage: Hashable, Codable, Comparable {
12+
public struct SourceLanguage: Hashable, Codable, Comparable, Sendable {
1313
/// The display name of the programming language.
1414
public var name: String
1515
/// A globally unique identifier for the language.
@@ -132,7 +132,7 @@ public struct SourceLanguage: Hashable, Codable, Comparable {
132132
public static let metal = SourceLanguage(name: "Metal", id: "metal")
133133

134134
/// The list of programming languages that are known to DocC.
135-
public static var knownLanguages: [SourceLanguage] = [.swift, .objectiveC, .javaScript, .data, .metal]
135+
public static let knownLanguages: [SourceLanguage] = [.swift, .objectiveC, .javaScript, .data, .metal]
136136

137137
enum CodingKeys: CodingKey {
138138
case name

0 commit comments

Comments
 (0)