about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJohn-John Tedro <udoprog@tedro.se>2017-11-28 17:03:33 +0100
committerJohn-John Tedro <udoprog@tedro.se>2017-11-29 20:14:52 +0100
commit9bea79bd5ef492cf2c24e098ac93638446cb4860 (patch)
tree1175a69cfeb43e23892c8f786f377b81869bad71 /src/liballoc
parent0a2e9ade83ff253bb489c63a95b1f499c5e0916f (diff)
downloadrust-9bea79bd5ef492cf2c24e098ac93638446cb4860.tar.gz
rust-9bea79bd5ef492cf2c24e098ac93638446cb4860.zip
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;