[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:
Holly Borla
2024-07-25 21:51:56 -07:00
parent 7dd8914d88
commit dc3893d9ca
6 changed files with 0 additions and 69 deletions

View File

@@ -110,9 +110,6 @@ internal class __RawDictionaryStorage: __SwiftNativeNSDictionary {
}
}
@available(*, unavailable)
extension __RawDictionaryStorage: Sendable {}
/// The storage class for the singleton empty set.
/// The single instance of this class is created by the runtime.
// NOTE: older runtimes called this class _EmptyDictionarySingleton.
@@ -139,9 +136,6 @@ internal class __EmptyDictionarySingleton: __RawDictionaryStorage {
#endif
}
@available(*, unavailable)
extension __EmptyDictionarySingleton: Sendable {}
#if _runtime(_ObjC)
extension __EmptyDictionarySingleton: _NSDictionaryCore {
@objc(copyWithZone:)
@@ -511,6 +505,3 @@ extension _DictionaryStorage {
return storage
}
}
extension _DictionaryStorage: @unchecked Sendable
where Key: Sendable, Value: Sendable {}