fix BTreeMap test compilation with Miri
This commit is contained in:
parent
8926bb497d
commit
032d3cd553
|
@ -528,7 +528,7 @@ fn test_range_1000() {
|
||||||
#[cfg(not(miri))] // Miri is too slow
|
#[cfg(not(miri))] // Miri is too slow
|
||||||
let size = 1000;
|
let size = 1000;
|
||||||
#[cfg(miri)]
|
#[cfg(miri)]
|
||||||
let size = MIN_INSERTS_HEIGHT_2;
|
let size = MIN_INSERTS_HEIGHT_2 as u32;
|
||||||
let map: BTreeMap<_, _> = (0..size).map(|i| (i, i)).collect();
|
let map: BTreeMap<_, _> = (0..size).map(|i| (i, i)).collect();
|
||||||
|
|
||||||
fn test(map: &BTreeMap<u32, u32>, size: u32, min: Bound<&u32>, max: Bound<&u32>) {
|
fn test(map: &BTreeMap<u32, u32>, size: u32, min: Bound<&u32>, max: Bound<&u32>) {
|
||||||
|
|
Loading…
Reference in New Issue