Drop support for Swift 6.0 and 6.1

This allows the use of Span types without `#if compiler` guards.
This commit is contained in:
Karoy Lorentey committed 2026-09-21 13:34:39 -07:00
1 parent 78bb4bf6b9
commit 537bf9cbfb
145 files changed
+342 -1047

No files matched your search

@@ -15,8 +15,6 @@
import InternalCollectionsUtilities
#endif
#if compiler(>=6.2)
@available(SwiftStdlib 5.0, *)
extension UniqueArray where Element: ~Copyable {
/// Initializes a new unique array with no elements.
@@ -24,7 +22,7 @@ extension UniqueArray where Element: ~Copyable {
public init() {
_storage = .init(capacity: 0)
}
/// Initializes a new unique array with the specified capacity and no elements.
@inlinable
public init(minimumCapacity: Int) {
@@ -122,7 +120,7 @@ extension UniqueArray /*where Element: Copyable*/ {
self.init(minimumCapacity: capacity ?? 0)
self.append(copying: contents)
}
#if compiler(>=6.4)
/// Creates a new array with the specified initial capacity, holding a copy
/// of the contents of a given container.
@@ -162,5 +160,3 @@ extension UniqueArray /*where Element: Copyable*/ {
self.append(copying: span)
}
}
#endif