[ContainersPreview] Exhibit A in the case against prototyping things in the stdlib 😞

This commit is contained in:
Karoy Lorentey committed 2026-03-26 17:14:45 -07:00
1 parent 3e380cb358
commit 419e2f7df2
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<