about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-12-06 09:35:36 -0500
committerGitHub <noreply@github.com>2017-12-06 09:35:36 -0500
commitf5e4aa2a80bf41c307fb479f1c9a187a9413dec1 (patch)
tree750c6c2c75c24e509a9a769dc4501cd3b56ea823 /src/liballoc
parentb5f11da0ac1abe5e60b88185c8946c95c883d83c (diff)
parent9bea79bd5ef492cf2c24e098ac93638446cb4860 (diff)
downloadrust-f5e4aa2a80bf41c307fb479f1c9a187a9413dec1.tar.gz
rust-f5e4aa2a80bf41c307fb479f1c9a187a9413dec1.zip
Rollup merge of #46378 - udoprog:benches-rand, r=kennytm
Fix use of rand in liballoc benches
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/benches/btree/map.rs2
-rw-r--r--src/liballoc/benches/slice.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/benches/btree/map.rs b/src/liballoc/benches/btree/map.rs
index 744afb991b0..20b9091a07b 100644
--- a/src/liballoc/benches/btree/map.rs
+++ b/src/liballoc/benches/btree/map.rs
@@ -12,7 +12,7 @@
 use std::iter::Iterator;
 use std::vec::Vec;
 use std::collections::BTreeMap;
-use std::__rand::{Rng, thread_rng};
+use rand::{Rng, thread_rng};
 use test::{Bencher, black_box};
 
 macro_rules! map_insert_rand_bench {
diff --git a/src/liballoc/benches/slice.rs b/src/liballoc/benches/slice.rs
index d99270e7f31..17538d885f8 100644
--- a/src/liballoc/benches/slice.rs
+++ b/src/liballoc/benches/slice.rs
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::__rand::{thread_rng};
+use rand::{thread_rng};
 use std::mem;
 use std::ptr;