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 SpanPreview
#endif
#if compiler(>=6.2)
@available(SwiftStdlib 5.0, *)
extension UniqueArray where Element: ~Copyable {
@available(*, deprecated, renamed: "nextSpan(after:maxCount:)")
@@ -99,7 +97,7 @@ extension UniqueArray where Element: ~Copyable {
}
return result.take()!
}
/// Inserts a given number of new items into this array at the specified
/// position, using a callback to directly initialize array storage by
/// populating an output span.
@@ -240,7 +238,7 @@ extension UniqueArray {
public func copy() -> Self {
self.clone()
}
/// Copy the contents of this array into a newly allocated unique array
/// instance with the specified capacity.
///
@@ -290,5 +288,3 @@ extension UniqueArray {
replaceSubrange(subrange, copying: newElements)
}
}
#endif