Skip to content

Commit af1fa9c

Browse files
authored
Merge pull request #26651 from gregomni/stdlib-warnings
2 parents 586327a + dd4c605 commit af1fa9c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

stdlib/public/core/DictionaryBridging.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ final internal class _SwiftDeferredNSDictionary<Key: Hashable, Value>
313313
let bridgedKeys = bridgeKeys()
314314
let bridgedValues = bridgeValues()
315315
var i = 0 // Current position in the output buffers
316-
let bucketCount = native._storage._bucketCount
317316

318317
defer { _fixLifetime(self) }
319318

stdlib/public/core/KeyPath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ public class ReferenceWritableKeyPath<
357357
internal final func _projectMutableAddress(from origBase: Root)
358358
-> (pointer: UnsafeMutablePointer<Value>, owner: AnyObject?) {
359359
var keepAlive: AnyObject?
360-
var address: UnsafeMutablePointer<Value> = withBuffer {
360+
let address: UnsafeMutablePointer<Value> = withBuffer {
361361
var buffer = $0
362362
// Project out the reference prefix.
363363
var base: Any = origBase

stdlib/public/core/Sort.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ extension MutableCollection where Self: RandomAccessCollection {
246246
public mutating func sort(
247247
by areInIncreasingOrder: (Element, Element) throws -> Bool
248248
) rethrows {
249-
let didSortUnsafeBuffer = try _withUnsafeMutableBufferPointerIfSupported {
250-
buffer -> Void? in
249+
let didSortUnsafeBuffer: Void? = try _withUnsafeMutableBufferPointerIfSupported {
250+
buffer -> Void in
251251
try buffer._stableSortImpl(by: areInIncreasingOrder)
252252
}
253253
if didSortUnsafeBuffer == nil {

0 commit comments

Comments
 (0)