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 {
1601
1601
1602
1602
// Superseded by the typed-throws version of this function, but retained
1603
1603
// for ABI reasons.
1604
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1604
1605
@usableFromInline
1605
- @_disfavoredOverload
1606
- func withUnsafeBufferPointer< R> (
1606
+ internal func withUnsafeBufferPointer< R> (
1607
1607
_ body: ( UnsafeBufferPointer < Element > ) throws -> R
1608
1608
) rethrows -> R {
1609
1609
return try unsafe _buffer. withUnsafeBufferPointer ( body)
Original file line number Diff line number Diff line change @@ -1176,9 +1176,9 @@ extension ArraySlice {
1176
1176
extension ArraySlice {
1177
1177
// Superseded by the typed-throws version of this function, but retained
1178
1178
// for ABI reasons.
1179
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1179
1180
@usableFromInline
1180
- @_disfavoredOverload
1181
- func withUnsafeBufferPointer< R> (
1181
+ internal func withUnsafeBufferPointer< R> (
1182
1182
_ body: ( UnsafeBufferPointer < Element > ) throws -> R
1183
1183
) rethrows -> R {
1184
1184
return try unsafe _buffer. withUnsafeBufferPointer ( body)
Original file line number Diff line number Diff line change @@ -1118,9 +1118,9 @@ extension ContiguousArray {
1118
1118
1119
1119
// Superseded by the typed-throws version of this function, but retained
1120
1120
// for ABI reasons.
1121
+ @_spi ( SwiftStdlibLegacyABI) @available ( swift, obsoleted: 1 )
1121
1122
@usableFromInline
1122
- @_disfavoredOverload
1123
- func withUnsafeBufferPointer< R> (
1123
+ internal func withUnsafeBufferPointer< R> (
1124
1124
_ body: ( UnsafeBufferPointer < Element > ) throws -> R
1125
1125
) rethrows -> R {
1126
1126
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
824
824
825
825
// Functions changed for typed throws
826
826
Constructor 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
827
830
828
831
Struct String.Index has added a conformance to an existing protocol CustomDebugStringConvertible
829
832
You can’t perform that action at this time.
0 commit comments