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