Skip to content

Commit 9acf214

Browse files
authored
Merge pull request #36002 from lorentey/inline-partitioning-impl
[stdlib] Make MutableCollection.partition(by:) implementation inlinable
2 parents 082f091 + 4f016c9 commit 9acf214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/CollectionAlgorithms.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ extension MutableCollection where Self: BidirectionalCollection {
330330
return try _partitionImpl(by: belongsInSecondPartition)
331331
}
332332
}
333-
334-
@usableFromInline
333+
334+
@inlinable
335335
internal mutating func _partitionImpl(
336336
by belongsInSecondPartition: (Element) throws -> Bool
337337
) rethrows -> Index {

0 commit comments

Comments
 (0)