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 {
125
125
126
126
@_alwaysEmitIntoClient
127
127
public var byteOffsets : Range < Int > {
128
- . init ( _uncheckedBounds: ( 0 , byteCount) )
128
+ unsafe Range ( _uncheckedBounds: ( 0 , byteCount) )
129
129
}
130
130
}
131
131
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ extension MutableSpan where Element: ~Copyable & ~Escapable {
224
224
225
225
@_alwaysEmitIntoClient
226
226
public var indices : Range < Index > {
227
- Range ( _uncheckedBounds: ( 0 , _count) )
227
+ unsafe Range( _uncheckedBounds: ( 0 , _count) )
228
228
}
229
229
}
230
230
@@ -721,7 +721,7 @@ extension MutableSpan where Element: ~Copyable {
721
721
mutating public func _extracting(
722
722
unchecked bounds: ClosedRange < Index >
723
723
) -> Self {
724
- let range = Range (
724
+ let range = unsafe Range(
725
725
_uncheckedBounds: ( bounds. lowerBound, bounds. upperBound&+ 1 )
726
726
)
727
727
return unsafe _extracting( unchecked: range)
You can’t perform that action at this time.
0 commit comments