You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[stdlib] Roll back generalization of the nil-coalescing operator ??
We cannot currently express its proper lifetime semantics: its result’s lifetime should depend on the intersection of the lifetime of the left argument and the lifetime of the result of the right argument.
`@lifetime(optional, defaultValue.result)` is what we want, but the `.result` part is not currently expressible. (Tying the dependency on the closure argument itself may be a viable option, but we aren’t confident enough to ship it like that yet.)
Copy file name to clipboardExpand all lines: test/api-digester/Outputs/stability-stdlib-source-base.swift.expected
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -233,7 +233,7 @@ Constructor UnsafeRawPointer.init(_:) has generic signature change from <T> to <
233
233
Enum MemoryLayout has generic signature change from <T> to <T where T : ~Copyable, T : ~Escapable>
234
234
Enum Optional has generic signature change from <Wrapped> to <Wrapped where Wrapped : ~Copyable, Wrapped : ~Escapable>
235
235
Enum Result has generic signature change from <Success, Failure where Failure : Swift.Error> to <Success, Failure where Failure : Swift.Error, Success : ~Copyable, Success : ~Escapable>
236
-
Func ??(_:_:) has generic signature change from <T> to <T where T : ~Copyable, T : ~Escapable>
236
+
Func ??(_:_:) has generic signature change from <T> to <T where T : ~Copyable>
237
237
Func ??(_:_:) has parameter 0 changing from Default to Owned
238
238
Func ManagedBuffer.create(minimumCapacity:makingHeaderWith:) has generic signature change from <Header, Element> to <Header, Element where Element : ~Copyable>
239
239
Func ManagedBufferPointer.isUniqueReference() has generic signature change from <Header, Element> to <Header, Element where Element : ~Copyable>
0 commit comments