@@ -995,7 +995,7 @@ extension ContiguousArray: RangeReplaceableCollection {
995995 public mutating func _withUnsafeMutableBufferPointerIfSupported< R> (
996996 _ body: ( inout UnsafeMutableBufferPointer < Element > ) throws -> R
997997 ) rethrows -> R ? {
998- return try withUnsafeMutableBufferPointer {
998+ return try unsafe withUnsafeMutableBufferPointer {
999999 ( bufferPointer) -> R in
10001000 return try unsafe body( & bufferPointer)
10011001 }
@@ -1005,7 +1005,7 @@ extension ContiguousArray: RangeReplaceableCollection {
10051005 public mutating func withContiguousMutableStorageIfAvailable< R> (
10061006 _ body: ( inout UnsafeMutableBufferPointer < Element > ) throws -> R
10071007 ) rethrows -> R ? {
1008- return try withUnsafeMutableBufferPointer {
1008+ return try unsafe withUnsafeMutableBufferPointer {
10091009 ( bufferPointer) -> R in
10101010 return try unsafe body( & bufferPointer)
10111011 }
@@ -1015,7 +1015,7 @@ extension ContiguousArray: RangeReplaceableCollection {
10151015 public func withContiguousStorageIfAvailable< R> (
10161016 _ body: ( UnsafeBufferPointer < Element > ) throws -> R
10171017 ) rethrows -> R ? {
1018- return try withUnsafeBufferPointer {
1018+ return try unsafe withUnsafeBufferPointer {
10191019 ( bufferPointer) -> R in
10201020 return try unsafe body( bufferPointer)
10211021 }
@@ -1059,7 +1059,7 @@ extension ContiguousArray: CustomStringConvertible, CustomDebugStringConvertible
10591059extension ContiguousArray {
10601060 @usableFromInline @_transparent
10611061 internal func _cPointerArgs( ) -> ( AnyObject ? , UnsafeRawPointer ? ) {
1062- let p = _baseAddressIfContiguous
1062+ let p = unsafe _baseAddressIfContiguous
10631063 if unsafe _fastPath( p != nil || isEmpty) {
10641064 return ( _owner, UnsafeRawPointer ( p) )
10651065 }
@@ -1173,7 +1173,7 @@ extension ContiguousArray {
11731173 mutating func __abi_withUnsafeMutableBufferPointer< R> (
11741174 _ body: ( inout UnsafeMutableBufferPointer < Element > ) throws -> R
11751175 ) rethrows -> R {
1176- return try withUnsafeMutableBufferPointer ( body)
1176+ return try unsafe withUnsafeMutableBufferPointer( body)
11771177 }
11781178
11791179 /// Calls the given closure with a pointer to the array's mutable contiguous
@@ -1272,7 +1272,7 @@ extension ContiguousArray {
12721272 _precondition ( self . count <= buffer. count,
12731273 " Insufficient space allocated to copy array contents " )
12741274
1275- if let s = _baseAddressIfContiguous {
1275+ if let s = unsafe _baseAddressIfContiguous {
12761276 unsafe p. initialize ( from: s, count: self . count)
12771277 // Need a _fixLifetime bracketing the _baseAddressIfContiguous getter
12781278 // and all uses of the pointer it returns:
@@ -1446,7 +1446,7 @@ extension ContiguousArray {
14461446 public mutating func withUnsafeMutableBytes< R> (
14471447 _ body: ( UnsafeMutableRawBufferPointer ) throws -> R
14481448 ) rethrows -> R {
1449- return try self . withUnsafeMutableBufferPointer {
1449+ return try unsafe self. withUnsafeMutableBufferPointer {
14501450 return try unsafe body( UnsafeMutableRawBufferPointer ( $0) )
14511451 }
14521452 }
@@ -1482,7 +1482,7 @@ extension ContiguousArray {
14821482 public func withUnsafeBytes< R> (
14831483 _ body: ( UnsafeRawBufferPointer ) throws -> R
14841484 ) rethrows -> R {
1485- return try self . withUnsafeBufferPointer {
1485+ return try unsafe self. withUnsafeBufferPointer {
14861486 try unsafe body( UnsafeRawBufferPointer ( $0) )
14871487 }
14881488 }
0 commit comments