Skip to content

Commit 74b3548

Browse files
committed
Upgrade rand to 0.7
1 parent 0444b9f commit 74b3548

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

Cargo.lock

+13-6
Original file line numberDiff line numberDiff line change
@@ -1150,12 +1150,13 @@ dependencies = [
11501150

11511151
[[package]]
11521152
name = "getrandom"
1153-
version = "0.1.8"
1153+
version = "0.1.11"
11541154
source = "registry+https://github.com/rust-lang/crates.io-index"
1155-
checksum = "34f33de6f0ae7c9cb5e574502a562e2b512799e32abb801cd1e79ad952b62b49"
1155+
checksum = "fc344b02d3868feb131e8b5fe2b9b0a1cc42942679af493061fc13b853243872"
11561156
dependencies = [
11571157
"cfg-if",
11581158
"libc",
1159+
"wasi",
11591160
]
11601161

11611162
[[package]]
@@ -1582,9 +1583,9 @@ checksum = "b294d6fa9ee409a054354afc4352b0b9ef7ca222c69b8812cbea9e7d2bf3783f"
15821583

15831584
[[package]]
15841585
name = "libc"
1585-
version = "0.2.61"
1586+
version = "0.2.62"
15861587
source = "registry+https://github.com/rust-lang/crates.io-index"
1587-
checksum = "c665266eb592905e8503ba3403020f4b8794d26263f412ca33171600eca9a6fa"
1588+
checksum = "34fcd2c08d2f832f376f4173a231990fa5aef4e99fb569867318a227ef4c06ba"
15881589
dependencies = [
15891590
"rustc-std-workspace-core",
15901591
]
@@ -3245,7 +3246,7 @@ version = "0.0.0"
32453246
dependencies = [
32463247
"graphviz",
32473248
"log",
3248-
"rand 0.6.1",
3249+
"rand 0.7.0",
32493250
"rustc",
32503251
"rustc_data_structures",
32513252
"rustc_fs_util",
@@ -3860,7 +3861,7 @@ dependencies = [
38603861
"panic_abort",
38613862
"panic_unwind",
38623863
"profiler_builtins",
3863-
"rand 0.6.1",
3864+
"rand 0.7.0",
38643865
"rustc_asan",
38653866
"rustc_lsan",
38663867
"rustc_msan",
@@ -4664,6 +4665,12 @@ dependencies = [
46644665
"try-lock",
46654666
]
46664667

4668+
[[package]]
4669+
name = "wasi"
4670+
version = "0.5.0"
4671+
source = "registry+https://github.com/rust-lang/crates.io-index"
4672+
checksum = "fd5442abcac6525a045cc8c795aedb60da7a2e5e89c7bf18a0d5357849bb23c7"
4673+
46674674
[[package]]
46684675
name = "winapi"
46694676
version = "0.2.8"

src/librustc_incremental/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ doctest = false
1212
[dependencies]
1313
graphviz = { path = "../libgraphviz" }
1414
log = "0.4"
15-
rand = "0.6"
15+
rand = "0.7"
1616
rustc = { path = "../librustc" }
1717
rustc_data_structures = { path = "../librustc_data_structures" }
1818
rustc_serialize = { path = "../libserialize", package = "serialize" }

src/libstd/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ features = [
3838
optional = true
3939

4040
[dev-dependencies]
41-
rand = "0.6.1"
41+
rand = "0.7"
4242

4343
[target.x86_64-apple-darwin.dependencies]
4444
rustc_asan = { path = "../librustc_asan" }

src/libstd/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ mod tests {
21442144
use crate::sys_common::io::test::{TempDir, tmpdir};
21452145
use crate::thread;
21462146

2147-
use rand::{rngs::StdRng, FromEntropy, RngCore};
2147+
use rand::{rngs::StdRng, RngCore, SeedableRng};
21482148

21492149
#[cfg(windows)]
21502150
use crate::os::windows::fs::{symlink_dir, symlink_file};

src/libstd/tests/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rand::{thread_rng, Rng};
55
use rand::distributions::Alphanumeric;
66

77
fn make_rand_name() -> OsString {
8-
let mut rng = thread_rng();
8+
let rng = thread_rng();
99
let n = format!("TEST{}", rng.sample_iter(&Alphanumeric).take(10)
1010
.collect::<String>());
1111
let n = OsString::from(n);

src/tools/tidy/src/deps.rs

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ const WHITELIST: &[Crate<'_>] = &[
171171
Crate("vcpkg"),
172172
Crate("version_check"),
173173
Crate("void"),
174+
Crate("wasi"),
174175
Crate("winapi"),
175176
Crate("winapi-build"),
176177
Crate("winapi-i686-pc-windows-gnu"),

0 commit comments

Comments
 (0)