We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb3455e commit a0751a4Copy full SHA for a0751a4
stdlib/public/core/ObjectIdentifier.swift
@@ -65,6 +65,11 @@ public struct ObjectIdentifier: Sendable {
65
public init(_ x: Any.Type) {
66
self._value = unsafe unsafeBitCast(x, to: Builtin.RawPointer.self)
67
}
68
+
69
+ @_alwaysEmitIntoClient
70
+ public init(_ x: any ~Copyable.Type) {
71
+ self._value = unsafeBitCast(x, to: Builtin.RawPointer.self)
72
+ }
73
74
75
#else
@@ -80,7 +85,7 @@ public struct ObjectIdentifier: Sendable {
80
85
81
86
82
87
@inlinable // trivial-implementation
83
- public init<Object>(_ x: Object.Type) {
88
+ public init<T: ~Copyable>(_ x: T.Type) {
84
89
90
91
0 commit comments