We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0593c74 + baae7ee commit e57ba99Copy full SHA for e57ba99
stdlib/public/core/ArrayBufferProtocol.swift
@@ -128,7 +128,8 @@ extension _ArrayBufferProtocol where Indices == Range<Int>{
128
129
// Make sure the compiler does not inline _copyBuffer to reduce code size.
130
@inline(never)
131
- @usableFromInline
+ @inlinable // This code should be specializable such that copying an array is
132
+ // fast and does not end up in an unspecialized entry point.
133
internal init(copying buffer: Self) {
134
let newBuffer = _ContiguousArrayBuffer<Element>(
135
_uninitializedCount: buffer.count, minimumCapacity: buffer.count)
0 commit comments