Skip to content

Commit 079fa8a

Browse files
authored
Merge pull request #16571 from slavapestov/fix-stdlib-nits
Fix minor stdlib nits
2 parents e3a4b68 + 89e48ff commit 079fa8a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ internal func _copyCollectionToContiguousArray<
642642
_uninitializedCount: count,
643643
minimumCapacity: 0)
644644

645-
var p = UnsafeMutableBufferPointer(start: result.firstElementAddress, count: count)
645+
let p = UnsafeMutableBufferPointer(start: result.firstElementAddress, count: count)
646646
var (itr, end) = source._copyContents(initializing: p)
647647

648648
_debugPrecondition(itr.next() == nil,

stdlib/public/core/KeyPath.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
157157
return try f(KeyPathBuffer(base: base))
158158
}
159159

160-
@_inlineable // FIXME(sil-serialize-all)
161-
@_versioned // FIXME(sil-serialize-all)
160+
@inlinable // FIXME(sil-serialize-all)
162161
internal var _storedInlineOffset: Int? {
163162
return withBuffer {
164163
var buffer = $0

stdlib/public/core/MemoryLayout.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ extension MemoryLayout {
212212
/// result of `offset(of:)` changes to `nil`. That kind of conversion is
213213
/// non-breaking in other contexts, but would trigger a runtime error if the
214214
/// result of `offset(of:)` is force-unwrapped.
215-
@_inlineable // FIXME(sil-serialize-all)
215+
@inlinable // FIXME(sil-serialize-all)
216216
@_transparent
217217
public static func offset(of key: PartialKeyPath<T>) -> Int? {
218218
return key._storedInlineOffset

0 commit comments

Comments
 (0)