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 a0751a4 commit 0d92683Copy full SHA for 0d92683
stdlib/public/core/ObjectIdentifier.swift
@@ -67,7 +67,7 @@ public struct ObjectIdentifier: Sendable {
67
}
68
69
@_alwaysEmitIntoClient
70
- public init(_ x: any ~Copyable.Type) {
+ public init(_ x: any (~Copyable & ~Escapable).Type) {
71
self._value = unsafeBitCast(x, to: Builtin.RawPointer.self)
72
73
@@ -85,7 +85,7 @@ public struct ObjectIdentifier: Sendable {
85
86
87
@inlinable // trivial-implementation
88
- public init<T: ~Copyable>(_ x: T.Type) {
+ public init<T: ~Copyable & ~Escapable>(_ x: T.Type) {
89
self._value = unsafe unsafeBitCast(x, to: Builtin.RawPointer.self)
90
91
0 commit comments