Skip to content

Commit 7c8c548

Browse files
committed
[stdlib] fix MutableSpan’s Sendable conformance
1 parent 073d545 commit 7c8c548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Span/MutableSpan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public struct MutableSpan<Element: ~Copyable>
5757

5858
@available(SwiftCompatibilitySpan 5.0, *)
5959
@_originallyDefinedIn(module: "Swift;CompatibilitySpan", SwiftCompatibilitySpan 6.2)
60-
extension MutableSpan: @unchecked Sendable where Element: Sendable {}
60+
extension MutableSpan: @unchecked Sendable where Element: Sendable & ~Copyable {}
6161

6262
@available(SwiftCompatibilitySpan 5.0, *)
6363
@_originallyDefinedIn(module: "Swift;CompatibilitySpan", SwiftCompatibilitySpan 6.2)

0 commit comments

Comments
 (0)