mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[ContainersPreview] Exhibit B in the case against prototyping things in the stdlib 😳
This commit is contained in:
12 files changed
+235
-196
No files matched your search
@@ -31,20 +31,20 @@ extension RigidArray: BorrowingSequence where Element: ~Copyable {
|
||||
#endif
|
||||
|
||||
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension RigidArray: Container where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension RigidArray: BidirectionalContainer where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension RigidArray: RandomAccessContainer where Element: ~Copyable {}
|
||||
|
||||
#if compiler(>=6.3)
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension RigidArray: MutableContainer where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension RigidArray: RangeReplaceableContainer where Element: ~Copyable {}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -28,7 +28,7 @@ extension UniqueSet {
|
||||
}
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueSet: Equatable {
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
|
||||
Reference in new issue
Block a user