Skip to content

Commit 7b654b3

Browse files
authored
[stdlib] Fix availability of Dictionary’s bulk-loading initializer (swiftlang#23643)
Making it @_alwaysEmitIntoClient makes it available in all OS versions.
1 parent b5610e7 commit 7b654b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/core/DictionaryBuilder.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ extension Dictionary {
7171
/// - body: A closure that can initialize the dictionary's elements. This
7272
/// closure must return the count of the initialized elements, starting at
7373
/// the beginning of the buffer.
74+
@_alwaysEmitIntoClient // Introduced in 5.1
7475
@inlinable
7576
public // SPI(Foundation)
7677
init(
@@ -90,6 +91,7 @@ extension Dictionary {
9091
}
9192

9293
extension _NativeDictionary {
94+
@_alwaysEmitIntoClient // Introduced in 5.1
9395
@inlinable
9496
internal init(
9597
_unsafeUninitializedCapacity capacity: Int,

0 commit comments

Comments
 (0)