File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
#![ no_std]
9
9
#![ cfg_attr( feature = "unstable" , feature( core_intrinsics) ) ]
10
10
#![ cfg_attr( feature = "unstable" , feature( const_generics) ) ]
11
- #![ cfg_attr( feature = "unstable" , feature( range_bounds_assert_len ) ) ]
11
+ #![ cfg_attr( feature = "unstable" , feature( slice_range ) ) ]
12
12
#![ cfg_attr( feature = "unstable" , allow( incomplete_features) ) ]
13
13
#![ warn( missing_docs) ]
14
14
@@ -25,6 +25,7 @@ use core::{
25
25
use core:: {
26
26
intrinsics,
27
27
ops:: { Range , RangeBounds } ,
28
+ slice:: range,
28
29
} ;
29
30
30
31
/// Allows creating read-only and write-only `Volatile` values.
@@ -624,7 +625,7 @@ where
624
625
let Range {
625
626
start : src_start,
626
627
end : src_end,
627
- } = src. assert_len ( self . reference . len ( ) ) ;
628
+ } = range ( src, .. self . reference . len ( ) ) ;
628
629
let count = src_end - src_start;
629
630
assert ! (
630
631
dest <= self . reference. len( ) - count,
You can’t perform that action at this time.
0 commit comments