mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54: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
@@ -396,7 +396,7 @@ extension UniqueArray {
|
||||
C: Container<Element> & ~Copyable & ~Escapable
|
||||
>(
|
||||
copying newElements: borrowing C, at index: Int
|
||||
) {
|
||||
) where C.Failure == Never {
|
||||
// FIXME: Avoid moving the subsequent elements twice.
|
||||
let c = newElements.count
|
||||
_ensureFreeCapacity(c)
|
||||
@@ -463,7 +463,7 @@ extension UniqueArray {
|
||||
C: Container<Element> & Collection<Element>
|
||||
>(
|
||||
copying newElements: borrowing C, at index: Int
|
||||
) {
|
||||
) where C.Failure == Never {
|
||||
// FIXME: Avoid moving the subsequent elements twice.
|
||||
let c = newElements.count
|
||||
_ensureFreeCapacity(c)
|
||||
|
||||
Reference in new issue
Block a user