File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3094,11 +3094,6 @@ mod tests {
30943094 fn test_vec_from_vecdeque ( ) {
30953095 use crate :: vec:: Vec ;
30963096
3097- #[ cfg( not( miri) ) ] // Miri is too slow
3098- let max_pwr = 7 ;
3099- #[ cfg( miri) ]
3100- let max_pwr = 5 ;
3101-
31023097 fn create_vec_and_test_convert ( cap : usize , offset : usize , len : usize ) {
31033098 let mut vd = VecDeque :: with_capacity ( cap) ;
31043099 for _ in 0 ..offset {
@@ -3112,6 +3107,11 @@ mod tests {
31123107 assert ! ( vec. into_iter( ) . eq( vd) ) ;
31133108 }
31143109
3110+ #[ cfg( not( miri) ) ] // Miri is too slow
3111+ let max_pwr = 7 ;
3112+ #[ cfg( miri) ]
3113+ let max_pwr = 5 ;
3114+
31153115 for cap_pwr in 0 ..max_pwr {
31163116 // Make capacity as a (2^x)-1, so that the ring size is 2^x
31173117 let cap = ( 2i32 . pow ( cap_pwr) - 1 ) as usize ;
You can’t perform that action at this time.
0 commit comments