File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,13 @@ func _rethrowsViaClosure(_ fn: () throws -> ()) rethrows {
171
171
172
172
/// A type whose values can be implicitly or explicitly copied.
173
173
///
174
- /// XXX this protocol has no symbol requirements, but it does have semantic requirements
174
+ /// Although this protocol doesn’t have any required methods or properties,
175
+ /// it does have semantic requirements that are enforced at compile time.
176
+ /// These requirements are listed in the sections below.
177
+ /// XXX what are the requirements -- just that copying is ok?
178
+ /// Conformance to `Copyable` must be declared
179
+ /// in the same file as the type's declaration.
180
+ /// <!-- XXX TR: Confirm previous sentence; borrowed from Sendable docs -->
175
181
///
176
182
/// Conformance to the `Copyable` protocol
177
183
/// is implicitly included in the following places:
@@ -216,7 +222,12 @@ func _rethrowsViaClosure(_ fn: () throws -> ()) rethrows {
216
222
///
217
223
/// Extensions on the `Copyable` protocol are not allowed.
218
224
///
219
- /// XXX xref to TSPL
225
+ /// XXX link to the right chapter
226
+ /// For information about the language-level concurrency model that `Task` is part of,
227
+ /// see [Concurrency][concurrency] in [The Swift Programming Language][tspl].
228
+ ///
229
+ /// [concurrency]: https://docs.swift.org/swift-book/LanguageGuide/Concurrency.html
230
+ /// [tspl]: https://docs.swift.org/swift-book/
220
231
@_marker public protocol Copyable { }
221
232
222
233
@_documentation ( visibility: internal)
You can’t perform that action at this time.
0 commit comments