mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user