Skip to content

Commit 6b94802

Browse files
committed
[Stdlib] Change AnyKeyPath to use @_objcRuntimeName attribute for its rename.
rdar://problem/46546165
1 parent ac37684 commit 6b94802

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ internal func _abstract(
2929
/// A type-erased key path, from any root type to any resulting value
3030
/// type. NOTE: older runtimes had Swift.AnyKeyPath as the ObjC name.
3131
/// The two must coexist, so it was renamed. The old name must not be
32-
/// used in the new runtime.
33-
@objc(_SwiftAnyKeyPath)
32+
/// used in the new runtime. _TtCs11_AnyKeyPath is the mangled name for
33+
/// Swift._AnyKeyPath.
34+
@_objcRuntimeName(_TtCs11_AnyKeyPath)
3435
public class AnyKeyPath: Hashable, _AppendKeyPath {
3536
/// The root type for this key path.
3637
@inlinable

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,5 +604,3 @@ Var String.Index._utf16Index has been removed (deprecated)
604604

605605
Func MutableCollection.withContiguousMutableStorageIfAvailable(_:) has been added as a protocol requirement
606606
Func Sequence.withContiguousStorageIfAvailable(_:) has been added as a protocol requirement
607-
608-
Class AnyKeyPath is now with @objc

0 commit comments

Comments
 (0)