[INFO] cloning repository https://github.com/Zlakesyx/rusty_neuralnet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zlakesyx/rusty_neuralnet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZlakesyx%2Frusty_neuralnet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZlakesyx%2Frusty_neuralnet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 081666151f7f62a9545ed63b44e39371c273b00a [INFO] testing Zlakesyx/rusty_neuralnet against try#0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZlakesyx%2Frusty_neuralnet" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Zlakesyx/rusty_neuralnet [INFO] finished tweaking git repo https://github.com/Zlakesyx/rusty_neuralnet [INFO] tweaked toml for git repo https://github.com/Zlakesyx/rusty_neuralnet written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Zlakesyx/rusty_neuralnet on toolchain 0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Zlakesyx/rusty_neuralnet already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e1fffe290c97a8639a1b4299edd9e548156b37238b075d9c69a356b77f159ef [INFO] running `Command { std: "docker" "start" "-a" "5e1fffe290c97a8639a1b4299edd9e548156b37238b075d9c69a356b77f159ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e1fffe290c97a8639a1b4299edd9e548156b37238b075d9c69a356b77f159ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e1fffe290c97a8639a1b4299edd9e548156b37238b075d9c69a356b77f159ef", kill_on_drop: false }` [INFO] [stdout] 5e1fffe290c97a8639a1b4299edd9e548156b37238b075d9c69a356b77f159ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 85b6b7c9507050ae55b77022b155aded88e725909a69675eaa4e2cd82fa5c481 [INFO] running `Command { std: "docker" "start" "-a" "85b6b7c9507050ae55b77022b155aded88e725909a69675eaa4e2cd82fa5c481", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling serde v1.0.213 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde_yaml v0.8.26 [INFO] [stderr] Compiling neuralnet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `seq::SliceRandom` [INFO] [stdout] --> src/neat/genome.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{seq::SliceRandom, Rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SIGMOID` [INFO] [stdout] --> src/network.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | activation::{Activation, SIGMOID}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `fs::File` [INFO] [stdout] --> src/utils/fileutils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_node` is never read [INFO] [stdout] --> src/neat/genome.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut in_node = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `out_node` is never read [INFO] [stdout] --> src/neat/genome.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut out_node = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/utils/fileutils.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | fn read_yaml_config(filename: String) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero` and `from_vec_2d` are never used [INFO] [stdout] --> src/matrix.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Matrix { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn zero(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn from_vec_2d(data: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionGene` is never constructed [INFO] [stdout] --> src/neat/connection_gene.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ConnectionGene { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/neat/connection_gene.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ConnectionGene { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(in_node: NodeGene, out_node: NodeGene, innovation_id: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Genome` is never constructed [INFO] [stdout] --> src/neat/genome.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Genome { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/neat/genome.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Genome { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(node_size: i8, connection_size: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn add_node_gene(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn add_connection_gene(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn feed_forward(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn mutate() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 123 | [INFO] [stdout] 124 | pub fn calculate_distance() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 125 | [INFO] [stdout] 126 | pub fn fitness() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 127 | [INFO] [stdout] 128 | pub fn crossover() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeGene` is never constructed [INFO] [stdout] --> src/neat/node_gene.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeGene { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `random` are never used [INFO] [stdout] --> src/neat/node_gene.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl NodeGene { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 30 | pub fn new(innovation_id: i8, node_type: NodeType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn random(innovation_id: i8) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LATEST_NODE` is never used [INFO] [stdout] --> src/neat/innovation.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | static mut LATEST_NODE: i8 = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LATEST_CONNECTION` is never used [INFO] [stdout] --> src/neat/innovation.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | static mut LATEST_CONNECTION: i8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_node` is never used [INFO] [stdout] --> src/neat/innovation.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn current_node() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_connection` is never used [INFO] [stdout] --> src/neat/innovation.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn current_connection() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_node` is never used [INFO] [stdout] --> src/neat/innovation.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn next_node() -> i8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_connection` is never used [INFO] [stdout] --> src/neat/innovation.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn next_connection() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_yaml_config` is never used [INFO] [stdout] --> src/utils/fileutils.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn read_yaml_config(filename: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | write!(f, "\nrows: {}, cols: {}", self.rows, self.cols); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | write!(f, "\n{}\n", spacer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | write!(f, "|"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | write!(f, " {} |", self.data[row * self.cols + col]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.24s [INFO] running `Command { std: "docker" "inspect" "85b6b7c9507050ae55b77022b155aded88e725909a69675eaa4e2cd82fa5c481", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85b6b7c9507050ae55b77022b155aded88e725909a69675eaa4e2cd82fa5c481", kill_on_drop: false }` [INFO] [stdout] 85b6b7c9507050ae55b77022b155aded88e725909a69675eaa4e2cd82fa5c481 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1009188e1a9d78c6cdcd73344e31165170e1b68a3873324c9e9df8134c2195e [INFO] running `Command { std: "docker" "start" "-a" "c1009188e1a9d78c6cdcd73344e31165170e1b68a3873324c9e9df8134c2195e", kill_on_drop: false }` [INFO] [stderr] Compiling neuralnet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `seq::SliceRandom` [INFO] [stdout] --> src/neat/genome.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{seq::SliceRandom, Rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SIGMOID` [INFO] [stdout] --> src/network.rs:2:30 [INFO] [stdout] | [INFO] [stdout] 2 | activation::{Activation, SIGMOID}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `fs::File` [INFO] [stdout] --> src/utils/fileutils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_node` is never read [INFO] [stdout] --> src/neat/genome.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut in_node = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `out_node` is never read [INFO] [stdout] --> src/neat/genome.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut out_node = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/utils/fileutils.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | fn read_yaml_config(filename: String) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero` and `from_vec_2d` are never used [INFO] [stdout] --> src/matrix.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Matrix { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn zero(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn from_vec_2d(data: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConnectionGene` is never constructed [INFO] [stdout] --> src/neat/connection_gene.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ConnectionGene { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/neat/connection_gene.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl ConnectionGene { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(in_node: NodeGene, out_node: NodeGene, innovation_id: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Genome` is never constructed [INFO] [stdout] --> src/neat/genome.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Genome { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/neat/genome.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Genome { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 19 | pub fn new(node_size: i8, connection_size: i8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn add_node_gene(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn add_connection_gene(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn feed_forward(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn mutate() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 123 | [INFO] [stdout] 124 | pub fn calculate_distance() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 125 | [INFO] [stdout] 126 | pub fn fitness() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 127 | [INFO] [stdout] 128 | pub fn crossover() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NodeGene` is never constructed [INFO] [stdout] --> src/neat/node_gene.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub struct NodeGene { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `random` are never used [INFO] [stdout] --> src/neat/node_gene.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl NodeGene { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 30 | pub fn new(innovation_id: i8, node_type: NodeType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn random(innovation_id: i8) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LATEST_NODE` is never used [INFO] [stdout] --> src/neat/innovation.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | static mut LATEST_NODE: i8 = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `LATEST_CONNECTION` is never used [INFO] [stdout] --> src/neat/innovation.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | static mut LATEST_CONNECTION: i8 = 0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_node` is never used [INFO] [stdout] --> src/neat/innovation.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn current_node() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_connection` is never used [INFO] [stdout] --> src/neat/innovation.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn current_connection() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_node` is never used [INFO] [stdout] --> src/neat/innovation.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn next_node() -> i8 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_connection` is never used [INFO] [stdout] --> src/neat/innovation.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn next_connection() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_yaml_config` is never used [INFO] [stdout] --> src/utils/fileutils.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn read_yaml_config(filename: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | write!(f, "\nrows: {}, cols: {}", self.rows, self.cols); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | write!(f, "\n{}\n", spacer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | write!(f, "|"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | write!(f, " {} |", self.data[row * self.cols + col]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `seq::SliceRandom` [INFO] [stdout] --> src/neat/genome.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{seq::SliceRandom, Rng}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `collections::HashMap` and `fs::File` [INFO] [stdout] --> src/utils/fileutils.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | collections::HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/activation.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let x = 1.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `in_node` is never read [INFO] [stdout] --> src/neat/genome.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 48 | let mut in_node = None; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `out_node` is never read [INFO] [stdout] --> src/neat/genome.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | let mut out_node = None; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filename` [INFO] [stdout] --> src/utils/fileutils.rs:10:21 [INFO] [stdout] | [INFO] [stdout] 10 | fn read_yaml_config(filename: String) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `zero` and `from_vec_2d` are never used [INFO] [stdout] --> src/matrix.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Matrix { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn zero(rows: usize, cols: usize) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn from_vec_2d(data: Vec>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `weight` and `enabled` are never read [INFO] [stdout] --> src/neat/connection_gene.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct ConnectionGene { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub weight: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | pub enabled: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionGene` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `feed_forward`, `mutate`, `calculate_distance`, `fitness`, and `crossover` are never used [INFO] [stdout] --> src/neat/genome.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Genome { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn feed_forward(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn mutate() {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 123 | [INFO] [stdout] 124 | pub fn calculate_distance() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 125 | [INFO] [stdout] 126 | pub fn fitness() {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 127 | [INFO] [stdout] 128 | pub fn crossover() {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/neat/node_gene.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 29 | impl NodeGene { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 30 | pub fn new(innovation_id: i8, node_type: NodeType) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `current_connection` is never used [INFO] [stdout] --> src/neat/innovation.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn current_connection() -> i8 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_yaml_config` is never used [INFO] [stdout] --> src/utils/fileutils.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn read_yaml_config(filename: String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:176:9 [INFO] [stdout] | [INFO] [stdout] 176 | write!(f, "\nrows: {}, cols: {}", self.rows, self.cols); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:177:9 [INFO] [stdout] | [INFO] [stdout] 177 | write!(f, "\n{}\n", spacer); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | write!(f, "|"); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | write!(f, " {} |", self.data[row * self.cols + col]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/matrix.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | write!(f, "\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.93s [INFO] running `Command { std: "docker" "inspect" "c1009188e1a9d78c6cdcd73344e31165170e1b68a3873324c9e9df8134c2195e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1009188e1a9d78c6cdcd73344e31165170e1b68a3873324c9e9df8134c2195e", kill_on_drop: false }` [INFO] [stdout] c1009188e1a9d78c6cdcd73344e31165170e1b68a3873324c9e9df8134c2195e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+0936b3db0ae648ba2d5b60eb08cf4faf2ddab0c6" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6cfd92df9386a1eb65475490cfcbefb6b113939816a2bd76623e2020b12b3e85 [INFO] running `Command { std: "docker" "start" "-a" "6cfd92df9386a1eb65475490cfcbefb6b113939816a2bd76623e2020b12b3e85", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `seq::SliceRandom` [INFO] [stderr] --> src/neat/genome.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | use rand::{seq::SliceRandom, Rng}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `SIGMOID` [INFO] [stderr] --> src/network.rs:2:30 [INFO] [stderr] | [INFO] [stderr] 2 | activation::{Activation, SIGMOID}, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `collections::HashMap` and `fs::File` [INFO] [stderr] --> src/utils/fileutils.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | collections::HashMap, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 6 | fs::File, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `in_node` is never read [INFO] [stderr] --> src/neat/genome.rs:48:17 [INFO] [stderr] | [INFO] [stderr] 48 | let mut in_node = None; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `out_node` is never read [INFO] [stderr] --> src/neat/genome.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | let mut out_node = None; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filename` [INFO] [stderr] --> src/utils/fileutils.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | fn read_yaml_config(filename: String) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `zero` and `from_vec_2d` are never used [INFO] [stderr] --> src/matrix.rs:26:12 [INFO] [stderr] | [INFO] [stderr] 10 | impl Matrix { [INFO] [stderr] | ----------- associated functions in this implementation [INFO] [stderr] ... [INFO] [stderr] 26 | pub fn zero(rows: usize, cols: usize) -> Self { [INFO] [stderr] | ^^^^ [INFO] [stderr] ... [INFO] [stderr] 53 | pub fn from_vec_2d(data: Vec>) -> Self { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: struct `ConnectionGene` is never constructed [INFO] [stderr] --> src/neat/connection_gene.rs:5:12 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct ConnectionGene { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/neat/connection_gene.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 13 | impl ConnectionGene { [INFO] [stderr] | ------------------- associated function in this implementation [INFO] [stderr] 14 | pub fn new(in_node: NodeGene, out_node: NodeGene, innovation_id: i8) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Genome` is never constructed [INFO] [stderr] --> src/neat/genome.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct Genome { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/neat/genome.rs:19:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Genome { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] 19 | pub fn new(node_size: i8, connection_size: i8) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 38 | pub fn add_node_gene(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 45 | pub fn add_connection_gene(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn feed_forward(&self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 122 | pub fn mutate() {} [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 123 | [INFO] [stderr] 124 | pub fn calculate_distance() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 125 | [INFO] [stderr] 126 | pub fn fitness() {} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 127 | [INFO] [stderr] 128 | pub fn crossover() {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `NodeGene` is never constructed [INFO] [stderr] --> src/neat/node_gene.rs:23:12 [INFO] [stderr] | [INFO] [stderr] 23 | pub struct NodeGene { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated functions `new` and `random` are never used [INFO] [stderr] --> src/neat/node_gene.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl NodeGene { [INFO] [stderr] | ------------- associated functions in this implementation [INFO] [stderr] 30 | pub fn new(innovation_id: i8, node_type: NodeType) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 39 | pub fn random(innovation_id: i8) -> Self { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `LATEST_NODE` is never used [INFO] [stderr] --> src/neat/innovation.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | static mut LATEST_NODE: i8 = 0; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static `LATEST_CONNECTION` is never used [INFO] [stderr] --> src/neat/innovation.rs:2:12 [INFO] [stderr] | [INFO] [stderr] 2 | static mut LATEST_CONNECTION: i8 = 0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `current_node` is never used [INFO] [stderr] --> src/neat/innovation.rs:4:8 [INFO] [stderr] | [INFO] [stderr] 4 | pub fn current_node() -> i8 { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `current_connection` is never used [INFO] [stderr] --> src/neat/innovation.rs:10:8 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn current_connection() -> i8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `next_node` is never used [INFO] [stderr] --> src/neat/innovation.rs:16:8 [INFO] [stderr] | [INFO] [stderr] 16 | pub fn next_node() -> i8 { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `next_connection` is never used [INFO] [stderr] --> src/neat/innovation.rs:23:8 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn next_connection() -> i8 { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `read_yaml_config` is never used [INFO] [stderr] --> src/utils/fileutils.rs:10:4 [INFO] [stderr] | [INFO] [stderr] 10 | fn read_yaml_config(filename: String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/matrix.rs:176:9 [INFO] [stderr] | [INFO] [stderr] 176 | write!(f, "\nrows: {}, cols: {}", self.rows, self.cols); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/matrix.rs:177:9 [INFO] [stderr] | [INFO] [stderr] 177 | write!(f, "\n{}\n", spacer); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/matrix.rs:179:13 [INFO] [stderr] | [INFO] [stderr] 179 | write!(f, "|"); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/matrix.rs:181:17 [INFO] [stderr] | [INFO] [stderr] 181 | write!(f, " {} |", self.data[row * self.cols + col]); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/matrix.rs:183:13 [INFO] [stderr] | [INFO] [stderr] 183 | write!(f, "\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `neuralnet` (lib) generated 25 warnings (run `cargo fix --lib -p neuralnet` to apply 3 suggestions) [INFO] [stderr] warning: unused variable: `x` [INFO] [stderr] --> src/activation.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 16 | let x = 1.0; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `filename` [INFO] [stderr] --> src/utils/fileutils.rs:10:21 [INFO] [stderr] | [INFO] [stderr] 10 | fn read_yaml_config(filename: String) { [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename` [INFO] [stderr] [INFO] [stderr] warning: fields `weight` and `enabled` are never read [INFO] [stderr] --> src/neat/connection_gene.rs:8:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct ConnectionGene { [INFO] [stderr] | -------------- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 8 | pub weight: f32, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 9 | pub enabled: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ConnectionGene` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: associated items `feed_forward`, `mutate`, `calculate_distance`, `fitness`, and `crossover` are never used [INFO] [stderr] --> src/neat/genome.rs:107:12 [INFO] [stderr] | [INFO] [stderr] 18 | impl Genome { [INFO] [stderr] | ----------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 107 | pub fn feed_forward(&self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 122 | pub fn mutate() {} [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 123 | [INFO] [stderr] 124 | pub fn calculate_distance() {} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] 125 | [INFO] [stderr] 126 | pub fn fitness() {} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 127 | [INFO] [stderr] 128 | pub fn crossover() {} [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/neat/node_gene.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 29 | impl NodeGene { [INFO] [stderr] | ------------- associated function in this implementation [INFO] [stderr] 30 | pub fn new(innovation_id: i8, node_type: NodeType) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: `neuralnet` (lib test) generated 17 warnings (12 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/neuralnet-967336e02523d19c) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test activation::test ... ok [INFO] [stdout] test matrix::dot_multiply ... ok [INFO] [stdout] test matrix::feed_forward ... ok [INFO] [stdout] test matrix::transpose ... ok [INFO] [stdout] test training_data::shuffle ... ok [INFO] [stdout] test neat::genome::create_genome ... ok [INFO] [stdout] test matrix::add - should panic ... ok [INFO] [stdout] test matrix::subtract - should panic ... ok [INFO] [stdout] test network::xor ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.69s [INFO] [stdout] [INFO] [stderr] Doc-tests neuralnet [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" "6cfd92df9386a1eb65475490cfcbefb6b113939816a2bd76623e2020b12b3e85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cfd92df9386a1eb65475490cfcbefb6b113939816a2bd76623e2020b12b3e85", kill_on_drop: false }` [INFO] [stdout] 6cfd92df9386a1eb65475490cfcbefb6b113939816a2bd76623e2020b12b3e85