mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +00:00
[ContainersPreview] Exhibit A in the case against prototyping things in the stdlib 😞
This commit is contained in:
56 files changed
+200
-98
No files matched your search
@@ -18,7 +18,7 @@ import ContainersPreview
|
||||
|
||||
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_HASHED_CONTAINERS && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueSet: Hashable {
|
||||
@inlinable
|
||||
public func hash(into hasher: inout Hasher) {
|
||||
|
||||
@@ -73,6 +73,7 @@ extension UniqueSet where Element: ~Copyable {
|
||||
extension UniqueSet where Element: Copyable {
|
||||
|
||||
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
public init<
|
||||
S: BorrowingSequence<Element> & ~Copyable & ~Escapable
|
||||
@@ -91,6 +92,7 @@ extension UniqueSet where Element: Copyable {
|
||||
}
|
||||
|
||||
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
public init<
|
||||
S: BorrowingSequence<Element> & Sequence<Element>
|
||||
|
||||
@@ -128,6 +128,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
}
|
||||
|
||||
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
package mutating func _insert<
|
||||
S: BorrowingSequence<Element> & ~Copyable & ~Escapable
|
||||
@@ -145,6 +146,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
#endif
|
||||
|
||||
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func insert<
|
||||
@@ -167,6 +169,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
}
|
||||
|
||||
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func insert<
|
||||
|
||||
Reference in new issue
Block a user