File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1601,9 +1601,9 @@ extension Array {
16011601
16021602 // Superseded by the typed-throws version of this function, but retained
16031603 // for ABI reasons.
1604+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
16041605 @usableFromInline
1605- @_disfavoredOverload
1606- func withUnsafeBufferPointer< R> (
1606+ internal func withUnsafeBufferPointer< R> (
16071607 _ body: ( UnsafeBufferPointer < Element > ) throws -> R
16081608 ) rethrows -> R {
16091609 return try unsafe _buffer. withUnsafeBufferPointer ( body)
Original file line number Diff line number Diff line change @@ -1176,9 +1176,9 @@ extension ArraySlice {
11761176extension ArraySlice {
11771177 // Superseded by the typed-throws version of this function, but retained
11781178 // for ABI reasons.
1179+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
11791180 @usableFromInline
1180- @_disfavoredOverload
1181- func withUnsafeBufferPointer< R> (
1181+ internal func withUnsafeBufferPointer< R> (
11821182 _ body: ( UnsafeBufferPointer < Element > ) throws -> R
11831183 ) rethrows -> R {
11841184 return try unsafe _buffer. withUnsafeBufferPointer ( body)
Original file line number Diff line number Diff line change @@ -1118,9 +1118,9 @@ extension ContiguousArray {
11181118
11191119 // Superseded by the typed-throws version of this function, but retained
11201120 // for ABI reasons.
1121+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
11211122 @usableFromInline
1122- @_disfavoredOverload
1123- func withUnsafeBufferPointer< R> (
1123+ internal func withUnsafeBufferPointer< R> (
11241124 _ body: ( UnsafeBufferPointer < Element > ) throws -> R
11251125 ) rethrows -> R {
11261126 return try unsafe _buffer. withUnsafeBufferPointer ( body)
Original file line number Diff line number Diff line change @@ -824,6 +824,9 @@ Func _SliceBuffer.withUnsafeMutableBufferPointer(_:) has mangled name changing f
824824
825825// Functions changed for typed throws
826826Constructor Array.init(_unsafeUninitializedCapacity:initializingWith:) has been removed
827+ Func Array.withUnsafeBufferPointer(_:) has been removed
828+ Func ArraySlice.withUnsafeBufferPointer(_:) has been removed
829+ Func ContiguousArray.withUnsafeBufferPointer(_:) has been removed
827830
828831Struct String.Index has added a conformance to an existing protocol CustomDebugStringConvertible
829832
You can’t perform that action at this time.
0 commit comments