File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -239,9 +239,6 @@ extension MemoryLayout {
239
239
@_transparent
240
240
@_unavailableInEmbedded
241
241
public static func offset( of key: PartialKeyPath < T > ) -> Int ? {
242
- // FIXME(noncopyableGenerics): The new (implicit) `where T: Copyable`
243
- // extension constraint currently changes the mangling of this from a
244
- // standalone function to an extension method.
245
242
return key. _storedInlineOffset
246
243
}
247
244
}
Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
Original file line number Diff line number Diff line change @@ -132,12 +132,12 @@ public enum Optional<Wrapped: ~Copyable>: ~Copyable {
132
132
case some( Wrapped )
133
133
}
134
134
135
+ extension Optional : Copyable /* where Wrapped: Copyable */ { }
136
+
135
137
extension Optional : Sendable where Wrapped: ~ Copyable & Sendable { }
136
138
137
139
extension Optional : _BitwiseCopyable where Wrapped: _BitwiseCopyable { }
138
140
139
- extension Optional : Copyable /* where Wrapped: Copyable */ { }
140
-
141
141
@_preInverseGenerics
142
142
extension Optional : ExpressibleByNilLiteral where Wrapped: ~ Copyable {
143
143
/// Creates an instance initialized with `nil`.
You can’t perform that action at this time.
0 commit comments