We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02f5af0 commit 6476c1fCopy full SHA for 6476c1f
Sources/Testing/Expectations/ExpectationContext.swift
@@ -561,9 +561,6 @@ extension __ExpectationContext.__ImplicitlyPointerConvertible where Self: Collec
561
let resultPointer = UnsafeMutableBufferPointer<Element>.allocate(capacity: count)
562
let initializedEnd = resultPointer.initialize(fromContentsOf: self)
563
564
- if expectationContext.temporaryPointerCleanup.capacity == 0 {
565
- expectationContext.temporaryPointerCleanup.reserveCapacity(4)
566
- }
567
expectationContext.temporaryPointerCleanup.append {
568
resultPointer[..<initializedEnd].deinitialize()
569
resultPointer.deallocate()
0 commit comments