[INFO] fetching crate supply-chain-trust-example-crate-000012 0.9.0... [INFO] testing supply-chain-trust-example-crate-000012-0.9.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate supply-chain-trust-example-crate-000012 0.9.0 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate supply-chain-trust-example-crate-000012 0.9.0 [INFO] finished tweaking crates.io crate supply-chain-trust-example-crate-000012 0.9.0 [INFO] tweaked toml for crates.io crate supply-chain-trust-example-crate-000012 0.9.0 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate supply-chain-trust-example-crate-000012 0.9.0 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate supply-chain-trust-example-crate-000012 0.9.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6cefdbea614be2ed73b13a3b888025be79e1f01744019659f651f88910a3a556 [INFO] running `Command { std: "docker" "start" "-a" "6cefdbea614be2ed73b13a3b888025be79e1f01744019659f651f88910a3a556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6cefdbea614be2ed73b13a3b888025be79e1f01744019659f651f88910a3a556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cefdbea614be2ed73b13a3b888025be79e1f01744019659f651f88910a3a556", kill_on_drop: false }` [INFO] [stdout] 6cefdbea614be2ed73b13a3b888025be79e1f01744019659f651f88910a3a556 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b85776bf55d0c906b85d755fa6ca62a26f7f59fb137305ab837c51c8d40b8a2d [INFO] running `Command { std: "docker" "start" "-a" "b85776bf55d0c906b85d755fa6ca62a26f7f59fb137305ab837c51c8d40b8a2d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling zerocopy v0.8.23 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling supply-chain-trust-example-crate-000012 v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/seq/slice.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'_, Self, Self::Output> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/seq/slice.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 220 | ) -> Result, WeightError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 220 | ) -> Result, WeightError> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.10s [INFO] running `Command { std: "docker" "inspect" "b85776bf55d0c906b85d755fa6ca62a26f7f59fb137305ab837c51c8d40b8a2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b85776bf55d0c906b85d755fa6ca62a26f7f59fb137305ab837c51c8d40b8a2d", kill_on_drop: false }` [INFO] [stdout] b85776bf55d0c906b85d755fa6ca62a26f7f59fb137305ab837c51c8d40b8a2d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39a5224672352c8a68c1f38a49dd27460973567bec48009cdb02c7fb2b6c2674 [INFO] running `Command { std: "docker" "start" "-a" "39a5224672352c8a68c1f38a49dd27460973567bec48009cdb02c7fb2b6c2674", kill_on_drop: false }` [INFO] [stderr] Compiling rand_pcg v0.9.0 [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/seq/slice.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'_, Self, Self::Output> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/seq/slice.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 220 | ) -> Result, WeightError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 220 | ) -> Result, WeightError> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling supply-chain-trust-example-crate-000012 v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/seq/slice.rs:90:27 [INFO] [stdout] | [INFO] [stdout] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'_, Self, Self::Output> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/seq/slice.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | &self, [INFO] [stdout] | ^^^^^ the lifetime is elided here [INFO] [stdout] ... [INFO] [stdout] 220 | ) -> Result, WeightError> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 220 | ) -> Result, WeightError> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.03s [INFO] running `Command { std: "docker" "inspect" "39a5224672352c8a68c1f38a49dd27460973567bec48009cdb02c7fb2b6c2674", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39a5224672352c8a68c1f38a49dd27460973567bec48009cdb02c7fb2b6c2674", kill_on_drop: false }` [INFO] [stdout] 39a5224672352c8a68c1f38a49dd27460973567bec48009cdb02c7fb2b6c2674 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6b3fb121609c301052e47bf89985195992cf00d0faa5430b6be7cc96d71abe3e [INFO] running `Command { std: "docker" "start" "-a" "6b3fb121609c301052e47bf89985195992cf00d0faa5430b6be7cc96d71abe3e", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/seq/slice.rs:90:27 [INFO] [stderr] | [INFO] [stderr] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter [INFO] [stderr] | ^^^^^ the lifetime is elided here ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 90 | fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter<'_, Self, Self::Output> [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/seq/slice.rs:216:9 [INFO] [stderr] | [INFO] [stderr] 216 | &self, [INFO] [stderr] | ^^^^^ the lifetime is elided here [INFO] [stderr] ... [INFO] [stderr] 220 | ) -> Result, WeightError> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 220 | ) -> Result, WeightError> [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `supply-chain-trust-example-crate-000012` (lib) generated 2 warnings (run `cargo fix --lib -p supply-chain-trust-example-crate-000012` to apply 2 suggestions) [INFO] [stderr] warning: `supply-chain-trust-example-crate-000012` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/supply_chain_trust_example_crate_000012-aab447eb81f03677) [INFO] [stdout] [INFO] [stdout] running 91 tests [INFO] [stdout] test distr::bernoulli::test::bernoulli_distributions_can_be_compared ... ok [INFO] [stdout] test distr::bernoulli::test::test_trivial ... ok [INFO] [stdout] test distr::bernoulli::test::value_stability ... ok [INFO] [stdout] test distr::distribution::tests::test_dist_string ... ok [INFO] [stdout] test distr::distribution::tests::test_distributions_iter ... ok [INFO] [stdout] test distr::distribution::tests::test_distributions_map ... ok [INFO] [stdout] test distr::distribution::tests::test_make_an_iter ... ok [INFO] [stdout] test distr::float::tests::f32_edge_cases ... ok [INFO] [stdout] test distr::float::tests::f64_edge_cases ... ok [INFO] [stdout] test distr::float::tests::value_stability ... ok [INFO] [stdout] test distr::integer::tests::test_integers ... ok [INFO] [stdout] test distr::integer::tests::value_stability ... ok [INFO] [stdout] test distr::integer::tests::x86_integers ... ok [INFO] [stdout] test distr::other::tests::test_alphabetic ... ok [INFO] [stdout] test distr::other::tests::test_alphanumeric ... ok [INFO] [stdout] test distr::other::tests::test_misc ... ok [INFO] [stdout] test distr::other::tests::value_stability ... ok [INFO] [stdout] test distr::other::tests::test_chars ... ok [INFO] [stdout] test distr::slice::test::value_stability ... ok [INFO] [stdout] test distr::uniform::float::tests::test_uniform_from_std_range ... ok [INFO] [stdout] test distr::uniform::float::tests::test_uniform_from_std_range_bad_limits ... ok [INFO] [stdout] test distr::uniform::float::tests::test_uniform_from_std_range_inclusive_bad_limits ... ok [INFO] [stdout] test distr::uniform::float::tests::test_float_assertions ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_bad_limits_equal_int ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_from_std_range_bad_limits ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_bad_limits_flipped_int ... ok [INFO] [stdout] test distr::uniform::float::tests::test_float_overflow ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_from_std_range ... ok [INFO] [stdout] test distr::uniform::float::tests::test_uniform_from_std_range_inclusive ... ok [INFO] [stdout] test distr::uniform::float::tests::test_floats ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_good_limits_equal_int ... ok [INFO] [stdout] test distr::uniform::int::tests::value_stability ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_from_std_range_inclusive ... ok [INFO] [stdout] test distr::uniform::other::tests::test_char ... ok [INFO] [stdout] test distr::uniform::tests::test_custom_uniform ... ok [INFO] [stdout] test distr::uniform::tests::uniform_distributions_can_be_compared ... ok [INFO] [stdout] test distr::uniform::int::tests::test_uniform_from_std_range_inclusive_bad_limits ... ok [INFO] [stdout] test distr::uniform::tests::value_stability ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::overflow ... ok [INFO] [stdout] test distr::uniform::other::tests::test_durations ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::test_accepting_nan ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::test_update_weights ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::test_update_weights_errors ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::value_stability ... ok [INFO] [stdout] test rng::test::test_fill ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::test_weight_at ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::test_weights ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::weighted_index_distributions_can_be_compared ... ok [INFO] [stdout] test rng::test::test_fill_bytes_default ... ok [INFO] [stdout] test rng::test::test_fill_empty ... ok [INFO] [stdout] test rng::test::test_random_bool ... ok [INFO] [stdout] test rng::test::test_random_range_float ... ok [INFO] [stdout] test distr::weighted::weighted_index::test::test_weightedindex ... ok [INFO] [stdout] test rng::test::test_random_range_int ... ok [INFO] [stdout] test rng::test::test_rng_boxed_trait ... ok [INFO] [stdout] test distr::bernoulli::test::test_average ... ok [INFO] [stdout] test rng::test::test_rng_mut_ref ... ok [INFO] [stdout] test rng::test::test_rng_trait_object ... ok [INFO] [stdout] test rngs::mock::tests::test_bool ... ok [INFO] [stdout] test rngs::thread::test::test_debug_output ... ok [INFO] [stdout] test rngs::std::test::test_stdrng_construction ... ok [INFO] [stdout] test rngs::reseeding::test::test_reseeding ... ok [INFO] [stdout] test rngs::thread::test::test_thread_rng ... ok [INFO] [stdout] test rngs::xoshiro256plusplus::tests::reference ... ok [INFO] [stdout] test rngs::xoshiro256plusplus::tests::stable_seed_from_u64 ... ok [INFO] [stdout] test rngs::reseeding::test::test_clone_reseeding ... ok [INFO] [stdout] test seq::index_::test::value_stability_sample ... ok [INFO] [stdout] test seq::index_::test::test_sample_alg ... ok [INFO] [stdout] test seq::iterator::test::test_sample_iter ... ok [INFO] [stdout] test seq::index_::test::test_sample_boundaries ... ok [INFO] [stdout] test seq::index_::test::test_sample_weighted ... ok [INFO] [stdout] test seq::iterator::test::value_stability_choose_multiple ... ok [INFO] [stdout] test seq::iterator::test::value_stability_choose_stable ... ok [INFO] [stdout] test rng::test::test_gen_ratio_average ... ok [INFO] [stdout] test seq::iterator::test::value_stability_choose ... ok [INFO] [stdout] test seq::slice::test::test_multiple_weighted_edge_cases ... ok [INFO] [stdout] test seq::slice::test::test_partial_shuffle ... ok [INFO] [stdout] test distr::uniform::int::tests::test_integers ... ok [INFO] [stdout] test seq::slice::test::test_slice_choose ... ok [INFO] [stdout] test seq::slice::test::value_stability_slice ... ok [INFO] [stdout] test seq::iterator::test::test_iterator_choose ... ok [INFO] [stdout] test test::test_random ... ok [INFO] [stdout] test test::test_range ... ok [INFO] [stdout] test seq::iterator::test::test_iterator_choose_stable ... ok [INFO] [stdout] test seq::iterator::test::test_iterator_choose_stable_stability ... ok [INFO] [stdout] test seq::slice::test::test_weighted ... ok [INFO] [stdout] test distr::uniform::float::tests::test_float_overflow_single - should panic ... ok [INFO] [stdout] test seq::slice::test::test_shuffle ... ok [INFO] [stdout] test rng::test::test_random_range_panic_int - should panic ... ok [INFO] [stdout] test rng::test::test_random_range_panic_usize - should panic ... ok [INFO] [stdout] test seq::slice::test::test_multiple_weighted_distributions ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 91 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Doc-tests supply_chain_trust_example_crate_000012 [INFO] [stdout] [INFO] [stdout] running 57 tests [INFO] [stdout] test src/distr/mod.rs - distr::StandardUniform (line 164) ... FAILED [INFO] [stdout] test src/distr/float.rs - distr::float::OpenClosed01 (line 34) ... FAILED [INFO] [stdout] test src/distr/bernoulli.rs - distr::bernoulli::Bernoulli (line 33) ... FAILED [INFO] [stdout] test src/distr/distribution.rs - distr::distribution::Distribution::map (line 88) ... FAILED [INFO] [stdout] test src/distr/float.rs - distr::float::Open01 (line 61) ... FAILED [INFO] [stdout] test src/distr/uniform.rs - distr::uniform (line 18) ... FAILED [INFO] [stdout] test src/distr/slice.rs - distr::slice::Choose (line 29) ... FAILED [INFO] [stdout] test src/distr/distribution.rs - distr::distribution::Distribution::sample_iter (line 50) ... FAILED [INFO] [stdout] test src/distr/uniform.rs - distr::uniform (line 51) ... FAILED [INFO] [stdout] test src/distr/mod.rs - distr::StandardUniform (line 181) ... FAILED [INFO] [stdout] test src/distr/uniform.rs - distr::uniform::Uniform (line 198) ... FAILED [INFO] [stdout] test src/distr/uniform.rs - distr::uniform::Uniform (line 184) ... FAILED [INFO] [stdout] test src/distr/other.rs - distr::other::Alphanumeric (line 36) ... FAILED [INFO] [stdout] test src/distr/other.rs - distr::other::Alphabetic (line 81) ... FAILED [INFO] [stdout] test src/distr/other.rs - distr::other::Alphanumeric (line 47) ... FAILED [INFO] [stdout] test src/distr/uniform.rs - distr::uniform::UniformSampler::sample_single (line 329) ... FAILED [INFO] [stdout] test src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex::weights (line 333) ... FAILED [INFO] [stdout] test src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex::weight (line 298) ... FAILED [INFO] [stdout] test src/distr/slice.rs - distr::slice::Choose (line 47) ... FAILED [INFO] [stdout] test src/lib.rs - random_ratio (line 265) ... FAILED [INFO] [stdout] test src/lib.rs - fill (line 284) ... FAILED [INFO] [stdout] test src/lib.rs - random (line 140) ... FAILED [INFO] [stdout] test src/lib.rs - random_bool (line 231) ... FAILED [INFO] [stdout] test src/lib.rs - random_iter (line 185) ... FAILED [INFO] [stdout] test src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - random (line 155) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::random (line 63) ... FAILED [INFO] [stdout] test src/lib.rs - (line 17) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::fill (line 305) ... FAILED [INFO] [stdout] test src/lib.rs - random_range (line 205) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::random_iter (line 112) ... FAILED [INFO] [stdout] test src/rngs/thread.rs - rngs::thread::ThreadRng (line 77) ... ignored [INFO] [stdout] test src/rng.rs - rng::Rng (line 49) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::random_bool (line 177) ... FAILED [INFO] [stdout] test src/prelude.rs - prelude (line 15) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::random_range (line 143) ... FAILED [INFO] [stdout] test src/rngs/reseeding.rs - rngs::reseeding::ReseedingRng (line 55) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::random (line 82) ... FAILED [INFO] [stdout] test src/rngs/small.rs - rngs::small::SmallRng (line 51) ... FAILED [INFO] [stdout] test src/rngs/small.rs - rngs::small::SmallRng (line 60) ... FAILED [INFO] [stdout] test src/rngs/std.rs - rngs::std::StdRng (line 41) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::sample_iter (line 260) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::sample (line 239) ... FAILED [INFO] [stdout] test src/rngs/std.rs - rngs::std::StdRng (line 48) ... FAILED [INFO] [stdout] test src/rngs/mock.rs - rngs::mock::StepRng (line 33) ... FAILED [INFO] [stdout] test src/rngs/small.rs - rngs::small::SmallRng (line 44) ... FAILED [INFO] [stdout] test src/rng.rs - rng::Rng::random_ratio (line 215) ... FAILED [INFO] [stdout] test src/rngs/thread.rs - rngs::thread::rng (line 137) ... FAILED [INFO] [stdout] test src/seq/iterator.rs - seq::iterator::IteratorRandom (line 24) ... FAILED [INFO] [stdout] test src/seq/iterator.rs - seq::iterator::IteratorRandom::choose (line 60) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple (line 74) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple_array (line 111) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::IndexedRandom::choose (line 44) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::SliceRandom::shuffle (line 328) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::SliceRandom (line 307) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::IndexedRandom::choose_weighted (line 145) ... FAILED [INFO] [stdout] test src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple_weighted (line 199) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/distr/mod.rs - distr::StandardUniform (line 164) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/mod.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::distr::{Distribution, StandardUniform}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/mod.rs:167:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/float.rs - distr::float::OpenClosed01 (line 34) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/float.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::OpenClosed01; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/float.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/float.rs:38:16 [INFO] [stdout] | [INFO] [stdout] 7 | let val: f32 = rand::rng().sample(OpenClosed01); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/bernoulli.rs - distr::bernoulli::Bernoulli (line 33) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/bernoulli.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::{Bernoulli, Distribution}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/bernoulli.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 7 | let v = d.sample(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/distribution.rs - distr::distribution::Distribution::map (line 88) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/distribution.rs:89:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::{Distribution, Uniform}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/distribution.rs:93:32 [INFO] [stdout] | [INFO] [stdout] 8 | while !even_number.sample(&mut rand::rng()) { [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/float.rs - distr::float::Open01 (line 61) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/float.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::Open01; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/float.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/float.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 7 | let val: f32 = rand::rng().sample(Open01); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/uniform.rs - distr::uniform (line 18) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::Uniform; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/uniform.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/slice.rs - distr::slice::Choose (line 29) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/slice.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::{Distribution, slice::Choose}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/slice.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 11 | .sample_iter(&mut rand::rng()) [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/distribution.rs - distr::distribution::Distribution::sample_iter (line 50) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/distribution.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::{Distribution, Alphanumeric, Uniform, StandardUniform}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/distribution.rs:53:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/uniform.rs - distr::uniform (line 51) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::uniform::{Uniform, SampleUniform, [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rand::distr::uniform::Uniform`, `rand::distr::uniform::SampleUniform`, `rand::distr::uniform::UniformSampler`, `rand::distr::uniform::UniformFloat`, `rand::distr::uniform::SampleBorrow`, `rand::distr::uniform::Error` [INFO] [stdout] --> src/distr/uniform.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::uniform::{Uniform, SampleUniform, [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] 6 | UniformSampler, UniformFloat, SampleBorrow, Error}; [INFO] [stdout] | ^^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Rng` in this scope [INFO] [stdout] --> src/distr/uniform.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 28 | fn sample(&self, rng: &mut R) -> Self::X { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::Rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 39 | let x = uniform.sample(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/mod.rs - distr::StandardUniform (line 181) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/mod.rs:182:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/mod.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::StandardUniform; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::distr::StandardUniform` [INFO] [stdout] --> src/distr/mod.rs:183:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::StandardUniform; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/mod.rs:185:16 [INFO] [stdout] | [INFO] [stdout] 7 | let val: f32 = rand::rng().sample(StandardUniform); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/uniform.rs - distr::uniform::Uniform (line 198) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/uniform.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:201:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/uniform.rs - distr::uniform::Uniform (line 184) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:185:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::{Distribution, Uniform}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:188:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/other.rs - distr::other::Alphanumeric (line 36) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::Alphanumeric; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/other.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:40:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/other.rs - distr::other::Alphabetic (line 81) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::{Alphabetic, SampleString}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/distr/other.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:86:15 [INFO] [stdout] | [INFO] [stdout] 8 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:91:44 [INFO] [stdout] | [INFO] [stdout] 13 | let string = Alphabetic.sample_string(&mut rand::rng(), 16); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/other.rs - distr::other::Alphanumeric (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::{Alphanumeric, SampleString}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/other.rs:49:46 [INFO] [stdout] | [INFO] [stdout] 5 | let string = Alphanumeric.sample_string(&mut rand::rng(), 16); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/uniform.rs - distr::uniform::UniformSampler::sample_single (line 329) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:330:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::uniform::{SampleUniform, UniformSampler}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/uniform.rs:333:19 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex::weights (line 333) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/weighted/weighted_index.rs:334:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::weighted::WeightedIndex; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex::weight (line 298) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/weighted/weighted_index.rs:299:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::distr::weighted::WeightedIndex; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/slice.rs - distr::slice::Choose (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/slice.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::IndexedRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/slice.rs:51:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for array `[char; 5]` in the current scope [INFO] [stdout] --> src/distr/slice.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}", vowels.choose(&mut rng).unwrap()); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn choose(&self, rng: &mut R) -> Option<&Self::Output> [INFO] [stdout] | ------ the method is available for `[char; 5]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IndexedRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] help: there is a method `choose_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}", vowels.choose_mut(&mut rng).unwrap()); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - random_ratio (line 265) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:266:16 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", rand::random_ratio(2, 3)); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - fill (line 284) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:286:1 [INFO] [stdout] | [INFO] [stdout] 5 | rand::fill(&mut arr[..]); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - random (line 140) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:141:9 [INFO] [stdout] | [INFO] [stdout] 4 | let x = rand::random::(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 7 | let y = rand::random::(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:147:4 [INFO] [stdout] | [INFO] [stdout] 10 | if rand::random() { // generates a boolean [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - random_bool (line 231) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:232:16 [INFO] [stdout] | [INFO] [stdout] 4 | println!("{}", rand::random_bool(1.0 / 3.0)); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - random_iter (line 185) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:186:19 [INFO] [stdout] | [INFO] [stdout] 4 | let v: Vec = rand::random_iter().take(5).collect(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex (line 55) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/weighted/weighted_index.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/weighted/weighted_index.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::weighted::WeightedIndex; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::distr::weighted::WeightedIndex` [INFO] [stdout] --> src/distr/weighted/weighted_index.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::weighted::WeightedIndex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/distr/weighted/weighted_index.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 10 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - random (line 155) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/lib.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; // provides the `random` method [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:158:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); // a local handle to the generator [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::random (line 63) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:66:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 14 | println!("alpha: '{}'", rng.sample(rand::distr::Alphanumeric) as char); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::distr; [INFO] [stdout] | [INFO] [stdout] help: if you import `distr`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 14 - println!("alpha: '{}'", rng.sample(rand::distr::Alphanumeric) as char); [INFO] [stdout] 14 + println!("alpha: '{}'", rng.sample(distr::Alphanumeric) as char); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 9 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffle` found for struct `Vec` in the current scope [INFO] [stdout] --> src/lib.rs:32:6 [INFO] [stdout] | [INFO] [stdout] 18 | nums.shuffle(&mut rng); [INFO] [stdout] | ^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SliceRandom` which provides `shuffle` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::SliceRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `Vec` in the current scope [INFO] [stdout] --> src/lib.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 20 | let _ = nums.choose(&mut rng); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IndexedRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] help: there is a method `choose_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 20 | let _ = nums.choose_mut(&mut rng); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::fill (line 305) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:306:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:309:1 [INFO] [stdout] | [INFO] [stdout] 7 | rand::rng().fill(&mut arr[..]); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - random_range (line 205) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:206:14 [INFO] [stdout] | [INFO] [stdout] 4 | let y: f32 = rand::random_range(0.0..=1e9); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/lib.rs:210:22 [INFO] [stdout] | [INFO] [stdout] 8 | println!("{}", words[rand::random_range(..words.len())]); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::random_iter (line 112) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{rngs::mock::StepRng, Rng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{rngs::mock::StepRng, Rng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng (line 49) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 10 | let v = foo(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::random_bool (line 177) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:178:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:180:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/prelude.rs - prelude (line 15) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/prelude.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `StdRng` [INFO] [stdout] --> src/prelude.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 5 | let mut r = StdRng::from_rng(&mut rand::rng()); [INFO] [stdout] | ^^^^^^ use of undeclared type `StdRng` [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 5 - let mut r = StdRng::from_rng(&mut rand::rng()); [INFO] [stdout] 5 + let mut r = String::from_rng(&mut rand::rng()); [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::rngs::StdRng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/prelude.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 5 | let mut r = StdRng::from_rng(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::random_range (line 143) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/reseeding.rs - rngs::reseeding::ReseedingRng (line 55) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/reseeding.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/reseeding.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::rngs::OsRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/reseeding.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand::rngs::ReseedingRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `rand::rngs::OsRng`, `rand::rngs::ReseedingRng` [INFO] [stdout] --> src/rngs/reseeding.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::rngs::OsRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | use rand::rngs::ReseedingRng; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::random (line 82) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:85:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/small.rs - rngs::small::SmallRng (line 51) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/small.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::rngs::SmallRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rngs/small.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::SeedableRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/small.rs - rngs::small::SmallRng (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/small.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{SeedableRng, rngs::SmallRng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rngs/small.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{SeedableRng, rngs::SmallRng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/std.rs - rngs::std::StdRng (line 41) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/std.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{SeedableRng, rngs::StdRng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rngs/std.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{SeedableRng, rngs::StdRng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::sample_iter (line 260) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:262:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::{Alphanumeric, Uniform, StandardUniform}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:261:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:264:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::sample (line 239) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:241:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distr::Uniform; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:240:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:243:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/std.rs - rngs::std::StdRng (line 48) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/std.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{SeedableRng, rngs::StdRng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rngs/std.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::{SeedableRng, rngs::StdRng}; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/std.rs:50:33 [INFO] [stdout] | [INFO] [stdout] 5 | let rng = StdRng::from_rng(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/mock.rs - rngs::mock::StepRng (line 33) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/mock.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::rngs::mock::StepRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rngs/mock.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/small.rs - rngs::small::SmallRng (line 44) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/small.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::rngs::SmallRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rngs/small.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::SeedableRng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/small.rs:47:35 [INFO] [stdout] | [INFO] [stdout] 6 | let rng = SmallRng::from_rng(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rng.rs - rng::Rng::random_ratio (line 215) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `rand` [INFO] [stdout] --> src/rng.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rng.rs:218:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/rngs/thread.rs - rngs::thread::rng (line 137) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/thread.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffle` found for array `[{integer}; 5]` in the current scope [INFO] [stdout] --> src/rngs/thread.rs:143:9 [INFO] [stdout] | [INFO] [stdout] 8 | numbers.shuffle(&mut rand::rng()); [INFO] [stdout] | ^^^^^^^ method not found in `[{integer}; 5]` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | fn shuffle(&mut self, rng: &mut R) [INFO] [stdout] | ------- the method is available for `[{integer}; 5]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SliceRandom` which provides `shuffle` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::SliceRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/thread.rs:143:22 [INFO] [stdout] | [INFO] [stdout] 8 | numbers.shuffle(&mut rand::rng()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/rngs/thread.rs:147:15 [INFO] [stdout] | [INFO] [stdout] 12 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/iterator.rs - seq::iterator::IteratorRandom (line 24) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/iterator.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `Chars<'a>` in the current scope [INFO] [stdout] --> src/seq/iterator.rs:28:36 [INFO] [stdout] | [INFO] [stdout] 7 | println!("I am {}!", faces.chars().choose(&mut rand::rng()).unwrap()); [INFO] [stdout] | ^^^^^^ method not found in `Chars<'_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/iterator.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `Chars<'_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IteratorRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/iterator.rs:28:48 [INFO] [stdout] | [INFO] [stdout] 7 | println!("I am {}!", faces.chars().choose(&mut rand::rng()).unwrap()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/iterator.rs - seq::iterator::IteratorRandom::choose (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/iterator.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::IteratorRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `std::str::Split<'a, P>` in the current scope [INFO] [stdout] --> src/seq/iterator.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{}", words.choose(&mut rand::rng()).unwrap()); [INFO] [stdout] | ^^^^^^ method not found in `std::str::Split<'_, char>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/iterator.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn choose(mut self, rng: &mut R) -> Option [INFO] [stdout] | ------ the method is available for `std::str::Split<'_, char>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IteratorRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IteratorRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/iterator.rs:64:34 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{}", words.choose(&mut rand::rng()).unwrap()); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple (line 74) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::IndexedRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = &mut rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose_multiple` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:81:25 [INFO] [stdout] | [INFO] [stdout] 10 | let v: Vec = sample.choose_multiple(&mut rng, 3).cloned().collect(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `choose_mut` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/seq/slice.rs:253:5 [INFO] [stdout] | [INFO] [stdout] 253 | / fn choose_mut(&mut self, rng: &mut R) -> Option<&mut Self::Output> [INFO] [stdout] 254 | | where [INFO] [stdout] 255 | | R: Rng + ?Sized, [INFO] [stdout] | |________________________^ [INFO] [stdout] help: trait `IndexedRandom` which provides `choose_multiple` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose_multiple` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:85:25 [INFO] [stdout] | [INFO] [stdout] 14 | for (b, slot) in sample.choose_multiple(&mut rng, buf.len()).zip(buf.iter_mut()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `choose_mut` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/seq/slice.rs:253:5 [INFO] [stdout] | [INFO] [stdout] 253 | / fn choose_mut(&mut self, rng: &mut R) -> Option<&mut Self::Output> [INFO] [stdout] 254 | | where [INFO] [stdout] 255 | | R: Rng + ?Sized, [INFO] [stdout] | |________________________^ [INFO] [stdout] help: trait `IndexedRandom` which provides `choose_multiple` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple_array (line 111) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::IndexedRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:114:20 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = &mut rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose_multiple_array` found for reference `&[u8]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:117:25 [INFO] [stdout] | [INFO] [stdout] 9 | let a: [u8; 3] = sample.choose_multiple_array(&mut rng).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `choose_multiple` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/seq/slice.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter [INFO] [stdout] 91 | | where [INFO] [stdout] 92 | | Self::Output: Sized, [INFO] [stdout] 93 | | R: Rng + ?Sized, [INFO] [stdout] | |________________________^ [INFO] [stdout] help: trait `IndexedRandom` which provides `choose_multiple_array` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::IndexedRandom::choose (line 44) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::IndexedRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for array `[{integer}; 6]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:49:26 [INFO] [stdout] | [INFO] [stdout] 8 | println!("{:?}", choices.choose(&mut rng)); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn choose(&self, rng: &mut R) -> Option<&Self::Output> [INFO] [stdout] | ------ the method is available for `[{integer}; 6]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IndexedRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] help: there is a method `choose_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 8 | println!("{:?}", choices.choose_mut(&mut rng)); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for slice `[{integer}]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:50:25 [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(choices[..0].choose(&mut rng), None); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn choose(&self, rng: &mut R) -> Option<&Self::Output> [INFO] [stdout] | ------ the method is available for `[{integer}]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IndexedRandom` which provides `choose` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] help: there is a method `choose_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 9 | assert_eq!(choices[..0].choose_mut(&mut rng), None); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::SliceRandom::shuffle (line 328) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:329:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:331:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffle` found for array `[{integer}; 5]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:334:3 [INFO] [stdout] | [INFO] [stdout] 9 | y.shuffle(&mut rng); [INFO] [stdout] | ^^^^^^^ method not found in `[{integer}; 5]` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:337:8 [INFO] [stdout] | [INFO] [stdout] 337 | fn shuffle(&mut self, rng: &mut R) [INFO] [stdout] | ------- the method is available for `[{integer}; 5]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SliceRandom` which provides `shuffle` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::SliceRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::SliceRandom (line 307) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:308:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:310:15 [INFO] [stdout] | [INFO] [stdout] 6 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `shuffle` found for struct `Vec` in the current scope [INFO] [stdout] --> src/seq/slice.rs:312:7 [INFO] [stdout] | [INFO] [stdout] 8 | bytes.shuffle(&mut rng); [INFO] [stdout] | ^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SliceRandom` which provides `shuffle` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::SliceRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::IndexedRandom::choose_weighted (line 145) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:146:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:149:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose_weighted` found for array `[(char, {integer}); 4]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:152:26 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}", choices.choose_weighted(&mut rng, |item| item.1).unwrap().0); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn choose_weighted( [INFO] [stdout] | --------------- the method is available for `[(char, {integer}); 4]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `IndexedRandom` which provides `choose_weighted` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] help: there is a method `choose_weighted_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 10 | println!("{:?}", choices.choose_weighted_mut(&mut rng, |item| item.1).unwrap().0); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple_weighted (line 199) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::prelude::*; [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rand` [INFO] [stdout] --> src/seq/slice.rs:203:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rng = rand::rng(); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rand` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rand`, use `cargo add rand` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose_multiple_weighted` found for array `[(char, {integer}); 3]` in the current scope [INFO] [stdout] --> src/seq/slice.rs:209:26 [INFO] [stdout] | [INFO] [stdout] 13 | println!("{:?}", choices.choose_multiple_weighted(&mut rng, 2, |item| item.1).unwrap().collect::>()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/seq/slice.rs:215:8 [INFO] [stdout] | [INFO] [stdout] 215 | fn choose_multiple_weighted( [INFO] [stdout] | ------------------------ the method is available for `[(char, {integer}); 3]` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `choose_multiple` with a similar name, but with different arguments [INFO] [stdout] --> /opt/rustwide/workdir/src/seq/slice.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / fn choose_multiple(&self, rng: &mut R, amount: usize) -> SliceChooseIter [INFO] [stdout] 91 | | where [INFO] [stdout] 92 | | Self::Output: Sized, [INFO] [stdout] 93 | | R: Rng + ?Sized, [INFO] [stdout] | |________________________^ [INFO] [stdout] help: trait `IndexedRandom` which provides `choose_multiple_weighted` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use supply_chain_trust_example_crate_000012::prelude::IndexedRandom; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/distr/bernoulli.rs - distr::bernoulli::Bernoulli (line 33) [INFO] [stdout] src/distr/distribution.rs - distr::distribution::Distribution::map (line 88) [INFO] [stdout] src/distr/distribution.rs - distr::distribution::Distribution::sample_iter (line 50) [INFO] [stdout] src/distr/float.rs - distr::float::Open01 (line 61) [INFO] [stdout] src/distr/float.rs - distr::float::OpenClosed01 (line 34) [INFO] [stdout] src/distr/mod.rs - distr::StandardUniform (line 164) [INFO] [stdout] src/distr/mod.rs - distr::StandardUniform (line 181) [INFO] [stdout] src/distr/other.rs - distr::other::Alphabetic (line 81) [INFO] [stdout] src/distr/other.rs - distr::other::Alphanumeric (line 36) [INFO] [stdout] src/distr/other.rs - distr::other::Alphanumeric (line 47) [INFO] [stdout] src/distr/slice.rs - distr::slice::Choose (line 29) [INFO] [stdout] src/distr/slice.rs - distr::slice::Choose (line 47) [INFO] [stdout] src/distr/uniform.rs - distr::uniform (line 18) [INFO] [stdout] src/distr/uniform.rs - distr::uniform (line 51) [INFO] [stdout] src/distr/uniform.rs - distr::uniform::Uniform (line 184) [INFO] [stdout] src/distr/uniform.rs - distr::uniform::Uniform (line 198) [INFO] [stdout] src/distr/uniform.rs - distr::uniform::UniformSampler::sample_single (line 329) [INFO] [stdout] src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex (line 55) [INFO] [stdout] src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex::weight (line 298) [INFO] [stdout] src/distr/weighted/weighted_index.rs - distr::weighted::weighted_index::WeightedIndex::weights (line 333) [INFO] [stdout] src/lib.rs - (line 17) [INFO] [stdout] src/lib.rs - fill (line 284) [INFO] [stdout] src/lib.rs - random (line 140) [INFO] [stdout] src/lib.rs - random (line 155) [INFO] [stdout] src/lib.rs - random_bool (line 231) [INFO] [stdout] src/lib.rs - random_iter (line 185) [INFO] [stdout] src/lib.rs - random_range (line 205) [INFO] [stdout] src/lib.rs - random_ratio (line 265) [INFO] [stdout] src/prelude.rs - prelude (line 15) [INFO] [stdout] src/rng.rs - rng::Rng (line 49) [INFO] [stdout] src/rng.rs - rng::Rng::fill (line 305) [INFO] [stdout] src/rng.rs - rng::Rng::random (line 63) [INFO] [stdout] src/rng.rs - rng::Rng::random (line 82) [INFO] [stdout] src/rng.rs - rng::Rng::random_bool (line 177) [INFO] [stdout] src/rng.rs - rng::Rng::random_iter (line 112) [INFO] [stdout] src/rng.rs - rng::Rng::random_range (line 143) [INFO] [stdout] src/rng.rs - rng::Rng::random_ratio (line 215) [INFO] [stdout] src/rng.rs - rng::Rng::sample (line 239) [INFO] [stdout] src/rng.rs - rng::Rng::sample_iter (line 260) [INFO] [stdout] src/rngs/mock.rs - rngs::mock::StepRng (line 33) [INFO] [stdout] src/rngs/reseeding.rs - rngs::reseeding::ReseedingRng (line 55) [INFO] [stdout] src/rngs/small.rs - rngs::small::SmallRng (line 44) [INFO] [stdout] src/rngs/small.rs - rngs::small::SmallRng (line 51) [INFO] [stdout] src/rngs/small.rs - rngs::small::SmallRng (line 60) [INFO] [stdout] src/rngs/std.rs - rngs::std::StdRng (line 41) [INFO] [stdout] src/rngs/std.rs - rngs::std::StdRng (line 48) [INFO] [stdout] src/rngs/thread.rs - rngs::thread::rng (line 137) [INFO] [stdout] src/seq/iterator.rs - seq::iterator::IteratorRandom (line 24) [INFO] [stdout] src/seq/iterator.rs - seq::iterator::IteratorRandom::choose (line 60) [INFO] [stdout] src/seq/slice.rs - seq::slice::IndexedRandom::choose (line 44) [INFO] [stdout] src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple (line 74) [INFO] [stdout] src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple_array (line 111) [INFO] [stdout] src/seq/slice.rs - seq::slice::IndexedRandom::choose_multiple_weighted (line 199) [INFO] [stdout] src/seq/slice.rs - seq::slice::IndexedRandom::choose_weighted (line 145) [INFO] [stdout] src/seq/slice.rs - seq::slice::SliceRandom (line 307) [INFO] [stdout] src/seq/slice.rs - seq::slice::SliceRandom::shuffle (line 328) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 56 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.47s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "6b3fb121609c301052e47bf89985195992cf00d0faa5430b6be7cc96d71abe3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b3fb121609c301052e47bf89985195992cf00d0faa5430b6be7cc96d71abe3e", kill_on_drop: false }` [INFO] [stdout] 6b3fb121609c301052e47bf89985195992cf00d0faa5430b6be7cc96d71abe3e