Skip to content

Commit 90fd4ba

Browse files
author
Lance Parker
committed
All the @inlinables in ContigArray are good
1 parent 6952909 commit 90fd4ba

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ internal var _emptyArrayStorage : __EmptyArrayStorage {
7171
}
7272

7373
// The class that implements the storage for a ContiguousArray<Element>
74-
@_fixed_layout // FIXME(sil-serialize-all)
74+
@_fixed_layout
7575
@usableFromInline
7676
internal final class _ContiguousArrayStorage<
7777
Element
7878
> : __ContiguousArrayStorageBase {
7979

80-
@inlinable // FIXME(sil-serialize-all)
80+
@inlinable
8181
deinit {
8282
_elementPointer.deinitialize(count: countAndCapacity.count)
8383
_fixLifetime(self)
@@ -654,7 +654,7 @@ internal struct _UnsafePartiallyInitializedContiguousArrayBuffer<Element> {
654654

655655
/// Initialize the buffer with an initial size of `initialCapacity`
656656
/// elements.
657-
@inlinable // FIXME(sil-serialize-all)
657+
@inlinable
658658
@inline(__always) // For performance reasons.
659659
internal init(initialCapacity: Int) {
660660
if initialCapacity == 0 {
@@ -670,7 +670,7 @@ internal struct _UnsafePartiallyInitializedContiguousArrayBuffer<Element> {
670670
}
671671

672672
/// Add an element to the buffer, reallocating if necessary.
673-
@inlinable // FIXME(sil-serialize-all)
673+
@inlinable
674674
@inline(__always) // For performance reasons.
675675
internal mutating func add(_ element: Element) {
676676
if remainingCapacity == 0 {
@@ -693,7 +693,7 @@ internal struct _UnsafePartiallyInitializedContiguousArrayBuffer<Element> {
693693
}
694694

695695
/// Add an element to the buffer, which must have remaining capacity.
696-
@inlinable // FIXME(sil-serialize-all)
696+
@inlinable
697697
@inline(__always) // For performance reasons.
698698
internal mutating func addWithExistingCapacity(_ element: Element) {
699699
_sanityCheck(remainingCapacity > 0,
@@ -709,7 +709,7 @@ internal struct _UnsafePartiallyInitializedContiguousArrayBuffer<Element> {
709709
///
710710
/// Returns the fully-initialized buffer. `self` is reset to contain an
711711
/// empty buffer and cannot be used afterward.
712-
@inlinable // FIXME(sil-serialize-all)
712+
@inlinable
713713
@inline(__always) // For performance reasons.
714714
internal mutating func finish() -> ContiguousArray<Element> {
715715
// Adjust the initialized count of the buffer.
@@ -724,7 +724,7 @@ internal struct _UnsafePartiallyInitializedContiguousArrayBuffer<Element> {
724724
///
725725
/// Returns the fully-initialized buffer. `self` is reset to contain an
726726
/// empty buffer and cannot be used afterward.
727-
@inlinable // FIXME(sil-serialize-all)
727+
@inlinable
728728
@inline(__always) // For performance reasons.
729729
internal mutating func finishWithOriginalCount() -> ContiguousArray<Element> {
730730
_sanityCheck(remainingCapacity == result.capacity - result.count,

0 commit comments

Comments
 (0)