[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

@@ -207,7 +207,7 @@ extension RigidArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension RigidArray where Element: ~Copyable {
#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.
///
@@ -243,7 +243,7 @@ extension RigidArray 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
@@ -342,7 +342,7 @@ extension RigidArray {
return it
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@inlinable
internal mutating func _append<
Source: BorrowingSequence<Element> & ~Copyable & ~Escapable
@@ -354,7 +354,7 @@ extension 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 all items in the
@@ -396,7 +396,7 @@ extension RigidArray {
precondition(it.next() == nil, "RigidArray capacity overflow")
}
#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 all items in the
@@ -187,8 +187,15 @@ extension RigidArray where Element: ~Copyable {
}
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@available(SwiftStdlib 5.0, *)
extension RigidArray.SubrangeConsumer: Drain where Element: ~Copyable {
}
#endif
@available(SwiftStdlib 5.0, *)
extension RigidArray.SubrangeConsumer where Element: ~Copyable {
@inlinable
@_lifetime(&self)
@_lifetime(self: copy self)
@@ -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 RigidArray: BorrowingSequence where Element: ~Copyable {
public typealias BorrowingIterator = SpanIterator<Element>
@@ -34,7 +34,7 @@ extension RigidArray: BorrowingSequence where Element: ~Copyable {
}
#endif
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@available(SwiftStdlib 5.0, *)
extension RigidArray: Container where Element: ~Copyable {}
@@ -113,7 +113,7 @@ extension RigidArray /*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 capacity, holding a copy
/// of the contents of a given container.
///
@@ -134,7 +134,7 @@ extension RigidArray /*where Element: Copyable*/ {
#endif
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
/// Creates a new array with the specified capacity, holding a copy
/// of the contents of a given container.
///
@@ -268,7 +268,7 @@ extension RigidArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension RigidArray 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.
///
@@ -404,7 +404,7 @@ extension RigidArray {
}
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@_alwaysEmitIntoClient
internal mutating func _insertContainer<
C: Container<Element> & ~Copyable & ~Escapable
@@ -451,7 +451,7 @@ extension RigidArray {
_count += 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.
///
@@ -511,7 +511,7 @@ extension RigidArray {
at: index, copying: newElements, newCount: newElements.count)
}
#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.
///
@@ -408,7 +408,7 @@ extension RigidArray where Element: ~Copyable {
@available(SwiftStdlib 5.0, *)
extension RigidArray 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 `newItemCount` items
/// generated by a producer.
///
@@ -579,7 +579,7 @@ extension RigidArray {
}
}
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
@inlinable
internal mutating func _replace<
C: Container<Element> & ~Copyable & ~Escapable
@@ -631,7 +631,7 @@ extension RigidArray {
}
#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.
///
@@ -711,7 +711,7 @@ extension RigidArray {
newCount: newElements.count)
}
#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.
///
@@ -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.
///