[INFO] fetching crate rustneat 0.2.1... [INFO] testing rustneat-0.2.1 against try#fc4ba03ef77ca5018fb78a097d3b924d30f15bfc+target=i686-unknown-linux-musl for musl_upgrade_1_2_take3 [INFO] extracting crate rustneat 0.2.1 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate rustneat 0.2.1 on toolchain fc4ba03ef77ca5018fb78a097d3b924d30f15bfc [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "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-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded semver v0.2.3 [INFO] [stderr] Downloaded rulinalg v0.3.7 [INFO] [stderr] Downloaded ws v0.5.3 [INFO] [stderr] Downloaded clippy v0.0.103 [INFO] [stderr] Downloaded clippy_lints v0.0.103 [INFO] [stderr] Downloaded includedir v0.2.2 [INFO] [stderr] Downloaded includedir_codegen v0.2.2 [INFO] [stderr] Downloaded rusty_dashed v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 647a5c2bbdb0a641d0dc3a7ead1aacf8aa363ee880f741e2fa1408c0a4009d2e [INFO] running `Command { std: "docker" "start" "-a" "647a5c2bbdb0a641d0dc3a7ead1aacf8aa363ee880f741e2fa1408c0a4009d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "647a5c2bbdb0a641d0dc3a7ead1aacf8aa363ee880f741e2fa1408c0a4009d2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "647a5c2bbdb0a641d0dc3a7ead1aacf8aa363ee880f741e2fa1408c0a4009d2e", kill_on_drop: false }` [INFO] [stdout] 647a5c2bbdb0a641d0dc3a7ead1aacf8aa363ee880f741e2fa1408c0a4009d2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "build" "--frozen" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] b8382cbb338ff3061b7757c5c2aed1a1f2631d157697e2b2550771f99f4bf25a [INFO] running `Command { std: "docker" "start" "-a" "b8382cbb338ff3061b7757c5c2aed1a1f2631d157697e2b2550771f99f4bf25a", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [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 lazy_static v0.2.11 [INFO] [stderr] Compiling crossbeam v0.2.12 [INFO] [stderr] Compiling conv v0.3.3 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling num-iter v0.1.43 [INFO] [stderr] Compiling num v0.1.42 [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] = 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [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 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 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 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 `champion_fitness` is never read [INFO] [stdout] --> src/specie.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Specie { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | champion_fitness: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: 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] = note: `#[warn(non_fmt_panics)]` on by default [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 6.32s [INFO] running `Command { std: "docker" "inspect" "b8382cbb338ff3061b7757c5c2aed1a1f2631d157697e2b2550771f99f4bf25a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8382cbb338ff3061b7757c5c2aed1a1f2631d157697e2b2550771f99f4bf25a", kill_on_drop: false }` [INFO] [stdout] b8382cbb338ff3061b7757c5c2aed1a1f2631d157697e2b2550771f99f4bf25a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "test" "--frozen" "--no-run" "--message-format=json" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 4f029613cf4bf654592516478b9d12c023253be386e3a9a37add77a892eece4d [INFO] running `Command { std: "docker" "start" "-a" "4f029613cf4bf654592516478b9d12c023253be386e3a9a37add77a892eece4d", kill_on_drop: false }` [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] = 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [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 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 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 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 `champion_fitness` is never read [INFO] [stdout] --> src/specie.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Specie { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | champion_fitness: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: 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] = note: `#[warn(non_fmt_panics)]` on by default [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] [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] = 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [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 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 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 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 `champion_fitness` is never read [INFO] [stdout] --> src/specie.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Specie { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | champion_fitness: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: 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] = note: `#[warn(non_fmt_panics)]` on by default [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] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.92s [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4f029613cf4bf654592516478b9d12c023253be386e3a9a37add77a892eece4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f029613cf4bf654592516478b9d12c023253be386e3a9a37add77a892eece4d", kill_on_drop: false }` [INFO] [stdout] 4f029613cf4bf654592516478b9d12c023253be386e3a9a37add77a892eece4d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:bb5b0feb4f87116a4ea905b7ff5bf5b85913db05e9f0fbc1abdd3168928d9075" "/opt/rustwide/cargo-home/bin/cargo" "+fc4ba03ef77ca5018fb78a097d3b924d30f15bfc" "test" "--frozen" "--target" "i686-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 0b3ce8f3975e592b422c9765d9c1e1f3941502654f82ff7a8bcb49a132167b59 [INFO] running `Command { std: "docker" "start" "-a" "0b3ce8f3975e592b422c9765d9c1e1f3941502654f82ff7a8bcb49a132167b59", 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] = 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [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 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 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 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 `champion_fitness` is never read [INFO] [stderr] --> src/specie.rs:12:5 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Specie { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] ... [INFO] [stderr] 12 | champion_fitness: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Specie` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [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: 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] = note: `#[warn(non_fmt_panics)]` on by default [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.09s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/i686-unknown-linux-musl/debug/deps/rustneat-acc7f90393987977) [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test genome::tests::mutation_add_connection ... ok [INFO] [stdout] test gene::tests::should_be_able_to_binary_search_for_a_gene ... ok [INFO] [stdout] test genome::tests::adding_an_existing_gene_disabled_should_enable_original ... ok [INFO] [stdout] test genome::tests::mutation_add_neuron ... ok [INFO] [stdout] test genome::tests::genomes_with_same_genes_with_big_differences_on_weight_should_be_in_other_specie ... ok [INFO] [stdout] test genome::tests::two_genomes_without_differences_should_be_in_same_specie ... ok [INFO] [stdout] test genome::tests::two_genomes_with_enought_difference_should_be_in_different_species ... ok [INFO] [stdout] test genome::tests::mutation_connection_weight ... ok [INFO] [stdout] test mutation::tests::mutate_toggle_gene_should_toggle ... ok [INFO] [stdout] test organism::tests::should_allow_multiple_output ... ok [INFO] [stdout] test organism::tests::activate_organims_sensor_without_enough_neurons_should_ignore_it ... ok [INFO] [stdout] test ctrnn::tests::neural_network_activation_should_return_correct_values ... ok [INFO] [stdout] test genome::tests::genomes_with_same_genes_with_little_differences_on_weight_should_be_in_same_specie ... ok [INFO] [stdout] test genome::tests::already_existing_gene_should_be_not_duplicated ... ok [INFO] [stdout] test organism::tests::should_not_raise_exception_if_less_neurons_than_required ... ok [INFO] [stdout] test organism::tests::should_propagate_signal_over_hidden_layers ... 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 organism::tests::should_work_with_cyclic_networks ... ok [INFO] [stdout] test specie::tests::specie_should_return_correct_average_fitness ... ok [INFO] [stdout] test population::tests::population_should_be_able_to_speciate_genomes ... ok [INFO] [stdout] test genome::tests::try_to_inject_a_unconnected_neuron_gene_should_panic - should panic ... 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.21s [INFO] [stdout] [INFO] [stderr] Running tests/rustneat_tests.rs (/opt/rustwide/target/i686-unknown-linux-musl/debug/deps/rustneat_tests-e479f47458cc8523) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test test::population_can_evolve ... ok [INFO] [stdout] test test::population_can_be_tested_on_environment ... ok [INFO] [stdout] test test::should_be_able_to_generate_a_population ... ok [INFO] [stdout] test test::network_should_be_able_to_solve_xor_classification has been running for over 60 seconds [ERROR] error running command: no output for 300 seconds [INFO] running `Command { std: "docker" "inspect" "0b3ce8f3975e592b422c9765d9c1e1f3941502654f82ff7a8bcb49a132167b59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b3ce8f3975e592b422c9765d9c1e1f3941502654f82ff7a8bcb49a132167b59", kill_on_drop: false }` [INFO] [stdout] 0b3ce8f3975e592b422c9765d9c1e1f3941502654f82ff7a8bcb49a132167b59