mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
Stop catering to toolchains older than Swift 6.2
This commit is contained in:
5 files changed
-117
No files matched your search
@@ -15,24 +15,6 @@
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
#if compiler(<6.2)
|
||||
|
||||
/// A dynamically self-resizing, heap allocated, noncopyable array
|
||||
/// of potentially noncopyable elements.
|
||||
@frozen
|
||||
@available(*, unavailable, message: "UniqueArray requires a Swift 6.2 toolchain")
|
||||
public struct UniqueArray<Element: ~Copyable>: ~Copyable {
|
||||
@usableFromInline
|
||||
package var _storage: RigidArray<Element>
|
||||
|
||||
@inlinable
|
||||
public init() {
|
||||
fatalError()
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
/// A dynamically self-resizing, heap allocated, noncopyable array of
|
||||
/// potentially noncopyable elements.
|
||||
///
|
||||
@@ -245,4 +227,3 @@ extension UniqueArray {
|
||||
UniqueArray(consuming: _storage.clone(capacity: capacity))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user