File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 88#![ no_std]
99#![ cfg_attr( feature = "unstable" , feature( core_intrinsics) ) ]
1010#![ 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 ) ) ]
1212#![ cfg_attr( feature = "unstable" , allow( incomplete_features) ) ]
1313#![ warn( missing_docs) ]
1414
@@ -25,7 +25,6 @@ use core::{
2525use core:: {
2626 intrinsics,
2727 ops:: { Range , RangeBounds } ,
28- slice,
2928} ;
3029
3130/// Allows creating read-only and write-only `Volatile` values.
@@ -625,7 +624,7 @@ where
625624 let Range {
626625 start : src_start,
627626 end : src_end,
628- } = slice :: check_range ( self . reference . len ( ) , src ) ;
627+ } = src . assert_len ( self . reference . len ( ) ) ;
629628 let count = src_end - src_start;
630629 assert ! (
631630 dest <= self . reference. len( ) - count,
You can’t perform that action at this time.
0 commit comments