File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -61,23 +61,15 @@ public struct ObjectIdentifier: Sendable {
6161 ///
6262 /// - Parameters:
6363 /// - x: A metatype.
64- @inlinable // trivial-implementation
65- public init ( _ x: Any . Type ) {
64+ @_alwaysEmitIntoClient
65+ public init ( _ x: any ( ~ Copyable & ~ Escapable ) . Type) {
6666 self . _value = unsafe unsafeBitCast( x, to: Builtin . RawPointer. self)
6767 }
6868
69- /// Creates an instance that uniquely identifies the given metatype.
70- ///
71- /// - Parameters:
72- /// - x: A metatype.
73- @_alwaysEmitIntoClient
74- @_disfavoredOverload
75- public init < T: ~ Copyable & ~ Escapable> ( _ x: T . Type ) {
76- // FIXME: This should rather use an existential:
77- // FIXME: init(_ x: any (~Copyable & ~Escapable).Type)
78- // FIXME: Unfortunately, that syntax does not survive into the
79- // FIXME: swiftinterface. rdar://139465298
80- self . _value = unsafeBitCast ( x, to: Builtin . RawPointer. self)
69+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
70+ @usableFromInline
71+ internal init ( _ x: Any . Type ) {
72+ self . _value = unsafe unsafeBitCast( x, to: Builtin . RawPointer. self)
8173 }
8274}
8375
You can’t perform that action at this time.
0 commit comments