Skip to content

Commit f5e4aa2

Browse files
authored
Rollup merge of #46378 - udoprog:benches-rand, r=kennytm
Fix use of rand in liballoc benches
2 parents b5f11da + 9bea79b commit f5e4aa2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/liballoc/benches/btree/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use std::iter::Iterator;
1313
use std::vec::Vec;
1414
use std::collections::BTreeMap;
15-
use std::__rand::{Rng, thread_rng};
15+
use rand::{Rng, thread_rng};
1616
use test::{Bencher, black_box};
1717

1818
macro_rules! map_insert_rand_bench {

src/liballoc/benches/slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::__rand::{thread_rng};
11+
use rand::{thread_rng};
1212
use std::mem;
1313
use std::ptr;
1414

0 commit comments

Comments
 (0)