[ContainersPreview] Bump required toolchain to 6.4 for new protocols

This commit is contained in:
Karoy Lorentey committed 2026-03-26 14:51:08 -07:00
1 parent ae3dcf384d
commit 70a25f1f69
67 files changed
+152 -131

No files matched your search

@@ -179,7 +179,7 @@ extension UniqueArray where Element: ~Copyable {
}
#endif
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Appends at most `newItemCount` items generated by a producer to the end of
/// this array.
///
@@ -212,7 +212,7 @@ extension UniqueArray where Element: ~Copyable {
}
#endif
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Appends all the items generated by a producer to the end of this deque.
///
/// If the deque doesn't have sufficient capacity to accommodate all the
@@ -303,7 +303,7 @@ extension UniqueArray {
_storage.append(copying: newElements)
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@inlinable
internal mutating func _append<
Source: BorrowingSequence<Element> & ~Copyable & ~Escapable
@@ -322,7 +322,7 @@ extension UniqueArray {
// FIXME: Add _append(copyingContainer:), forwarding to the same method on RigidArray
#endif
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Copies the elements of a borrowing sequence to the end of this array.
///
/// If the array does not have sufficient capacity to hold enough elements,
@@ -378,7 +378,7 @@ extension UniqueArray {
}
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Copies the elements of a container to the end of this array.
///
/// If the array does not have sufficient capacity to hold enough elements,
@@ -18,7 +18,7 @@ import ContainersPreview
#if compiler(>=6.2)
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@available(SwiftStdlib 5.0, *)
extension UniqueArray: BorrowingSequence where Element: ~Copyable {
public typealias BorrowingIterator = RigidArray<Element>.BorrowingIterator
@@ -34,7 +34,7 @@ extension UniqueArray: BorrowingSequence where Element: ~Copyable {
}
#endif
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@available(SwiftStdlib 5.0, *)
extension UniqueArray: Container where Element: ~Copyable {}
@@ -93,7 +93,7 @@ extension UniqueArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension UniqueArray /*where Element: Copyable*/ {
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Creates a new array with the specified initial capacity, holding a copy
/// of the contents of a given borrowing sequence.
///
@@ -130,7 +130,7 @@ extension UniqueArray /*where Element: Copyable*/ {
self.append(copying: contents)
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Creates a new array with the specified initial capacity, holding a copy
/// of the contents of a given container.
///
@@ -229,7 +229,7 @@ extension UniqueArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension UniqueArray where Element: ~Copyable {
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Inserts at most `newItemCount` items generated by a producer into this
/// array, starting at the given index.
///
@@ -366,7 +366,7 @@ extension UniqueArray {
_storage.insert(copying: newElements, at: index)
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Copies the elements of a container into this array at the specified
/// position.
///
@@ -433,7 +433,7 @@ extension UniqueArray {
at: index, copying: newElements, newCount: newCount)
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Copies the elements of a container into this array at the specified
/// position.
///
@@ -345,7 +345,7 @@ extension UniqueArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension UniqueArray where Element: ~Copyable {
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Replaces the specified range of elements by at most `maximumCount` items
/// generated by a producer.
///
@@ -520,7 +520,7 @@ extension UniqueArray {
_storage.replace(removing: subrange, copying: newElements)
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Replaces the specified subrange of elements by copying the elements of
/// the given container.
///
@@ -610,7 +610,7 @@ extension UniqueArray {
newCount: c)
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Replaces the specified subrange of elements by copying the elements of
/// the given container.
///