Skip to content

Commit 84347e5

Browse files
authored
[Concurrency] Avoid redundant conformance warning on Actor
Since the `Actor` type is now `Sendable` via `AnyActor`: ``` /Users/ktoso/code/swift-project/swift/stdlib/public/Concurrency/Actor.swift:38:34: warning: redundant conformance constraint 'Self' : 'Sendable' public protocol Actor: AnyActor, Sendable { ^ /Users/ktoso/code/swift-project/swift/stdlib/public/Concurrency/Actor.swift:38:24: note: conformance constraint 'Self' : 'Sendable' implied here public protocol Actor: AnyActor, Sendable { ^ ```
1 parent b681b0a commit 84347e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Actor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public protocol AnyActor: AnyObject, Sendable {}
3535
/// The `Actor` protocol generalizes over all `actor` types. Actor types
3636
/// implicitly conform to this protocol.
3737
@available(SwiftStdlib 5.1, *)
38-
public protocol Actor: AnyActor, Sendable {
38+
public protocol Actor: AnyActor {
3939

4040
/// Retrieve the executor for this actor as an optimized, unowned
4141
/// reference.

0 commit comments

Comments
 (0)