Align Iterable with proposal

Adds throwing and ~Escapable elements
This commit is contained in:
Nate Cook authored and Karoy Lorentey committed 2026-06-17 14:27:29 -07:00
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
) {