mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
Bump availability of Iterable_ and Container protocols to SwiftStdlib 6.4
This is preparing for switching over to the stdlib’s definition of `protocol Iterable`, assuming it will land with macOS 27/iOS 27 etc availability; `Container` is refining `Iterable`, so it needs matching availability. If `Iterable` won’t ship in Swift 6.4, then we’ll need to bump this again.
This commit is contained in:
66 files changed
+645
-418
No files matched your search
@@ -75,6 +75,7 @@ extension UniqueSet where Element: ~Copyable {
|
||||
extension UniqueSet where Element: Copyable {
|
||||
|
||||
#if UnstableContainersPreview
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
public init<
|
||||
S: Iterable_ & ~Copyable & ~Escapable
|
||||
@@ -94,6 +95,7 @@ extension UniqueSet where Element: Copyable {
|
||||
}
|
||||
|
||||
#if UnstableContainersPreview
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
public init<
|
||||
S: Iterable_ & Sequence<Element>
|
||||
|
||||
@@ -131,6 +131,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
}
|
||||
|
||||
#if UnstableContainersPreview
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
package mutating func _insert<
|
||||
S: Iterable_ & ~Copyable & ~Escapable
|
||||
@@ -149,6 +150,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
#endif
|
||||
|
||||
#if UnstableContainersPreview
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func insert<
|
||||
@@ -171,6 +173,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
}
|
||||
|
||||
#if UnstableContainersPreview
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func insert<
|
||||
|
||||
Reference in new issue
Block a user