Skip to content

Commit 298a89b

Browse files
authored
Rollup merge of #70559 - RalfJung:btree-test-miri, r=Mark-Simulacrum
fix BTreeMap test compilation with Miri This got broken by #70506
2 parents b99db6e + 032d3cd commit 298a89b

File tree

1 file changed

+1
-1
lines changed
  • src/liballoc/tests/btree

1 file changed

+1
-1
lines changed

src/liballoc/tests/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ fn test_range_1000() {
528528
#[cfg(not(miri))] // Miri is too slow
529529
let size = 1000;
530530
#[cfg(miri)]
531-
let size = MIN_INSERTS_HEIGHT_2;
531+
let size = MIN_INSERTS_HEIGHT_2 as u32;
532532
let map: BTreeMap<_, _> = (0..size).map(|i| (i, i)).collect();
533533

534534
fn test(map: &BTreeMap<u32, u32>, size: u32, min: Bound<&u32>, max: Bound<&u32>) {

0 commit comments

Comments
 (0)