File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
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( range_bounds_assert_len ) ) ]
11+ #![ cfg_attr( feature = "unstable" , feature( slice_range ) ) ]
1212#![ cfg_attr( feature = "unstable" , allow( incomplete_features) ) ]
1313#![ warn( missing_docs) ]
1414
@@ -25,6 +25,7 @@ use core::{
2525use core:: {
2626 intrinsics,
2727 ops:: { Range , RangeBounds } ,
28+ slice:: range,
2829} ;
2930
3031/// Allows creating read-only and write-only `Volatile` values.
@@ -624,7 +625,7 @@ where
624625 let Range {
625626 start : src_start,
626627 end : src_end,
627- } = src. assert_len ( self . reference . len ( ) ) ;
628+ } = range ( src, .. self . reference . len ( ) ) ;
628629 let count = src_end - src_start;
629630 assert ! (
630631 dest <= self . reference. len( ) - count,
You can’t perform that action at this time.
0 commit comments