[INFO] fetching crate rustneat 0.2.1... [INFO] testing rustneat-0.2.1 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate rustneat 0.2.1 into /workspace/builds/worker-14/source [INFO] validating manifest of crates.io crate rustneat 0.2.1 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rustneat 0.2.1 [INFO] finished tweaking crates.io crate rustneat 0.2.1 [INFO] tweaked toml for crates.io crate rustneat 0.2.1 written to /workspace/builds/worker-14/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85f824d7982a79b6683a5889bfdbd345b6bd3b5dcc30e311fc578908def3fb9e [INFO] running `Command { std: "docker" "start" "-a" "85f824d7982a79b6683a5889bfdbd345b6bd3b5dcc30e311fc578908def3fb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85f824d7982a79b6683a5889bfdbd345b6bd3b5dcc30e311fc578908def3fb9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85f824d7982a79b6683a5889bfdbd345b6bd3b5dcc30e311fc578908def3fb9e", kill_on_drop: false }` [INFO] [stdout] 85f824d7982a79b6683a5889bfdbd345b6bd3b5dcc30e311fc578908def3fb9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bb3138395461b0ca32c757ed22ca5c6971d6db3612600483414d618fd6029006 [INFO] running `Command { std: "docker" "start" "-a" "bb3138395461b0ca32c757ed22ca5c6971d6db3612600483414d618fd6029006", kill_on_drop: false }` [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling custom_derive v0.1.7 [INFO] [stderr] Compiling crossbeam v0.2.12 [INFO] [stderr] Compiling conv v0.3.3 [INFO] [stderr] Compiling rulinalg v0.3.7 [INFO] [stderr] Compiling rustneat v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/mutation.rs:14:73 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stdout] 14 + pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> Gene { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/species_evaluator.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | environment: &'a mut Environment, [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] 13 - environment: &'a mut Environment, [INFO] [stdout] 13 + environment: &'a mut dyn Environment, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutation.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl Mutation { [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] 5 - impl Mutation { [INFO] [stdout] 5 + impl dyn Mutation { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/population.rs:49:53 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn evaluate_in(&mut self, environment: &mut Environment) { [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] 49 - pub fn evaluate_in(&mut self, environment: &mut Environment) { [INFO] [stdout] 49 + pub fn evaluate_in(&mut self, environment: &mut dyn Environment) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/species_evaluator.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [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] 18 - pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [INFO] [stdout] 18 + pub fn new(environment: &mut dyn Environment) -> SpeciesEvaluator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | Mutation::connection_weight( [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] 128 | ::connection_weight( [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | Mutation::toggle_expression(&mut self.genes[selected_gene]); [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] 138 | ::toggle_expression(&mut self.genes[selected_gene]); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Mutation::add_neuron(gene, self.last_neuron_id) [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] 148 | ::add_neuron(gene, self.last_neuron_id) [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let gene = Mutation::add_connection(in_neuron_id, out_neuron_id); [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] 155 | let gene = ::add_connection(in_neuron_id, out_neuron_id); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `champion_fitness` [INFO] [stdout] --> src/specie.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | champion_fitness: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/specie.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/genome.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / format!( [INFO] [stdout] 86 | | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 87 | | in_neuron_id, max_neuron_id [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 85 ~ [INFO] [stdout] 86 | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 87 | in_neuron_id, max_neuron_id [INFO] [stdout] 88 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/genome.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / format!( [INFO] [stdout] 93 | | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 94 | | out_neuron_id, max_neuron_id [INFO] [stdout] 95 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 92 ~ [INFO] [stdout] 93 | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 94 | out_neuron_id, max_neuron_id [INFO] [stdout] 95 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.55s [INFO] running `Command { std: "docker" "inspect" "bb3138395461b0ca32c757ed22ca5c6971d6db3612600483414d618fd6029006", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb3138395461b0ca32c757ed22ca5c6971d6db3612600483414d618fd6029006", kill_on_drop: false }` [INFO] [stdout] bb3138395461b0ca32c757ed22ca5c6971d6db3612600483414d618fd6029006 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14907bd6050c1bc54f88b8d6f9b8c99f28334014d19a62a15c3a962650bf621b [INFO] running `Command { std: "docker" "start" "-a" "14907bd6050c1bc54f88b8d6f9b8c99f28334014d19a62a15c3a962650bf621b", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/mutation.rs:14:73 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stdout] 14 + pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> Gene { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/species_evaluator.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | environment: &'a mut Environment, [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] 13 - environment: &'a mut Environment, [INFO] [stdout] 13 + environment: &'a mut dyn Environment, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutation.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl Mutation { [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] 5 - impl Mutation { [INFO] [stdout] 5 + impl dyn Mutation { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/population.rs:49:53 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn evaluate_in(&mut self, environment: &mut Environment) { [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] 49 - pub fn evaluate_in(&mut self, environment: &mut Environment) { [INFO] [stdout] 49 + pub fn evaluate_in(&mut self, environment: &mut dyn Environment) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/species_evaluator.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [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] 18 - pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [INFO] [stdout] 18 + pub fn new(environment: &mut dyn Environment) -> SpeciesEvaluator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | Mutation::connection_weight( [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] 128 | ::connection_weight( [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | Mutation::toggle_expression(&mut self.genes[selected_gene]); [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] 138 | ::toggle_expression(&mut self.genes[selected_gene]); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Mutation::add_neuron(gene, self.last_neuron_id) [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] 148 | ::add_neuron(gene, self.last_neuron_id) [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let gene = Mutation::add_connection(in_neuron_id, out_neuron_id); [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] 155 | let gene = ::add_connection(in_neuron_id, out_neuron_id); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `champion_fitness` [INFO] [stdout] --> src/specie.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | champion_fitness: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/specie.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/genome.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / format!( [INFO] [stdout] 86 | | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 87 | | in_neuron_id, max_neuron_id [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 85 ~ [INFO] [stdout] 86 | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 87 | in_neuron_id, max_neuron_id [INFO] [stdout] 88 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/genome.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / format!( [INFO] [stdout] 93 | | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 94 | | out_neuron_id, max_neuron_id [INFO] [stdout] 95 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 92 ~ [INFO] [stdout] 93 | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 94 | out_neuron_id, max_neuron_id [INFO] [stdout] 95 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rustneat v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/mutation.rs:14:73 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 14 - pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stdout] 14 + pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> Gene { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/species_evaluator.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | environment: &'a mut Environment, [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] 13 - environment: &'a mut Environment, [INFO] [stdout] 13 + environment: &'a mut dyn Environment, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutation.rs:5:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl Mutation { [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] 5 - impl Mutation { [INFO] [stdout] 5 + impl dyn Mutation { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/population.rs:49:53 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn evaluate_in(&mut self, environment: &mut Environment) { [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] 49 - pub fn evaluate_in(&mut self, environment: &mut Environment) { [INFO] [stdout] 49 + pub fn evaluate_in(&mut self, environment: &mut dyn Environment) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/species_evaluator.rs:18:34 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [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] 18 - pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [INFO] [stdout] 18 + pub fn new(environment: &mut dyn Environment) -> SpeciesEvaluator { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:128:13 [INFO] [stdout] | [INFO] [stdout] 128 | Mutation::connection_weight( [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] 128 | ::connection_weight( [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | Mutation::toggle_expression(&mut self.genes[selected_gene]); [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] 138 | ::toggle_expression(&mut self.genes[selected_gene]); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | Mutation::add_neuron(gene, self.last_neuron_id) [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] 148 | ::add_neuron(gene, self.last_neuron_id) [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/genome.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let gene = Mutation::add_connection(in_neuron_id, out_neuron_id); [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] 155 | let gene = ::add_connection(in_neuron_id, out_neuron_id); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutation.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | Mutation::toggle_expression(&mut gene); [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] 45 | ::toggle_expression(&mut gene); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/mutation.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | Mutation::toggle_expression(&mut gene); [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] 48 | ::toggle_expression(&mut gene); [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `champion_fitness` [INFO] [stdout] --> src/specie.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | champion_fitness: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] --> src/specie.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Clone)] [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/genome.rs:85:13 [INFO] [stdout] | [INFO] [stdout] 85 | / format!( [INFO] [stdout] 86 | | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 87 | | in_neuron_id, max_neuron_id [INFO] [stdout] 88 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 85 ~ [INFO] [stdout] 86 | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 87 | in_neuron_id, max_neuron_id [INFO] [stdout] 88 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/genome.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | / format!( [INFO] [stdout] 93 | | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 94 | | out_neuron_id, max_neuron_id [INFO] [stdout] 95 | | ) [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 92 ~ [INFO] [stdout] 93 | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stdout] 94 | out_neuron_id, max_neuron_id [INFO] [stdout] 95 ~ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/organism.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 93 - format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stdout] 93 + "{:?} is not bigger than 0.9", output[0] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/organism.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 103 - format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stdout] 103 + "{:?} is not smaller than 0.1", output[0] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/organism.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 118 - format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stdout] 118 + "{:?} is not bigger than 0.9", output[0] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/organism.rs:132:13 [INFO] [stdout] | [INFO] [stdout] 132 | format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 132 - format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stdout] 132 + "{:?} is not bigger than 0.9", output[0] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/organism.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 143 - format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stdout] 143 + "{:?} is not smaller than 0.1", output[0] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.41s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/rustneat-e7e62403fe0e2f62) [INFO] [stderr] Executable tests/rustneat_tests.rs (/opt/rustwide/target/debug/deps/rustneat_tests-67fe1be2733dcfc7) [INFO] running `Command { std: "docker" "inspect" "14907bd6050c1bc54f88b8d6f9b8c99f28334014d19a62a15c3a962650bf621b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14907bd6050c1bc54f88b8d6f9b8c99f28334014d19a62a15c3a962650bf621b", kill_on_drop: false }` [INFO] [stdout] 14907bd6050c1bc54f88b8d6f9b8c99f28334014d19a62a15c3a962650bf621b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 18771940578fde2f5a5dfa22631b6cc91cefcd30cfe8dbb7b7c96ba07344a1f1 [INFO] running `Command { std: "docker" "start" "-a" "18771940578fde2f5a5dfa22631b6cc91cefcd30cfe8dbb7b7c96ba07344a1f1", kill_on_drop: false }` [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> src/mutation.rs:14:73 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 14 - pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stderr] 14 + pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> Gene { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/species_evaluator.rs:13:26 [INFO] [stderr] | [INFO] [stderr] 13 | environment: &'a mut Environment, [INFO] [stderr] | ^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 13 - environment: &'a mut Environment, [INFO] [stderr] 13 + environment: &'a mut dyn Environment, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutation.rs:5:6 [INFO] [stderr] | [INFO] [stderr] 5 | impl Mutation { [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 5 - impl Mutation { [INFO] [stderr] 5 + impl dyn Mutation { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/population.rs:49:53 [INFO] [stderr] | [INFO] [stderr] 49 | pub fn evaluate_in(&mut self, environment: &mut Environment) { [INFO] [stderr] | ^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 49 - pub fn evaluate_in(&mut self, environment: &mut Environment) { [INFO] [stderr] 49 + pub fn evaluate_in(&mut self, environment: &mut dyn Environment) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/species_evaluator.rs:18:34 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [INFO] [stderr] | ^^^^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 18 - pub fn new(environment: &mut Environment) -> SpeciesEvaluator { [INFO] [stderr] 18 + pub fn new(environment: &mut dyn Environment) -> SpeciesEvaluator { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/genome.rs:128:13 [INFO] [stderr] | [INFO] [stderr] 128 | Mutation::connection_weight( [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 128 | ::connection_weight( [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/genome.rs:138:9 [INFO] [stderr] | [INFO] [stderr] 138 | Mutation::toggle_expression(&mut self.genes[selected_gene]); [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 138 | ::toggle_expression(&mut self.genes[selected_gene]); [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/genome.rs:148:13 [INFO] [stderr] | [INFO] [stderr] 148 | Mutation::add_neuron(gene, self.last_neuron_id) [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 148 | ::add_neuron(gene, self.last_neuron_id) [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/genome.rs:155:20 [INFO] [stderr] | [INFO] [stderr] 155 | let gene = Mutation::add_connection(in_neuron_id, out_neuron_id); [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 155 | let gene = ::add_connection(in_neuron_id, out_neuron_id); [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: field is never read: `champion_fitness` [INFO] [stderr] --> src/specie.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 12 | champion_fitness: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] --> src/specie.rs:8:10 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Debug, Clone)] [INFO] [stderr] | ^^^^^ ^^^^^ [INFO] [stderr] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/genome.rs:85:13 [INFO] [stderr] | [INFO] [stderr] 85 | / format!( [INFO] [stderr] 86 | | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stderr] 87 | | in_neuron_id, max_neuron_id [INFO] [stderr] 88 | | ) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 85 ~ [INFO] [stderr] 86 | "in_neuron_id {} is greater than max allowed id {}", [INFO] [stderr] 87 | in_neuron_id, max_neuron_id [INFO] [stderr] 88 ~ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/genome.rs:92:13 [INFO] [stderr] | [INFO] [stderr] 92 | / format!( [INFO] [stderr] 93 | | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stderr] 94 | | out_neuron_id, max_neuron_id [INFO] [stderr] 95 | | ) [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 92 ~ [INFO] [stderr] 93 | "out_neuron_id {} is greater than max allowed id {}", [INFO] [stderr] 94 | out_neuron_id, max_neuron_id [INFO] [stderr] 95 ~ [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutation.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 45 | Mutation::toggle_expression(&mut gene); [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 45 | ::toggle_expression(&mut gene); [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/mutation.rs:48:9 [INFO] [stderr] | [INFO] [stderr] 48 | Mutation::toggle_expression(&mut gene); [INFO] [stderr] | ^^^^^^^^ [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] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 48 | ::toggle_expression(&mut gene); [INFO] [stderr] | ++++ + [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/organism.rs:93:13 [INFO] [stderr] | [INFO] [stderr] 93 | format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 93 - format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stderr] 93 + "{:?} is not bigger than 0.9", output[0] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/organism.rs:103:13 [INFO] [stderr] | [INFO] [stderr] 103 | format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 103 - format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stderr] 103 + "{:?} is not smaller than 0.1", output[0] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/organism.rs:118:13 [INFO] [stderr] | [INFO] [stderr] 118 | format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 118 - format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stderr] 118 + "{:?} is not bigger than 0.9", output[0] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/organism.rs:132:13 [INFO] [stderr] | [INFO] [stderr] 132 | format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 132 - format!("{:?} is not bigger than 0.9", output[0]) [INFO] [stderr] 132 + "{:?} is not bigger than 0.9", output[0] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/organism.rs:143:13 [INFO] [stderr] | [INFO] [stderr] 143 | format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 143 - format!("{:?} is not smaller than 0.1", output[0]) [INFO] [stderr] 143 + "{:?} is not smaller than 0.1", output[0] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `rustneat` (lib) generated 12 warnings [INFO] [stderr] warning: `rustneat` (lib test) generated 19 warnings (12 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rustneat-e7e62403fe0e2f62) [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test organism::tests::should_allow_multiple_output ... ok [INFO] [stdout] test mutation::tests::mutate_toggle_gene_should_toggle ... ok [INFO] [stdout] test organism::tests::should_not_raise_exception_if_less_neurons_than_required ... ok [INFO] [stdout] test genome::tests::already_existing_gene_should_be_not_duplicated ... ok [INFO] [stdout] test ctrnn::tests::neural_network_activation_should_return_correct_values ... ok [INFO] [stdout] test genome::tests::mutation_add_neuron ... ok [INFO] [stdout] test genome::tests::two_genomes_with_enought_difference_should_be_in_different_species ... ok [INFO] [stdout] test genome::tests::mutation_add_connection ... ok [INFO] [stdout] test genome::tests::adding_an_existing_gene_disabled_should_enable_original ... ok [INFO] [stdout] test genome::tests::two_genomes_without_differences_should_be_in_same_specie ... ok [INFO] [stdout] test genome::tests::genomes_with_same_genes_with_big_differences_on_weight_should_be_in_other_specie ... ok [INFO] [stdout] test organism::tests::activate_organims_sensor_without_enough_neurons_should_ignore_it ... ok [INFO] [stdout] test genome::tests::genomes_with_same_genes_with_little_differences_on_weight_should_be_in_same_specie ... ok [INFO] [stdout] test organism::tests::should_work_with_cyclic_networks ... ok [INFO] [stdout] test genome::tests::mutation_connection_weight ... ok [INFO] [stdout] test organism::tests::should_be_able_to_get_matrix_representation_of_the_neuron_connections ... ok [INFO] [stdout] test organism::tests::should_propagate_signal_without_hidden_layers ... ok [INFO] [stdout] test population::tests::population_should_be_able_to_speciate_genomes ... ok [INFO] [stdout] test organism::tests::should_propagate_signal_over_hidden_layers ... ok [INFO] [stdout] test specie::tests::specie_should_return_correct_average_fitness ... ok [INFO] [stdout] test genome::tests::try_to_inject_a_unconnected_neuron_gene_should_panic - should panic ... ok [INFO] [stdout] test gene::tests::should_be_able_to_binary_search_for_a_gene ... ok [INFO] [stdout] test population::tests::after_population_evolve_population_should_be_the_same ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 23 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.19s [INFO] [stdout] [INFO] [stderr] Running tests/rustneat_tests.rs (/opt/rustwide/target/debug/deps/rustneat_tests-67fe1be2733dcfc7) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test test::should_be_able_to_generate_a_population ... ok [INFO] [stdout] test test::population_can_evolve ... ok [INFO] [stdout] test test::population_can_be_tested_on_environment ... ok [INFO] [stdout] test test::network_should_be_able_to_solve_xor_classification has been running for over 60 seconds [INFO] [stdout] test test::network_should_be_able_to_solve_xor_classification ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 170.26s [INFO] [stdout] [INFO] [stderr] Doc-tests rustneat [INFO] [stderr] warning: unnecessary parentheses around type [INFO] [stderr] --> /opt/rustwide/workdir/src/mutation.rs:14:73 [INFO] [stderr] | [INFO] [stderr] 14 | pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 14 - pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> (Gene) { [INFO] [stderr] 14 + pub fn add_connection(in_neuron_id: usize, out_neuron_id: usize) -> Gene { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [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] running `Command { std: "docker" "inspect" "18771940578fde2f5a5dfa22631b6cc91cefcd30cfe8dbb7b7c96ba07344a1f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18771940578fde2f5a5dfa22631b6cc91cefcd30cfe8dbb7b7c96ba07344a1f1", kill_on_drop: false }` [INFO] [stdout] 18771940578fde2f5a5dfa22631b6cc91cefcd30cfe8dbb7b7c96ba07344a1f1