Skip to content

Commit 71519aa

Browse files
committed
[stdlib] Apply minor review notes
1 parent febfd34 commit 71519aa

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

stdlib/public/core/MemoryLayout.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ extension MemoryLayout {
239239
@_transparent
240240
@_unavailableInEmbedded
241241
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.
245242
return key._storedInlineOffset
246243
}
247244
}

stdlib/public/core/MigrationSupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2024 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information

stdlib/public/core/Optional.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ public enum Optional<Wrapped: ~Copyable>: ~Copyable {
132132
case some(Wrapped)
133133
}
134134

135+
extension Optional: Copyable /* where Wrapped: Copyable */ {}
136+
135137
extension Optional: Sendable where Wrapped: ~Copyable & Sendable { }
136138

137139
extension Optional: _BitwiseCopyable where Wrapped: _BitwiseCopyable { }
138140

139-
extension Optional: Copyable /* where Wrapped: Copyable */ {}
140-
141141
@_preInverseGenerics
142142
extension Optional: ExpressibleByNilLiteral where Wrapped: ~Copyable {
143143
/// Creates an instance initialized with `nil`.

0 commit comments

Comments
 (0)