We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29eed6b commit 2bc8c54Copy full SHA for 2bc8c54
src/liballoc/collections/vec_deque.rs
@@ -3094,11 +3094,6 @@ mod tests {
3094
fn test_vec_from_vecdeque() {
3095
use crate::vec::Vec;
3096
3097
- #[cfg(not(miri))] // Miri is too slow
3098
- let max_pwr = 7;
3099
- #[cfg(miri)]
3100
- let max_pwr = 5;
3101
-
3102
fn create_vec_and_test_convert(cap: usize, offset: usize, len: usize) {
3103
let mut vd = VecDeque::with_capacity(cap);
3104
for _ in 0..offset {
@@ -3112,6 +3107,11 @@ mod tests {
3112
3107
assert!(vec.into_iter().eq(vd));
3113
3108
}
3114
3109
3110
+ #[cfg(not(miri))] // Miri is too slow
3111
+ let max_pwr = 7;
+ #[cfg(miri)]
+ let max_pwr = 5;
+
3115
for cap_pwr in 0..max_pwr {
3116
// Make capacity as a (2^x)-1, so that the ring size is 2^x
3117
let cap = (2i32.pow(cap_pwr) - 1) as usize;
0 commit comments