mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Concurrency] Remove redundant Sendable conformances in the standard library.
These conformances are all redundant because the `Sendable` conformance is inherited from a superclass.
This commit is contained in:
@@ -61,9 +61,6 @@ internal class __SwiftNativeNSArrayWithContiguousStorage
|
||||
}
|
||||
}
|
||||
|
||||
@available(*, unavailable)
|
||||
extension __SwiftNativeNSArrayWithContiguousStorage: Sendable {}
|
||||
|
||||
private let NSNotFound: Int = .max
|
||||
|
||||
// Implement the APIs required by NSArray
|
||||
@@ -325,9 +322,6 @@ extension __SwiftNativeNSArrayWithContiguousStorage {
|
||||
}
|
||||
}
|
||||
|
||||
@available(*, unavailable)
|
||||
extension _SwiftNSMutableArray: Sendable {}
|
||||
|
||||
/// An `NSArray` whose contiguous storage is created and filled, upon
|
||||
/// first access, by bridging the elements of a Swift `Array`.
|
||||
///
|
||||
@@ -435,9 +429,6 @@ extension _SwiftNSMutableArray: Sendable {}
|
||||
}
|
||||
}
|
||||
|
||||
@available(*, unavailable)
|
||||
extension __SwiftDeferredNSArray: Sendable {}
|
||||
|
||||
/// A `__SwiftDeferredNSArray` which is used for static read-only Swift Arrays.
|
||||
///
|
||||
/// In contrast to its base class, `__SwiftDeferredStaticNSArray` is generic
|
||||
@@ -593,6 +584,3 @@ internal class __ContiguousArrayStorageBase
|
||||
self !== _emptyArrayStorage, "Deallocating empty array storage?!")
|
||||
}
|
||||
}
|
||||
|
||||
@available(*, unavailable)
|
||||
extension __ContiguousArrayStorageBase: Sendable {}
|
||||
|
||||
Reference in New Issue
Block a user