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
- Fix accidental omission of `UnboundedRange`-taking overloads of `extracting`.
- Reflect SE-0427’s outcome and add explicit `where Foo: Copyable` clauses for conditional conformances to Copyable.
- Fix typo where `Result` forgot to declare itself `~Copyable`
- Fix typo where an `withExtendedLifetime(_:_:)` overload was shown with a signature requiring copyable Ts.
extensionOptional: Copyable where Wrapped:Copyable {}
145
145
```
146
146
147
147
This is no small matter -- every existing use of `Optional` implicitly assumes its copyability, including all its protocol conformances. We need to lift this assumption without breaking source- and (on some platforms) binary compatibility with existing code that relies on it.
@@ -596,12 +596,12 @@ The standard `Result` type similarly needs to be generalized to allow noncopyabl
There exists a second variant of `withExtendedLifetime` whose function argument is passed the entity whose lifetime is being extended. This variant is less frequently used, but it still makes sense to generalize this to pass a borrowed instance:
0 commit comments