[INFO] fetching crate metaheuristics 1.0.15... [INFO] testing metaheuristics-1.0.15 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate metaheuristics 1.0.15 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate metaheuristics 1.0.15 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-6/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72c18a9cc3256dbee90ac8a904a01d44f5f1bdff79ee59622409c147243a7a1e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "72c18a9cc3256dbee90ac8a904a01d44f5f1bdff79ee59622409c147243a7a1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72c18a9cc3256dbee90ac8a904a01d44f5f1bdff79ee59622409c147243a7a1e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72c18a9cc3256dbee90ac8a904a01d44f5f1bdff79ee59622409c147243a7a1e", kill_on_drop: false }` [INFO] [stdout] 72c18a9cc3256dbee90ac8a904a01d44f5f1bdff79ee59622409c147243a7a1e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6ede331552e48768fb3ba8fdcf56e995b4f8674cbe07a5fc112544a93c49fc3a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6ede331552e48768fb3ba8fdcf56e995b4f8674cbe07a5fc112544a93c49fc3a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.22s [INFO] running `Command { std: "docker" "inspect" "6ede331552e48768fb3ba8fdcf56e995b4f8674cbe07a5fc112544a93c49fc3a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ede331552e48768fb3ba8fdcf56e995b4f8674cbe07a5fc112544a93c49fc3a", kill_on_drop: false }` [INFO] [stdout] 6ede331552e48768fb3ba8fdcf56e995b4f8674cbe07a5fc112544a93c49fc3a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 09afb62d5d1785276986c7a6f89add6e8b2109f9c1a6c8a8628159a11a0a8a4c [INFO] running `Command { std: "docker" "start" "-a" "09afb62d5d1785276986c7a6f89add6e8b2109f9c1a6c8a8628159a11a0a8a4c", kill_on_drop: false }` [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling metaheuristics v1.0.15 (/opt/rustwide/workdir) [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stdout] = note: for more information, see issue #80165 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.32s [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "09afb62d5d1785276986c7a6f89add6e8b2109f9c1a6c8a8628159a11a0a8a4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09afb62d5d1785276986c7a6f89add6e8b2109f9c1a6c8a8628159a11a0a8a4c", kill_on_drop: false }` [INFO] [stdout] 09afb62d5d1785276986c7a6f89add6e8b2109f9c1a6c8a8628159a11a0a8a4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 87fb84b1fd512229ea7d6717e570aee555fd52bfc430f8b5c7b81e0fb44f3b6c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "87fb84b1fd512229ea7d6717e570aee555fd52bfc430f8b5c7b81e0fb44f3b6c", 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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [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 was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition! [INFO] [stderr] = note: for more information, see issue #80165 [INFO] [stderr] [INFO] [stderr] warning: 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/metaheuristics-18ca0d369af71f06) [INFO] [stdout] [INFO] [stderr] Doc-tests metaheuristics [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] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test src/lib.rs - Metaheuristics::clone_candidate (line 77) ... FAILED [INFO] [stdout] test src/lib.rs - (line 31) ... FAILED [INFO] [stdout] test src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts (line 13) ... FAILED [INFO] [stdout] test src/lib.rs - Metaheuristics::tweak_candidate (line 100) ... FAILED [INFO] [stdout] test src/random_search/mod.rs - random_search (line 10) ... FAILED [INFO] [stdout] test src/simulated_annealing/mod.rs - simulated_annealing::solve (line 61) ... FAILED [INFO] [stdout] test src/lib.rs - Metaheuristics::rank_candidate (line 91) ... FAILED [INFO] [stdout] test src/hill_climbing/mod.rs - hill_climbing::solve (line 36) ... FAILED [INFO] [stdout] test src/hill_climbing/mod.rs - hill_climbing (line 17) ... FAILED [INFO] [stdout] test src/hill_climbing/random_restarts/mod.rs - hill_climbing::random_restarts::solve (line 37) ... 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 18) ... FAILED [INFO] [stdout] test src/simulated_annealing/mod.rs - simulated_annealing (line 44) ... FAILED [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] [stdout] test src/lib.rs - Metaheuristics::generate_candidate (line 84) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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 - (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/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/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/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/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] ---- 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/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/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/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/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 18) stdout ---- [INFO] [stdout] error[E0425]: cannot find function, tuple struct or tuple variant `P` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_simulated_annealing_mod_rs_18_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:19: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:19: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:19: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:19: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 (line 44) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `problem` in this scope [INFO] [stdout] --> src/simulated_annealing/mod.rs:45: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:45: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/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] [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 18) [INFO] [stdout] src/simulated_annealing/mod.rs - simulated_annealing (line 44) [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.25s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "87fb84b1fd512229ea7d6717e570aee555fd52bfc430f8b5c7b81e0fb44f3b6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87fb84b1fd512229ea7d6717e570aee555fd52bfc430f8b5c7b81e0fb44f3b6c", kill_on_drop: false }` [INFO] [stdout] 87fb84b1fd512229ea7d6717e570aee555fd52bfc430f8b5c7b81e0fb44f3b6c