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

@@ -558,7 +558,7 @@ extension UniqueArray {
>(
removing subrange: Range<Int>,
copying newElements: borrowing C
) {
) where C.Failure == Never {
// FIXME: Avoid moving the subsequent elements twice.
let c = newElements.count
_ensureFreeCapacity(c - subrange.count)
@@ -648,7 +648,7 @@ extension UniqueArray {
>(
removing subrange: Range<Int>,
copying newElements: borrowing C
) {
) where C.Failure == Never {
// FIXME: Avoid moving the subsequent elements twice.
let c = newElements.count
_ensureFreeCapacity(c - subrange.count)