build(deps): bump rand from 0.8.5 to 0.9.0 #1278
pr.yml
on: pull_request
Annotations
46 errors
rust-crates (linkerd-distribute):
linkerd/distribute/src/keys.rs#L3
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/keys.rs:3:5
|
3 | distributions::{WeightedError, WeightedIndex},
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/params.rs#L6
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/params.rs:6:11
|
6 | use rand::distributions::WeightedError;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/service/random.rs#L4
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/service/random.rs:4:12
|
4 | use rand::{distributions::WeightedError, rngs::SmallRng, SeedableRng};
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/keys.rs#L3
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/keys.rs:3:5
|
3 | distributions::{WeightedError, WeightedIndex},
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/params.rs#L6
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/params.rs:6:11
|
6 | use rand::distributions::WeightedError;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/service/random.rs#L4
error[E0432]: unresolved import `rand::distributions`
--> linkerd/distribute/src/service/random.rs:4:12
|
4 | use rand::{distributions::WeightedError, rngs::SmallRng, SeedableRng};
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/service/random.rs#L24
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/distribute/src/service/random.rs:24:30
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/service/random.rs#L24
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/distribute/src/service/random.rs:24:30
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/service/random.rs#L24
error[E0308]: mismatched types
--> linkerd/distribute/src/service/random.rs:24:24
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ------------------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `ThreadRng`
| |
| arguments to this function are incorrect
|
= note: expected mutable reference `&mut _`
found struct `ThreadRng`
note: associated function defined here
--> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/lib.rs:460:8
|
460 | fn from_rng(rng: &mut impl RngCore) -> Self {
| ^^^^^^^^
help: consider mutably borrowing here
|
24 | SmallRng::from_rng(&mut rand::thread_rng()).expect("RNG must initialize")
| ++++
|
rust-crates (linkerd-distribute):
linkerd/distribute/src/service/random.rs#L24
error[E0308]: mismatched types
--> linkerd/distribute/src/service/random.rs:24:24
|
24 | SmallRng::from_rng(rand::thread_rng()).expect("RNG must initialize")
| ------------------ ^^^^^^^^^^^^^^^^^^ expected `&mut _`, found `ThreadRng`
| |
| arguments to this function are incorrect
|
= note: expected mutable reference `&mut _`
found struct `ThreadRng`
note: associated function defined here
--> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rand_core-0.9.0/src/lib.rs:460:8
|
460 | fn from_rng(rng: &mut impl RngCore) -> Self {
| ^^^^^^^^
help: consider mutably borrowing here
|
24 | SmallRng::from_rng(&mut rand::thread_rng()).expect("RNG must initialize")
| ++++
|
rust-crates (linkerd-exp-backoff)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L6
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/exp-backoff/src/lib.rs:6:28
|
6 | use rand::{rngs::SmallRng, thread_rng, SeedableRng};
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L6
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/exp-backoff/src/lib.rs:6:28
|
6 | use rand::{rngs::SmallRng, thread_rng, SeedableRng};
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L77
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/exp-backoff/src/lib.rs:77:42
|
77 | rng: SmallRng::from_rng(&mut thread_rng()).expect("RNG must be valid"),
| ^^^^^^^^^^
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L77
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/exp-backoff/src/lib.rs:77:42
|
77 | rng: SmallRng::from_rng(&mut thread_rng()).expect("RNG must be valid"),
| ^^^^^^^^^^
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L215
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/exp-backoff/src/lib.rs:215:53
|
215 | let j = backoff.jitter(base, &mut rand::thread_rng());
| ^^^^^^^^^^
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L77
error[E0599]: no method named `expect` found for struct `SmallRng` in the current scope
--> linkerd/exp-backoff/src/lib.rs:77:56
|
77 | rng: SmallRng::from_rng(&mut thread_rng()).expect("RNG must be valid"),
| ^^^^^^ method not found in `SmallRng`
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L106
error: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024.
--> linkerd/exp-backoff/src/lib.rs:106:37
|
106 | let jitter_factor = rng.gen::<f64>();
| ^^^
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L77
error[E0599]: no method named `expect` found for struct `SmallRng` in the current scope
--> linkerd/exp-backoff/src/lib.rs:77:56
|
77 | rng: SmallRng::from_rng(&mut thread_rng()).expect("RNG must be valid"),
| ^^^^^^ method not found in `SmallRng`
|
rust-crates (linkerd-exp-backoff):
linkerd/exp-backoff/src/lib.rs#L106
error: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024.
--> linkerd/exp-backoff/src/lib.rs:106:37
|
106 | let jitter_factor = rng.gen::<f64>();
| ^^^
|
rust-crates (linkerd-exp-backoff)
Process completed with exit code 1.
|
rust-crates (linkerd-http-route)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L29
error[E0432]: unresolved import `rand::distributions`
--> linkerd/http/route/src/http/filter/inject_failure.rs:29:19
|
29 | use rand::distributions::Distribution;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L29
error[E0432]: unresolved import `rand::distributions`
--> linkerd/http/route/src/http/filter/inject_failure.rs:29:19
|
29 | use rand::distributions::Distribution;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L22
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:22:18
|
22 | inner: rand::distributions::Bernoulli,
| ^^^^^^^^^^^^^
| |
| could not find `distributions` in `rand`
| help: a trait with a similar name exists: `Distribution`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L46
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:46:29
|
46 | ) -> Result<Self, rand::distributions::BernoulliError> {
| ^^^^^^^^^^^^^
| |
| could not find `distributions` in `rand`
| help: a trait with a similar name exists: `Distribution`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L62
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:62:12
|
62 | impl rand::distributions::Distribution<bool> for Distribution {
| ^^^^^^^^^^^^^
| |
| could not find `distributions` in `rand`
| help: a trait with a similar name exists: `Distribution`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L47
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:47:27
|
47 | let inner = rand::distributions::Bernoulli::from_ratio(numerator, denominator)?;
| ^^^^^^^^^^^^^ could not find `distributions` in `rand`
|
help: consider importing this struct
|
1 + use rand::distr::Bernoulli;
|
help: if you import `Bernoulli`, refer to it directly
|
47 - let inner = rand::distributions::Bernoulli::from_ratio(numerator, denominator)?;
47 + let inner = Bernoulli::from_ratio(numerator, denominator)?;
|
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L22
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:22:18
|
22 | inner: rand::distributions::Bernoulli,
| ^^^^^^^^^^^^^
| |
| could not find `distributions` in `rand`
| help: a trait with a similar name exists: `Distribution`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L46
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:46:29
|
46 | ) -> Result<Self, rand::distributions::BernoulliError> {
| ^^^^^^^^^^^^^
| |
| could not find `distributions` in `rand`
| help: a trait with a similar name exists: `Distribution`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L62
error[E0433]: failed to resolve: could not find `distributions` in `rand`
--> linkerd/http/route/src/http/filter/inject_failure.rs:62:12
|
62 | impl rand::distributions::Distribution<bool> for Distribution {
| ^^^^^^^^^^^^^
| |
| could not find `distributions` in `rand`
| help: a trait with a similar name exists: `Distribution`
|
rust-crates (linkerd-http-route):
linkerd/http/route/src/http/filter/inject_failure.rs#L31
error: use of deprecated function `rand::thread_rng`: renamed to `rng`
--> linkerd/http/route/src/http/filter/inject_failure.rs:31:48
|
31 | if self.distribution.sample(&mut rand::thread_rng()) {
| ^^^^^^^^^^
|
= note: requested on the command line with `-D deprecated`
|
rust-crates (linkerd-proxy-tcp)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-proxy-tcp)
The operation was canceled.
|
rust-crates (linkerd-pool-p2c)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-pool-p2c)
The operation was canceled.
|
rust-crates (linkerd-proxy-balance)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-proxy-balance)
The operation was canceled.
|
rust-crates (linkerd-proxy-http)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-proxy-http)
The operation was canceled.
|
rust-crates (linkerd-tls-route)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-tls-route)
The operation was canceled.
|
rust-crates (linkerd-proxy-tap)
The job was canceled because "linkerd-distribute" failed.
|
rust-crates (linkerd-proxy-tap)
The operation was canceled.
|
linkerd-install
Process completed with exit code 1.
|
ship-it
Process completed with exit code 1.
|