Skip to content

Commit 2ac37cb

Browse files
authored
Merge pull request #5690 from Gankro/versioned
WIP fix resilience build
2 parents c297932 + 9ad14ea commit 2ac37cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ extension Set {
12391239
}
12401240

12411241
extension Set : CustomStringConvertible, CustomDebugStringConvertible {
1242-
private func makeDescription(isDebug: Bool) -> String {
1242+
internal func makeDescription(isDebug: Bool) -> String {
12431243
var result = isDebug ? "Set([" : "["
12441244
var first = true
12451245
for member in self {
@@ -2829,6 +2829,7 @@ final internal class _HashableTypedNative${Self}Storage<${TypeParametersDecl}> :
28292829
/// The reason for this is to support storing AnyObject for bridging
28302830
/// with _SwiftDeferredNS${Self}. What functionality actually relies on
28312831
/// Hashable can be found in an extension.
2832+
@_versioned
28322833
internal struct _Native${Self}Buffer<${TypeParameters}> {
28332834

28342835
internal typealias RawStorage = _RawNative${Self}Storage
@@ -2917,12 +2918,14 @@ internal struct _Native${Self}Buffer<${TypeParameters}> {
29172918
}
29182919

29192920
// This API is unsafe and needs a `_fixLifetime` in the caller.
2921+
@_versioned
29202922
internal var keys: UnsafeMutablePointer<Key> {
29212923
return _storage.keys.assumingMemoryBound(to: Key.self)
29222924
}
29232925

29242926
%if Self == 'Dictionary':
29252927
// This API is unsafe and needs a `_fixLifetime` in the caller.
2928+
@_versioned
29262929
internal var values: UnsafeMutablePointer<Value> {
29272930
return _storage.values.assumingMemoryBound(to: Value.self)
29282931
}

0 commit comments

Comments
 (0)