Skip to content

Commit 49fc029

Browse files
authored
Rollup merge of rust-lang#137679 - bjorn3:coretests_improvements, r=jieyouxu,onur-ozkan
Various coretests improvements The first commit is not yet strictly necessary as directly testing libcore works though useless work, but will be necessary once rust-lang#136642 migrates the liballoc tests into a separate package. The second commit fixes rust-lang#137478 and ensures that coretests actually gets tested on all CI job. The third commit fixes an error that didn't get caught because coretests doesn't run on the wasm32 CI job.
2 parents 30cbf2b + 07c0a80 commit 49fc029

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: coretests/tests/slice.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ use core::num::NonZero;
55
use core::ops::{Range, RangeInclusive};
66
use core::slice;
77

8-
use rand::seq::IndexedRandom;
9-
108
#[test]
119
fn test_position() {
1210
let b = [1, 2, 3, 5, 5];
@@ -1810,6 +1808,7 @@ fn select_nth_unstable() {
18101808
use core::cmp::Ordering::{Equal, Greater, Less};
18111809

18121810
use rand::Rng;
1811+
use rand::seq::IndexedRandom;
18131812

18141813
let mut rng = crate::test_rng();
18151814

0 commit comments

Comments
 (0)