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,20 +15,6 @@
import InternalCollectionsUtilities
#endif
#if compiler(<6.2)
/// A fixed capacity, heap allocated, noncopyable double-ended queue of
/// potentially noncopyable elements.
@frozen
@available(*, unavailable, message: "RigidDeque requires a Swift 6.2 toolchain")
public struct RigidDeque<Element: ~Copyable>: ~Copyable {
public init() {
fatalError()
}
}
#else
/// A fixed capacity, heap allocated, noncopyable double-ended queue of
/// potentially noncopyable elements. A deque (pronounced "deck")
/// is an ordered random-access container that supports efficient
@@ -379,5 +365,3 @@ extension RigidDeque {
unsafe RigidDeque(_handle: _handle.allocateCopy(capacity: capacity))
}
}
#endif // compiler(<6.2)
@@ -15,22 +15,6 @@
import InternalCollectionsUtilities
#endif
#if compiler(<6.2)
/// A dynamically self-resizing, heap allocated, noncopyable double-ended
/// queue of potentially noncopyable elements. A deque (pronounced "deck")
/// is an ordered random-access container that supports efficient
/// insertions and removals from both ends.
@frozen
@available(*, unavailable, message: "UniqueDeque requires a Swift 6.2 toolchain")
public struct UniqueDeque<Element: ~Copyable>: ~Copyable {
public init() {
fatalError()
}
}
#else
/// A dynamically self-resizing, heap allocated, noncopyable double-ended
/// queue of potentially noncopyable elements. A deque (pronounced "deck")
/// is an ordered random-access container that supports efficient
@@ -336,6 +320,3 @@ extension UniqueDeque {
UniqueDeque(_storage: _storage.clone(capacity: capacity))
}
}
#endif // compiler(<6.2)