Skip to content

Commit

Permalink
Rollup merge of rust-lang#70559 - RalfJung:btree-test-miri, r=Mark-Si…
Browse files Browse the repository at this point in the history
…mulacrum

fix BTreeMap test compilation with Miri

This got broken by rust-lang#70506
  • Loading branch information
Dylan-DPC authored Mar 30, 2020
2 parents b99db6e + 032d3cd commit 298a89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/tests/btree/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>) {
Expand Down

0 comments on commit 298a89b

Please sign in to comment.