Stop catering to toolchains older than Swift 6.2

This commit is contained in:
Karoy Lorentey committed 2026-11-05 17:40:50 -08:00
1 parent a99833003c
commit daeac4ebb8
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