Rollup merge of #70559 - RalfJung:btree-test-miri, r=Mark-Simulacrum

fix BTreeMap test compilation with Miri

This got broken by https://github.com/rust-lang/rust/pull/70506
This commit is contained in:
Dylan DPC 2020-03-30 16:24:51 +02:00 committed by GitHub
commit 298a89bff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -528,7 +528,7 @@ fn test_range_1000() {
#[cfg(not(miri))] // Miri is too slow
let size = 1000;
#[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();
fn test(map: &BTreeMap<u32, u32>, size: u32, min: Bound<&u32>, max: Bound<&u32>) {