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 {
61
61
///
62
62
/// - Parameters:
63
63
/// - x: A metatype.
64
- @inlinable // trivial-implementation
65
- public init ( _ x: Any . Type ) {
64
+ @_alwaysEmitIntoClient
65
+ public init ( _ x: any ( ~ Copyable & ~ Escapable ) . Type) {
66
66
self . _value = unsafe unsafeBitCast( x, to: Builtin . RawPointer. self)
67
67
}
68
68
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)
81
73
}
82
74
}
83
75
You can’t perform that action at this time.
0 commit comments