about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-03-30 12:03:55 +0200
committerRalf Jung <post@ralfj.de>2020-03-30 12:04:05 +0200
commit032d3cd553ec503a4483c8ef1f2a8d773775a3f2 (patch)
treeb81366a3d094a61b2251ae32befccbe075962025 /src
parent8926bb497d9b127eb318aea5aed0e745d8381591 (diff)
downloadrust-032d3cd553ec503a4483c8ef1f2a8d773775a3f2.tar.gz
rust-032d3cd553ec503a4483c8ef1f2a8d773775a3f2.zip
fix BTreeMap test compilation with Miri
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/tests/btree/map.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/tests/btree/map.rs b/src/liballoc/tests/btree/map.rs
index 535b6a9c314..e28b71510ce 100644
--- a/src/liballoc/tests/btree/map.rs
+++ b/src/liballoc/tests/btree/map.rs
@@ -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>) {