mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
Fix build issues
This commit is contained in:
36 files changed
+175
-173
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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user