diff options
| author | Ralf Jung <post@ralfj.de> | 2020-03-30 12:03:55 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-03-30 12:04:05 +0200 |
| commit | 032d3cd553ec503a4483c8ef1f2a8d773775a3f2 (patch) | |
| tree | b81366a3d094a61b2251ae32befccbe075962025 /src | |
| parent | 8926bb497d9b127eb318aea5aed0e745d8381591 (diff) | |
| download | rust-032d3cd553ec503a4483c8ef1f2a8d773775a3f2.tar.gz rust-032d3cd553ec503a4483c8ef1f2a8d773775a3f2.zip | |
fix BTreeMap test compilation with Miri
Diffstat (limited to 'src')
| -rw-r--r-- | src/liballoc/tests/btree/map.rs | 2 |
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>) { |
