[INFO] fetching crate metaheuristics 1.0.15... [INFO] testing metaheuristics-1.0.15 against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] extracting crate metaheuristics 1.0.15 into /workspace/builds/worker-16/source [INFO] validating manifest of crates.io crate metaheuristics 1.0.15 on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate metaheuristics 1.0.15 [INFO] finished tweaking crates.io crate metaheuristics 1.0.15 [INFO] tweaked toml for crates.io crate metaheuristics 1.0.15 written to /workspace/builds/worker-16/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a96e25a4fbf540bb585b73e53f4a7ed321f5b752d8fefc4ea53dd86173c648b8 [INFO] running `Command { std: "docker" "start" "-a" "a96e25a4fbf540bb585b73e53f4a7ed321f5b752d8fefc4ea53dd86173c648b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a96e25a4fbf540bb585b73e53f4a7ed321f5b752d8fefc4ea53dd86173c648b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a96e25a4fbf540bb585b73e53f4a7ed321f5b752d8fefc4ea53dd86173c648b8", kill_on_drop: false }` [INFO] [stdout] a96e25a4fbf540bb585b73e53f4a7ed321f5b752d8fefc4ea53dd86173c648b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dfced30e34eee2106f715e79fa10527186897674a7776fa1a45c0fae8a109859 [INFO] running `Command { std: "docker" "start" "-a" "dfced30e34eee2106f715e79fa10527186897674a7776fa1a45c0fae8a109859", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.108 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling metaheuristics v1.0.15 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration, probability: f64) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hill_climbing/mod.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/random_search/mod.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/simulated_annealing/mod.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.90s [INFO] running `Command { std: "docker" "inspect" "dfced30e34eee2106f715e79fa10527186897674a7776fa1a45c0fae8a109859", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dfced30e34eee2106f715e79fa10527186897674a7776fa1a45c0fae8a109859", kill_on_drop: false }` [INFO] [stdout] dfced30e34eee2106f715e79fa10527186897674a7776fa1a45c0fae8a109859 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fa5f84aaddcd6391edb9230b6a79dc986194fdf8f03037a6bf8a666077851262 [INFO] running `Command { std: "docker" "start" "-a" "fa5f84aaddcd6391edb9230b6a79dc986194fdf8f03037a6bf8a666077851262", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling metaheuristics v1.0.15 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration, probability: f64) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hill_climbing/mod.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/random_search/mod.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/simulated_annealing/mod.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:44:31 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration, probability: f64) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/hill_climbing/mod.rs:39:31 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/random_search/mod.rs:30:31 [INFO] [stdout] | [INFO] [stdout] 30 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/simulated_annealing/mod.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "fa5f84aaddcd6391edb9230b6a79dc986194fdf8f03037a6bf8a666077851262", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa5f84aaddcd6391edb9230b6a79dc986194fdf8f03037a6bf8a666077851262", kill_on_drop: false }` [INFO] [stdout] fa5f84aaddcd6391edb9230b6a79dc986194fdf8f03037a6bf8a666077851262 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:e8397a04204aaf8b9f284182a6f9e27a3c2e67044d0943b4415b160bfc957681" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] f126dcd94cda6c5bfb5d9b119a9f77daa999907a5164130340f35c356d910922 [INFO] running `Command { std: "docker" "start" "-a" "f126dcd94cda6c5bfb5d9b119a9f77daa999907a5164130340f35c356d910922", kill_on_drop: false }` [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hill_climbing/random_restarts/mod.rs:44:31 [INFO] [stderr] | [INFO] [stderr] 44 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration, probability: f64) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/hill_climbing/mod.rs:39:31 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/random_search/mod.rs:30:31 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/simulated_annealing/mod.rs:64:31 [INFO] [stderr] | [INFO] [stderr] 64 | pub fn solve(problem: &mut Metaheuristics, runtime: Duration) -> T { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Metaheuristics` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: `metaheuristics` (lib) generated 4 warnings [INFO] [stderr] warning: `metaheuristics` (lib test) generated 4 warnings (4 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/metaheuristics-892d2995a5967900) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests metaheuristics [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test src/random_search/mod.rs - random_search (line 10) ... FAILED [INFO] [stdout] test src/hill_climbing/mod.rs - hill_climbing (line 17) ... FAILED [INFO] [stdout] test src/lib.rs - Metaheuristics::clone_candidate (line 77) ... FAILED [INFO] [stdout] test src/lib.rs - Metaheuristics::generate_candidate (line 84) ... FAILED [INFO] [stdout] test src/lib.rs - Metaheuristics::tweak_candidate (line 100) ... FAILED [INFO] [stdout] test src/hill_climbing/mod.rs - hill_climbing::solve (line 36) ... FAILED [INFO] [stdout] test src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts (line 13) ... FAILED [INFO] [stdout] test src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts::solve (line 37) ... FAILED [INFO] [stdout] test src/lib.rs - Metaheuristics::rank_candidate (line 91) ... FAILED [INFO] [stdout] test src/lib.rs - (line 31) ... FAILED [INFO] [stdout] test src/random_search/mod.rs - random_search::solve (line 27) ... FAILED [INFO] [stdout] test src/simulated_annealing/mod.rs - simulated_annealing (line 43) ... FAILED [INFO] [stdout] test src/simulated_annealing/mod.rs - simulated_annealing (line 17) ... FAILED [INFO] [stdout] test src/simulated_annealing/mod.rs - simulated_annealing::solve (line 61) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/random_search/mod.rs - random_search (line 10) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/random_search/mod.rs:11:58 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::random_search::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/random_search/mod.rs:11:67 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::random_search::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hill_climbing/mod.rs - hill_climbing (line 17) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/hill_climbing/mod.rs:18:58 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::hill_climbing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/hill_climbing/mod.rs:18:67 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::hill_climbing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Metaheuristics::clone_candidate (line 77) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/lib.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 3 | let new_candidate = problem.clone_candidate(&old_candidate); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `old_candidate` in this scope [INFO] [stdout] --> src/lib.rs:78:46 [INFO] [stdout] | [INFO] [stdout] 3 | let new_candidate = problem.clone_candidate(&old_candidate); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Metaheuristics::generate_candidate (line 84) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/lib.rs:85:17 [INFO] [stdout] | [INFO] [stdout] 3 | let candidate = problem.generate_candidate(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Metaheuristics::tweak_candidate (line 100) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 3 | let new_candidate = problem.tweak_candidate(&old_candidate); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `old_candidate` in this scope [INFO] [stdout] --> src/lib.rs:101:46 [INFO] [stdout] | [INFO] [stdout] 3 | let new_candidate = problem.tweak_candidate(&old_candidate); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hill_climbing/mod.rs - hill_climbing::solve (line 36) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/hill_climbing/mod.rs:37:58 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::hill_climbing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/hill_climbing/mod.rs:37:67 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::hill_climbing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts (line 13) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 5 | &mut problem, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 6 | runtime, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `probability` in this scope [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 7 | probability [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts::solve (line 37) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:39:10 [INFO] [stdout] | [INFO] [stdout] 5 | &mut problem, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 6 | runtime, [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `probability` in this scope [INFO] [stdout] --> src/hill_climbing/random_restarts/mod.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 7 | probability [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Metaheuristics::rank_candidate (line 91) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 4 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 4 | .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 4 | ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:93:6 [INFO] [stdout] | [INFO] [stdout] 4 | ... [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/lib.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 3 | if problem.rank_candidate(&new_candidate) > problem.rank_candidate(&old_candidate) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `new_candidate` in this scope [INFO] [stdout] --> src/lib.rs:92:28 [INFO] [stdout] | [INFO] [stdout] 3 | if problem.rank_candidate(&new_candidate) > problem.rank_candidate(&old_candidate) { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/lib.rs:92:45 [INFO] [stdout] | [INFO] [stdout] 3 | if problem.rank_candidate(&new_candidate) > problem.rank_candidate(&old_candidate) { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `old_candidate` in this scope [INFO] [stdout] --> src/lib.rs:92:69 [INFO] [stdout] | [INFO] [stdout] 3 | if problem.rank_candidate(&new_candidate) > problem.rank_candidate(&old_candidate) { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 31) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/lib.rs:32:58 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::hill_climbing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/lib.rs:32:67 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::hill_climbing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/random_search/mod.rs - random_search::solve (line 27) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/random_search/mod.rs:28:58 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::random_search::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/random_search/mod.rs:28:67 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::random_search::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/simulated_annealing/mod.rs - simulated_annealing (line 43) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:44:64 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::simulated_annealing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:44:73 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::simulated_annealing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/simulated_annealing/mod.rs - simulated_annealing (line 17) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `P` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_simulated_annealing_mod_rs_17_0() { [INFO] [stdout] | - help: you might be missing a type parameter: `

` [INFO] [stdout] 3 | P(t) = e^(-10*(t^3)) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `t` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:18:3 [INFO] [stdout] | [INFO] [stdout] 3 | P(t) = e^(-10*(t^3)) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `e` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 3 | P(t) = e^(-10*(t^3)) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `t` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:18:16 [INFO] [stdout] | [INFO] [stdout] 3 | P(t) = e^(-10*(t^3)) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/simulated_annealing/mod.rs:18:6 [INFO] [stdout] | [INFO] [stdout] 3 | P(t) = e^(-10*(t^3)) [INFO] [stdout] | ---- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/simulated_annealing/mod.rs - simulated_annealing::solve (line 61) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:62:64 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::simulated_annealing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `runtime` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:62:73 [INFO] [stdout] | [INFO] [stdout] 4 | let solution = metaheuristics::simulated_annealing::solve(&mut problem, runtime); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/hill_climbing/mod.rs - hill_climbing (line 17) [INFO] [stdout] src/hill_climbing/mod.rs - hill_climbing::solve (line 36) [INFO] [stdout] src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts (line 13) [INFO] [stdout] src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts::solve (line 37) [INFO] [stdout] src/lib.rs - (line 31) [INFO] [stdout] src/lib.rs - Metaheuristics::clone_candidate (line 77) [INFO] [stdout] src/lib.rs - Metaheuristics::generate_candidate (line 84) [INFO] [stdout] src/lib.rs - Metaheuristics::rank_candidate (line 91) [INFO] [stdout] src/lib.rs - Metaheuristics::tweak_candidate (line 100) [INFO] [stdout] src/random_search/mod.rs - random_search (line 10) [INFO] [stdout] src/random_search/mod.rs - random_search::solve (line 27) [INFO] [stdout] src/simulated_annealing/mod.rs - simulated_annealing (line 17) [INFO] [stdout] src/simulated_annealing/mod.rs - simulated_annealing (line 43) [INFO] [stdout] src/simulated_annealing/mod.rs - simulated_annealing::solve (line 61) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 14 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "f126dcd94cda6c5bfb5d9b119a9f77daa999907a5164130340f35c356d910922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f126dcd94cda6c5bfb5d9b119a9f77daa999907a5164130340f35c356d910922", kill_on_drop: false }` [INFO] [stdout] f126dcd94cda6c5bfb5d9b119a9f77daa999907a5164130340f35c356d910922