Skip to content

Commit 4a00da4

Browse files
committed
[Stdlib] Change AnyKeyPath to use @_objcRuntimeName attribute for its rename.
rdar://problem/46546165
1 parent 844da5c commit 4a00da4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
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

0 commit comments

Comments
 (0)