@@ -946,7 +946,9 @@ extension UnsafeMutableBufferPointer {
946946 $0. count <= self . count,
947947 " buffer cannot contain every element from source. "
948948 )
949- baseAddress? . initialize ( from: sourceAddress, count: $0. count)
949+ baseAddress. unsafelyUnwrapped. initialize (
950+ from: sourceAddress, count: $0. count
951+ )
950952 return $0. count
951953 }
952954 if let count {
@@ -1049,7 +1051,7 @@ extension UnsafeMutableBufferPointer {
10491051 $0. count <= self . count,
10501052 " buffer cannot contain every element from source. "
10511053 )
1052- baseAddress? . update ( from: sourceAddress, count: $0. count)
1054+ baseAddress. unsafelyUnwrapped . update ( from: sourceAddress, count: $0. count)
10531055 return $0. count
10541056 }
10551057 if let count {
@@ -1117,7 +1119,9 @@ extension UnsafeMutableBufferPointer where Element: ~Copyable {
11171119 source. count <= self . count,
11181120 " buffer cannot contain every element from source. "
11191121 )
1120- baseAddress? . moveInitialize ( from: sourceAddress, count: source. count)
1122+ baseAddress. unsafelyUnwrapped. moveInitialize (
1123+ from: sourceAddress, count: source. count
1124+ )
11211125 return startIndex. advanced ( by: source. count)
11221126 }
11231127}
@@ -1191,7 +1195,9 @@ extension UnsafeMutableBufferPointer where Element: ~Copyable {
11911195 source. count <= self . count,
11921196 " buffer cannot contain every element from source. "
11931197 )
1194- baseAddress? . moveUpdate ( from: sourceAddress, count: source. count)
1198+ baseAddress. unsafelyUnwrapped. moveUpdate (
1199+ from: sourceAddress, count: source. count
1200+ )
11951201 return startIndex. advanced ( by: source. count)
11961202 }
11971203}
0 commit comments