Skip to content

Commit f16eda4

Browse files
committed
[stdlib] add a missing deprecation
1 parent aa54818 commit f16eda4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/private/StdlibCollectionUnittest/LoggingWrappers.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ extension LoggingMutableCollection: MutableCollection {
387387
return try base.partition(by: belongsInSecondPartition)
388388
}
389389

390+
@available(*, deprecated, renamed: "withContiguousMutableStorageIfAvailable")
390391
public mutating func _withUnsafeMutableBufferPointerIfSupported<R>(
391392
_ body: (inout UnsafeMutableBufferPointer<Element>) throws -> R
392393
) rethrows -> R? {
@@ -601,6 +602,7 @@ extension BufferAccessLoggingMutableCollection: MutableCollection {
601602
return base.distance(from: start, to: end)
602603
}
603604

605+
@available(*, deprecated, renamed: "withContiguousMutableStorageIfAvailable")
604606
public mutating func _withUnsafeMutableBufferPointerIfSupported<R>(
605607
_ body: (inout UnsafeMutableBufferPointer<Element>) throws -> R
606608
) rethrows -> R? {

0 commit comments

Comments
 (0)