Skip to content

Commit ad8f5d0

Browse files
committed
Call out unsafe-sendable structs & enums.
(cherry picked from commit 2774f3d)
1 parent a69f0e0 commit ad8f5d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stdlib/public/core/Sendable.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@
6060
///
6161
/// Otherwise, you need to declare conformance to `Sendable` explicitly.
6262
///
63+
/// Structures that have nonsendable stored properties
64+
/// and enumerations that nonsendable associated values
65+
/// can be marked as `@unchecked Sendable`,
66+
/// disabling compile-time correctness checks,
67+
/// after you manually verify that
68+
/// they satisfy the `Sendable` protocol's semantic requirements.
69+
///
6370
/// ### Sendable Actors
6471
///
6572
/// All actor types implicitly conform to `Sendable`

0 commit comments

Comments
 (0)