File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1258,6 +1258,7 @@ extension Array: RangeReplaceableCollection {
1258
1258
}
1259
1259
1260
1260
@inlinable
1261
+ @_semantics ( " array.mutate_unknown " )
1261
1262
public mutating func _customRemoveLast( ) -> Element ? {
1262
1263
_makeMutableAndUnique ( )
1263
1264
let newCount = _getCount ( ) - 1
@@ -1285,6 +1286,7 @@ extension Array: RangeReplaceableCollection {
1285
1286
/// - Complexity: O(*n*), where *n* is the length of the array.
1286
1287
@inlinable
1287
1288
@discardableResult
1289
+ @_semantics ( " array.mutate_unknown " )
1288
1290
public mutating func remove( at index: Int ) -> Element {
1289
1291
_makeMutableAndUnique ( )
1290
1292
let currentCount = _getCount ( )
Original file line number Diff line number Diff line change @@ -890,6 +890,7 @@ extension ContiguousArray: RangeReplaceableCollection {
890
890
}
891
891
892
892
@inlinable
893
+ @_semantics ( " array.mutate_unknown " )
893
894
public mutating func _customRemoveLast( ) -> Element ? {
894
895
_makeMutableAndUnique ( )
895
896
let newCount = _getCount ( ) - 1
@@ -917,6 +918,7 @@ extension ContiguousArray: RangeReplaceableCollection {
917
918
/// - Complexity: O(*n*), where *n* is the length of the array.
918
919
@inlinable
919
920
@discardableResult
921
+ @_semantics ( " array.mutate_unknown " )
920
922
public mutating func remove( at index: Int ) -> Element {
921
923
_makeMutableAndUnique ( )
922
924
let currentCount = _getCount ( )
You can’t perform that action at this time.
0 commit comments