File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -497,9 +497,9 @@ extension MutableSpan where Element: ~Copyable {
497
497
// source.count <= self.count,
498
498
// "destination span cannot contain every element from source."
499
499
// )
500
- // let buffer = source.relinquishBorrowedMemory()
500
+ // let buffer = unsafe source.relinquishBorrowedMemory()
501
501
// // we must now deinitialize the returned UMBP
502
- // _start().moveInitializeMemory(
502
+ // unsafe _start().moveInitializeMemory(
503
503
// as: Element.self, from: buffer.baseAddress!, count: buffer.count
504
504
// )
505
505
// return buffer.count
@@ -524,9 +524,7 @@ extension MutableSpan {
524
524
public mutating func moveUpdate(
525
525
fromContentsOf source: Slice < UnsafeMutableBufferPointer < Element > >
526
526
) -> Index {
527
- unsafe moveUpdate(
528
- fromContentsOf: UnsafeMutableBufferPointer ( rebasing: source)
529
- )
527
+ moveUpdate ( fromContentsOf: unsafe . init ( rebasing: source) )
530
528
}
531
529
}
532
530
@@ -707,14 +705,6 @@ extension MutableSpan where Element: ~Copyable {
707
705
///
708
706
/// - Complexity: O(1)
709
707
@unsafe
710
- @_alwaysEmitIntoClient
711
- @lifetime ( borrow self)
712
- mutating public func _extracting(
713
- unchecked bounds: some RangeExpression < Index >
714
- ) -> Self {
715
- unsafe _extracting( unchecked: bounds. relative ( to: indices) )
716
- }
717
-
718
708
@_alwaysEmitIntoClient
719
709
@lifetime ( borrow self)
720
710
mutating public func _extracting(
You can’t perform that action at this time.
0 commit comments