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

@@ -16,8 +16,6 @@ import InternalCollectionsUtilities
import SpanPreview
#endif
#if compiler(>=6.2)
@available(SwiftStdlib 5.0, *)
extension UniqueArray where Element: ~Copyable {
/// Replaces the specified range of elements by a given count of new items,
@@ -468,7 +466,7 @@ extension UniqueArray {
_ensureFreeCapacity(newElements.count - subrange.count)
return _storage.replaceSubrange(subrange, copying: newElements)
}
/// Replaces the specified subrange of elements by copying the elements of
/// the given collection.
///
@@ -513,4 +511,3 @@ extension UniqueArray {
newCount: c)
}
}
#endif