@@ -190,7 +190,7 @@ extension MutableRawSpan {
190
190
191
191
@unsafe
192
192
@_alwaysEmitIntoClient
193
- @lifetime ( borrow self)
193
+ @lifetime ( & self )
194
194
public mutating func _unsafeMutableView< T: BitwiseCopyable > (
195
195
as type: T . Type
196
196
) -> MutableSpan < T > {
@@ -448,7 +448,7 @@ extension MutableRawSpan {
448
448
///
449
449
/// - Complexity: O(1)
450
450
@_alwaysEmitIntoClient
451
- @lifetime ( borrow self)
451
+ @lifetime ( & self )
452
452
mutating public func extracting( _ bounds: Range < Int > ) -> Self {
453
453
_precondition (
454
454
UInt ( bitPattern: bounds. lowerBound) <= UInt ( bitPattern: _count) &&
@@ -475,7 +475,7 @@ extension MutableRawSpan {
475
475
/// - Complexity: O(1)
476
476
@unsafe
477
477
@_alwaysEmitIntoClient
478
- @lifetime ( borrow self)
478
+ @lifetime ( & self )
479
479
mutating public func extracting( unchecked bounds: Range < Int > ) -> Self {
480
480
let newStart = unsafe _pointer? . advanced ( by: bounds. lowerBound)
481
481
let newSpan = unsafe Self( _unchecked: newStart, byteCount: bounds. count)
@@ -496,7 +496,7 @@ extension MutableRawSpan {
496
496
///
497
497
/// - Complexity: O(1)
498
498
@_alwaysEmitIntoClient
499
- @lifetime ( borrow self)
499
+ @lifetime ( & self )
500
500
mutating public func extracting(
501
501
_ bounds: some RangeExpression < Int >
502
502
) -> Self {
@@ -520,7 +520,7 @@ extension MutableRawSpan {
520
520
/// - Complexity: O(1)
521
521
@unsafe
522
522
@_alwaysEmitIntoClient
523
- @lifetime ( borrow self)
523
+ @lifetime ( & self )
524
524
mutating public func extracting( unchecked bounds: ClosedRange < Int > ) -> Self {
525
525
let range = unsafe Range(
526
526
_uncheckedBounds: ( bounds. lowerBound, bounds. upperBound+ 1 )
@@ -538,7 +538,7 @@ extension MutableRawSpan {
538
538
///
539
539
/// - Complexity: O(1)
540
540
@_alwaysEmitIntoClient
541
- @lifetime ( borrow self)
541
+ @lifetime ( & self )
542
542
mutating public func extracting( _: UnboundedRange ) -> Self {
543
543
let newSpan = unsafe Self( _unchecked: _start ( ) , byteCount: _count)
544
544
return unsafe _override Lifetime ( newSpan, mutating: & self )
@@ -565,7 +565,7 @@ extension MutableRawSpan {
565
565
///
566
566
/// - Complexity: O(1)
567
567
@_alwaysEmitIntoClient
568
- @lifetime ( borrow self)
568
+ @lifetime ( & self )
569
569
mutating public func extracting( first maxLength: Int ) -> Self {
570
570
_precondition ( maxLength >= 0 , " Can't have a prefix of negative length " )
571
571
let newCount = min ( maxLength, byteCount)
@@ -588,7 +588,7 @@ extension MutableRawSpan {
588
588
///
589
589
/// - Complexity: O(1)
590
590
@_alwaysEmitIntoClient
591
- @lifetime ( borrow self)
591
+ @lifetime ( & self )
592
592
mutating public func extracting( droppingLast k: Int ) -> Self {
593
593
_precondition ( k >= 0 , " Can't drop a negative number of elements " )
594
594
let droppedCount = min ( k, byteCount)
@@ -613,7 +613,7 @@ extension MutableRawSpan {
613
613
///
614
614
/// - Complexity: O(1)
615
615
@_alwaysEmitIntoClient
616
- @lifetime ( borrow self)
616
+ @lifetime ( & self )
617
617
mutating public func extracting( last maxLength: Int ) -> Self {
618
618
_precondition ( maxLength >= 0 , " Can't have a suffix of negative length " )
619
619
let newCount = min ( maxLength, byteCount)
@@ -637,7 +637,7 @@ extension MutableRawSpan {
637
637
///
638
638
/// - Complexity: O(1)
639
639
@_alwaysEmitIntoClient
640
- @lifetime ( borrow self)
640
+ @lifetime ( & self )
641
641
mutating public func extracting( droppingFirst k: Int ) -> Self {
642
642
_precondition ( k >= 0 , " Can't drop a negative number of bytes " )
643
643
let droppedCount = min ( k, byteCount)
0 commit comments