Skip to content

Commit f0d8ca8

Browse files
committed
FIXME(ABI)swiftlang#14 : add argument labels to _arrayOutOfPlaceReplace
1 parent 3cc9b7f commit f0d8ca8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: stdlib/public/core/Arrays.swift.gyb

+5-5
Original file line numberDiff line numberDiff line change
@@ -1671,8 +1671,8 @@ extension _ArrayBufferProtocol where Index == Int {
16711671
@inline(never)
16721672
internal mutating func _arrayOutOfPlaceReplace<C : Collection>(
16731673
_ bounds: Range<Int>,
1674-
_ newValues: C,
1675-
_ insertCount: Int
1674+
with newValues: C,
1675+
count insertCount: Int
16761676
) where C.Iterator.Element == Element {
16771677

16781678
let growth = insertCount - bounds.count
@@ -1758,13 +1758,13 @@ extension ${Self} {
17581758
let insertCount = numericCast(newElements.count) as Int
17591759
let growth = insertCount - eraseCount
17601760

1761-
if self._buffer.requestUniqueMutableBackingBuffer(
1761+
if _buffer.requestUniqueMutableBackingBuffer(
17621762
minimumCapacity: oldCount + growth) != nil {
17631763

1764-
self._buffer.replace(
1764+
_buffer.replace(
17651765
subRange: subrange, with: insertCount, elementsOf: newElements)
17661766
} else {
1767-
_buffer._arrayOutOfPlaceReplace(subrange, newElements, insertCount)
1767+
_buffer._arrayOutOfPlaceReplace(subrange, with: newElements, count: insertCount)
17681768
}
17691769
}
17701770
}

0 commit comments

Comments
 (0)