Skip to content

Commit d75f820

Browse files
authored
Merge pull request swiftlang#20791 from slavapestov/small-abi-nit
stdlib: __SwiftNativeNSString does not need to be public
2 parents d1eb3a5 + 86b5411 commit d75f820

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

stdlib/public/core/StringBridge.swift

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,9 @@ extension String {
267267
// The @_swift_native_objc_runtime_base attribute
268268
// This allows us to subclass an Objective-C class and use the fast Swift
269269
// memory allocator.
270-
@_fixed_layout // FIXME(sil-serialize-all)
271270
@objc @_swift_native_objc_runtime_base(__SwiftNativeNSStringBase)
272-
public class __SwiftNativeNSString {
273-
@usableFromInline // FIXME(sil-serialize-all)
274-
@objc
275-
internal init() {}
271+
class __SwiftNativeNSString {
272+
@objc internal init() {}
276273
deinit {}
277274
}
278275

test/api-digester/Outputs/stability-stdlib-abi.swift.expected

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,3 +498,5 @@ Func LazyCollectionProtocol.map(_:) has been removed
498498
Func LazyCollectionProtocol.prefix(while:) has been removed
499499
Func LazyCollectionProtocol.reversed() has been removed
500500
Var LazyCollectionProtocol.lazy has declared type change from LazyCollection<τ_0_0.Elements> to LazySequence<τ_0_0.Elements>
501+
502+
Class __SwiftNativeNSString has been removed

0 commit comments

Comments
 (0)