File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ extension MutableRawSpan {
125125
126126 @_alwaysEmitIntoClient
127127 public var byteOffsets : Range < Int > {
128- . init ( _uncheckedBounds: ( 0 , byteCount) )
128+ unsafe Range ( _uncheckedBounds: ( 0 , byteCount) )
129129 }
130130}
131131
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ extension MutableSpan where Element: ~Copyable & ~Escapable {
224224
225225 @_alwaysEmitIntoClient
226226 public var indices : Range < Index > {
227- Range ( _uncheckedBounds: ( 0 , _count) )
227+ unsafe Range( _uncheckedBounds: ( 0 , _count) )
228228 }
229229}
230230
@@ -721,7 +721,7 @@ extension MutableSpan where Element: ~Copyable {
721721 mutating public func _extracting(
722722 unchecked bounds: ClosedRange < Index >
723723 ) -> Self {
724- let range = Range (
724+ let range = unsafe Range(
725725 _uncheckedBounds: ( bounds. lowerBound, bounds. upperBound&+ 1 )
726726 )
727727 return unsafe _extracting( unchecked: range)
You can’t perform that action at this time.
0 commit comments