[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] building Zlakesyx/rusty_neuralnet against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZlakesyx%2Frusty_neuralnet" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Zlakesyx/rusty_neuralnet on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-5-tc2/source/Cargo.toml [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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8ccebdf605e19312927091366b1175e39a90a38bc38bf0a08339280a6708dd3d [INFO] running `Command { std: "docker" "start" "-a" "8ccebdf605e19312927091366b1175e39a90a38bc38bf0a08339280a6708dd3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ccebdf605e19312927091366b1175e39a90a38bc38bf0a08339280a6708dd3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ccebdf605e19312927091366b1175e39a90a38bc38bf0a08339280a6708dd3d", kill_on_drop: false }` [INFO] [stdout] 8ccebdf605e19312927091366b1175e39a90a38bc38bf0a08339280a6708dd3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12f726f6a69b1928ade208dfa3390e6d7792e3223e903792bbcd565db5cc23eb [INFO] running `Command { std: "docker" "start" "-a" "12f726f6a69b1928ade208dfa3390e6d7792e3223e903792bbcd565db5cc23eb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.213 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling indexmap v1.9.3 [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] = note: `ConnectionGene` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] = note: `Genome` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] = note: `NodeGene` 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 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.15s [INFO] running `Command { std: "docker" "inspect" "12f726f6a69b1928ade208dfa3390e6d7792e3223e903792bbcd565db5cc23eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12f726f6a69b1928ade208dfa3390e6d7792e3223e903792bbcd565db5cc23eb", kill_on_drop: false }` [INFO] [stdout] 12f726f6a69b1928ade208dfa3390e6d7792e3223e903792bbcd565db5cc23eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f992a416d9e85d85905eb4954a77a313c27b8325c2d8076cca226d1054139f44 [INFO] running `Command { std: "docker" "start" "-a" "f992a416d9e85d85905eb4954a77a313c27b8325c2d8076cca226d1054139f44", kill_on_drop: false }` [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] = note: `ConnectionGene` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] = note: `Genome` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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] = note: `NodeGene` 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 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] [stderr] Compiling neuralnet v0.1.0 (/opt/rustwide/workdir) [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 `Clone` and `Debug`, 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.98s [INFO] running `Command { std: "docker" "inspect" "f992a416d9e85d85905eb4954a77a313c27b8325c2d8076cca226d1054139f44", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f992a416d9e85d85905eb4954a77a313c27b8325c2d8076cca226d1054139f44", kill_on_drop: false }` [INFO] [stdout] f992a416d9e85d85905eb4954a77a313c27b8325c2d8076cca226d1054139f44