Skip to content

Commit 03d37a9

Browse files
committed
[stdlib] use _copyContents after all
- originally had avoided `_copyContents` because all the standard library fast paths were already covered. - however Swift Collections piecewise-contiguous collections still rely on `_copyContents` to accelerate copies.
1 parent 7f4caed commit 03d37a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ extension Unsafe${Mutable}BufferPointer {
729729
return startIndex.advanced(by: count)
730730
}
731731

732-
var (iterator, copied) = source._copySequenceContents(initializing: self)
732+
var (iterator, copied) = source._copyContents(initializing: self)
733733
_precondition(
734734
iterator.next() == nil,
735735
"buffer cannot contain every element from source."

0 commit comments

Comments
 (0)