[INFO] cloning repository https://github.com/duvholt/rust-metaheuristic-framework [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/duvholt/rust-metaheuristic-framework" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduvholt%2Frust-metaheuristic-framework", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduvholt%2Frust-metaheuristic-framework'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 11c125e2a2840aed9b61b2f40b7bc406ec9970f2 [INFO] testing duvholt/rust-metaheuristic-framework against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fduvholt%2Frust-metaheuristic-framework" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 68% (175/257) Updating files: 69% (178/257) Updating files: 70% (180/257) Updating files: 71% (183/257) Updating files: 72% (186/257) Updating files: 73% (188/257) Updating files: 74% (191/257) Updating files: 75% (193/257) Updating files: 76% (196/257) Updating files: 77% (198/257) Updating files: 78% (201/257) Updating files: 79% (204/257) Updating files: 80% (206/257) Updating files: 81% (209/257) Updating files: 82% (211/257) Updating files: 83% (214/257) Updating files: 84% (216/257) Updating files: 85% (219/257) Updating files: 86% (222/257) Updating files: 87% (224/257) Updating files: 88% (227/257) Updating files: 89% (229/257) Updating files: 90% (232/257) Updating files: 91% (234/257) Updating files: 92% (237/257) Updating files: 93% (240/257) Updating files: 94% (242/257) Updating files: 95% (245/257) Updating files: 96% (247/257) Updating files: 97% (250/257) Updating files: 98% (252/257) Updating files: 99% (255/257) Updating files: 100% (257/257) Updating files: 100% (257/257), done. [INFO] validating manifest of git repo https://github.com/duvholt/rust-metaheuristic-framework on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/duvholt/rust-metaheuristic-framework [INFO] finished tweaking git repo https://github.com/duvholt/rust-metaheuristic-framework [INFO] tweaked toml for git repo https://github.com/duvholt/rust-metaheuristic-framework written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/duvholt/rust-metaheuristic-framework already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded assert_approx_eq v1.0.0 [INFO] [stderr] Downloaded statistical v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", 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] b1d8ca65616671a06e9bc04ed08b4270b18d14d53307d06085dad405b72ee166 [INFO] running `Command { std: "docker" "start" "-a" "b1d8ca65616671a06e9bc04ed08b4270b18d14d53307d06085dad405b72ee166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1d8ca65616671a06e9bc04ed08b4270b18d14d53307d06085dad405b72ee166", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1d8ca65616671a06e9bc04ed08b4270b18d14d53307d06085dad405b72ee166", kill_on_drop: false }` [INFO] [stdout] b1d8ca65616671a06e9bc04ed08b4270b18d14d53307d06085dad405b72ee166 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--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] e2ba63f82b8fc191e4611c00a21c6023d2015671fbb2b6b9c3d64a364406f9ef [INFO] running `Command { std: "docker" "start" "-a" "e2ba63f82b8fc191e4611c00a21c6023d2015671fbb2b6b9c3d64a364406f9ef", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.2 [INFO] [stderr] Compiling serde v1.0.38 [INFO] [stderr] Compiling assert_approx_eq v1.0.0 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling proc-macro2 v0.3.6 [INFO] [stderr] Compiling itertools v0.7.8 [INFO] [stderr] Compiling quote v0.5.1 [INFO] [stderr] Compiling syn v0.13.1 [INFO] [stderr] Compiling num-integer v0.1.36 [INFO] [stderr] Compiling num-complex v0.1.43 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling ordered-float v0.5.0 [INFO] [stderr] Compiling num-bigint v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.35 [INFO] [stderr] Compiling num-rational v0.1.42 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling statistical v0.1.1 [INFO] [stderr] Compiling serde_derive_internals v0.23.1 [INFO] [stderr] Compiling serde_derive v1.0.38 [INFO] [stderr] Compiling serde_json v1.0.14 [INFO] [stderr] Compiling rustoa v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/distribution.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | (u / v.abs().powf(1.0 / beta)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 32 - (u / v.abs().powf(1.0 / beta)) [INFO] [stdout] 32 + u / v.abs().powf(1.0 / beta) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/multiobjective/rank.rs:10:24 [INFO] [stdout] | [INFO] [stdout] 10 | dominates: HashSet<(usize)>, [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 10 - dominates: HashSet<(usize)>, [INFO] [stdout] 10 + dominates: HashSet, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fitness_evaluation.rs:7:31 [INFO] [stdout] | [INFO] [stdout] 7 | pub type SingleTestFunction = Fn(&Vec) -> f64; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 - pub type SingleTestFunction = Fn(&Vec) -> f64; [INFO] [stdout] 7 + pub type SingleTestFunction = dyn Fn(&Vec) -> f64; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fitness_evaluation.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub type MultiTestFunction = Fn(&Vec) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - pub type MultiTestFunction = Fn(&Vec) -> Vec; [INFO] [stdout] 8 + pub type MultiTestFunction = dyn Fn(&Vec) -> Vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fitness_evaluation.rs:79:88 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn read_shifted(&mut self, number: usize, dimensions: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 - pub fn read_shifted(&mut self, number: usize, dimensions: usize) -> Result<(), Box> { [INFO] [stdout] 79 + pub fn read_shifted(&mut self, number: usize, dimensions: usize) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/fitness_evaluation.rs:93:87 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn read_rotate(&mut self, number: usize, dimensions: usize) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 93 - pub fn read_rotate(&mut self, number: usize, dimensions: usize) -> Result<(), Box> { [INFO] [stdout] 93 + pub fn read_rotate(&mut self, number: usize, dimensions: usize) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/solution.rs:32:35 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn from_single(solution: &Solution) -> SolutionJSON { [INFO] [stdout] | ^^^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 32 - pub fn from_single(solution: &Solution) -> SolutionJSON { [INFO] [stdout] 32 + pub fn from_single(solution: &dyn Solution) -> SolutionJSON { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/solution.rs:39:34 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn from_multi(solution: &Solution>) -> SolutionJSON { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 39 - pub fn from_multi(solution: &Solution>) -> SolutionJSON { [INFO] [stdout] 39 + pub fn from_multi(solution: &dyn Solution>) -> SolutionJSON { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/amo.rs:91:21 [INFO] [stdout] | [INFO] [stdout] 91 | let mut index_offset = [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/archive_amo.rs:126:21 [INFO] [stdout] | [INFO] [stdout] 126 | let mut index_offset = [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/ewa.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | let mut new_worm = worms.combine_worms(&offspring1, &offspring2, iteration); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/loa.rs:297:23 [INFO] [stdout] | [INFO] [stdout] 297 | for (pride_index, mut lions) in pride_lions.chunks(pride_size).into_iter().enumerate() { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/loa.rs:997:14 [INFO] [stdout] | [INFO] [stdout] 997 | let (mut males, mut females) = partition_on_sex(nomad.population.into_iter().collect()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/loa.rs:997:25 [INFO] [stdout] | [INFO] [stdout] 997 | let (mut males, mut females) = partition_on_sex(nomad.population.into_iter().collect()); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/moamo.rs:125:21 [INFO] [stdout] | [INFO] [stdout] 125 | let mut index_offset = [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithms/nsamo.rs:100:21 [INFO] [stdout] | [INFO] [stdout] 100 | let mut index_offset = [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/statistics/sampler.rs:109:21 [INFO] [stdout] | [INFO] [stdout] 109 | let mut solutions = samples [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(test)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0554`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustoa` due to 2 previous errors; 17 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e2ba63f82b8fc191e4611c00a21c6023d2015671fbb2b6b9c3d64a364406f9ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2ba63f82b8fc191e4611c00a21c6023d2015671fbb2b6b9c3d64a364406f9ef", kill_on_drop: false }` [INFO] [stdout] e2ba63f82b8fc191e4611c00a21c6023d2015671fbb2b6b9c3d64a364406f9ef