mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
Align Iterable with proposal
Adds throwing and ~Escapable elements
This commit is contained in:
1 parent
4bda43f4a9
commit
dca015d7e8
37 files changed
+234
-221
No files matched your search
@@ -95,7 +95,7 @@ extension UniqueSet where Element: Copyable {
|
||||
#if UnstableContainersPreview
|
||||
@_alwaysEmitIntoClient
|
||||
public init<
|
||||
S: Iterable_<Element> & Sequence<Element>
|
||||
S: Iterable_<Element, Never> & Sequence<Element>
|
||||
>(
|
||||
copying items: borrowing S
|
||||
) {
|
||||
|
||||
@@ -172,7 +172,7 @@ extension UniqueSet /* where Element: Copyable */ {
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func insert<
|
||||
S: Iterable_<Element> & Sequence<Element>
|
||||
S: Iterable_<Element, Never> & Sequence<Element>
|
||||
>(
|
||||
copying items: borrowing S
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user