File tree Expand file tree Collapse file tree 3 files changed +22
-3
lines changed
Sources/SwiftDocCPluginUtilities Expand file tree Collapse file tree 3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 1
1
// This source file is part of the Swift.org open source project
2
2
//
3
- // Copyright (c) 2024 Apple Inc. and the Swift project authors
3
+ // Copyright (c) 2024-2025 Apple Inc. and the Swift project authors
4
4
// Licensed under Apache License v2.0 with Runtime Library Exception
5
5
//
6
6
// See https://swift.org/LICENSE.txt for license information
9
9
import Foundation
10
10
11
11
/// A target that can have a documentation task in the build graph
12
- protocol DocumentationBuildGraphTarget {
12
+ protocol DocumentationBuildGraphTarget : SendableMetatype {
13
13
typealias ID = String
14
14
/// The unique identifier of this target
15
15
var id : ID { get }
Original file line number Diff line number Diff line change
1
+ // This source file is part of the Swift.org open source project
2
+ //
3
+ // Copyright (c) 2025 Apple Inc. and the Swift project authors
4
+ // Licensed under Apache License v2.0 with Runtime Library Exception
5
+ //
6
+ // See https://swift.org/LICENSE.txt for license information
7
+ // See https://swift.org/CONTRIBUTORS.txt for Swift project authors
8
+
9
+ // In Swift 6.2, metatypes are no longer sendable by default (SE-0470).
10
+ // Instead a type needs to conform to `SendableMetatype` to indicate that its metatype is sendable.
11
+ //
12
+ // However, `SendableMetatype` doesn't exist before Swift 6.1 so we define an internal alias to `Any` here.
13
+ // This means that conformances to `SendableMetatype` has no effect before 6.2 indicates metatype sendability in 6.2 onwards.
14
+ //
15
+ // Note: Adding a protocol requirement to a _public_ API is a breaking change.
16
+
17
+ #if compiler(<6.2)
18
+ typealias SendableMetatype = Any
19
+ #endif
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ here="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
18
18
19
19
function replace_acceptable_years() {
20
20
# this needs to replace all acceptable forms with 'YEARS'
21
- sed -e ' s/20[12][78901234 ]-20[12][8901234 ]/YEARS/' -e ' s/20[12][8901234 ]/YEARS/'
21
+ sed -e ' s/20[12][789012345 ]-20[12][89012345 ]/YEARS/' -e ' s/20[12][89012345 ]/YEARS/'
22
22
}
23
23
24
24
printf " => Checking for unacceptable language… "
You can’t perform that action at this time.
0 commit comments