[INFO] cloning repository https://github.com/jdumont0201/rust-neural-network [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jdumont0201/rust-neural-network" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdumont0201%2Frust-neural-network", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdumont0201%2Frust-neural-network'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3c23fa61b5dfc4a54a307054cfca542d09db9eb4 [INFO] building jdumont0201/rust-neural-network against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjdumont0201%2Frust-neural-network" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jdumont0201/rust-neural-network on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jdumont0201/rust-neural-network [INFO] finished tweaking git repo https://github.com/jdumont0201/rust-neural-network [INFO] tweaked toml for git repo https://github.com/jdumont0201/rust-neural-network written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jdumont0201/rust-neural-network 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3100560f8fd759fbc04130905e2d1c8fe39ae0c62432fe4c2ec8e5ac12bc2f83 [INFO] running `Command { std: "docker" "start" "-a" "3100560f8fd759fbc04130905e2d1c8fe39ae0c62432fe4c2ec8e5ac12bc2f83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3100560f8fd759fbc04130905e2d1c8fe39ae0c62432fe4c2ec8e5ac12bc2f83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3100560f8fd759fbc04130905e2d1c8fe39ae0c62432fe4c2ec8e5ac12bc2f83", kill_on_drop: false }` [INFO] [stdout] 3100560f8fd759fbc04130905e2d1c8fe39ae0c62432fe4c2ec8e5ac12bc2f83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 525445e82ca1540b07ef3c206c5c6a5573e587a203b0ae01cdd0f3762faf7989 [INFO] running `Command { std: "docker" "start" "-a" "525445e82ca1540b07ef3c206c5c6a5573e587a203b0ae01cdd0f3762faf7989", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.40 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling neuralnetwork v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/neuron/mod.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | for (idx, n) in T.layers[self.layer_id + 1].neurons.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/topology/mod.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let mut LL = self.layers.get_mut(layer_id).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/utils/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | _=>{val } [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/utils/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | &TransferFunctionTypes::LINEAR => { transfer_function_linear(val) } [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 11 | &TransferFunctionTypes::BINARY => { transfer_function_binary(val) } [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 12 | &TransferFunctionTypes::EXPONENTIAL => { transfer_function_exp(val) } [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] 13 | &TransferFunctionTypes::TANH => { transfer_function_tanh(val) } [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 14 | _=>{val } [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `layer` is never read [INFO] [stdout] --> src/connection/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 3 | pub layer: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_bias` and `gradient` are never read [INFO] [stdout] --> src/neuron/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Neuron { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub is_bias: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub gradient: f64 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute_output` and `sum_of_DOW` are never used [INFO] [stdout] --> src/neuron/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Neuron { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 20 | pub fn compute_output(&mut self, L: &Layer) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn sum_of_DOW(&self, T: &Topology) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initial` is never read [INFO] [stdout] --> src/layer/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Layer { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub is_initial: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_outputs` is never used [INFO] [stdout] --> src/layer/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Layer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn compute_outputs(&mut self,prev:&Layer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error` is never read [INFO] [stdout] --> src/topology/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Topology { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub error: f64 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `get_mut` are never used [INFO] [stdout] --> src/topology/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Topology { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get(&self, layer_nb: usize, neuron_nb: usize) -> Option<&Neuron> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_mut(&mut self, layer_nb: usize, neuron_nb: usize) -> Option<&Neuron> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_errors` is never used [INFO] [stdout] --> src/topology/mod.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Topology { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn compute_errors(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BINARY`, `EXPONENTIAL`, and `TANH` are never constructed [INFO] [stdout] --> src/utils/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TransferFunctionTypes { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 3 | LINEAR, [INFO] [stdout] 4 | BINARY, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | EXPONENTIAL, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | TANH [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut T: Topology = Topology { layers: Vec::new(),targets:Vec::new(),error:1. }; [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/neuron/mod.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn compute_output(&mut self, L: &Layer) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum_of_DOW` should have a snake case name [INFO] [stdout] --> src/neuron/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn sum_of_DOW(&self, T: &Topology) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sum_of_dow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/neuron/mod.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn sum_of_DOW(&self, T: &Topology) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn create_neurons(&mut self, T: Vec) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let L = &mut self.layers; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let mut I = Vec::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | let mut I = Vec::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let L = &self.layers; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | let L = self.layers.get(layer_id).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LL` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:152:25 [INFO] [stdout] | [INFO] [stdout] 152 | let mut LL = self.layers.get_mut(layer_id).unwrap(); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let N = self.layers.last().unwrap().neurons.len() as f64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.13s [INFO] running `Command { std: "docker" "inspect" "525445e82ca1540b07ef3c206c5c6a5573e587a203b0ae01cdd0f3762faf7989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "525445e82ca1540b07ef3c206c5c6a5573e587a203b0ae01cdd0f3762faf7989", kill_on_drop: false }` [INFO] [stdout] 525445e82ca1540b07ef3c206c5c6a5573e587a203b0ae01cdd0f3762faf7989 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42c6c4fc339b9f1989de87c6f152450bee534952ba4f6222b2982b549d4f4d14 [INFO] running `Command { std: "docker" "start" "-a" "42c6c4fc339b9f1989de87c6f152450bee534952ba4f6222b2982b549d4f4d14", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling neuralnetwork v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/neuron/mod.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | for (idx, n) in T.layers[self.layer_id + 1].neurons.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/topology/mod.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let mut LL = self.layers.get_mut(layer_id).unwrap(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/utils/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | _=>{val } [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/utils/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 10 | &TransferFunctionTypes::LINEAR => { transfer_function_linear(val) } [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 11 | &TransferFunctionTypes::BINARY => { transfer_function_binary(val) } [INFO] [stdout] | ------------------------------ matches some of the same values [INFO] [stdout] 12 | &TransferFunctionTypes::EXPONENTIAL => { transfer_function_exp(val) } [INFO] [stdout] | ----------------------------------- matches some of the same values [INFO] [stdout] 13 | &TransferFunctionTypes::TANH => { transfer_function_tanh(val) } [INFO] [stdout] | ---------------------------- matches some of the same values [INFO] [stdout] 14 | _=>{val } [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `layer` is never read [INFO] [stdout] --> src/connection/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Connection { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 3 | pub layer: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `is_bias` and `gradient` are never read [INFO] [stdout] --> src/neuron/mod.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Neuron { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub is_bias: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | pub gradient: f64 [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `compute_output` and `sum_of_DOW` are never used [INFO] [stdout] --> src/neuron/mod.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Neuron { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 20 | pub fn compute_output(&mut self, L: &Layer) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn sum_of_DOW(&self, T: &Topology) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `is_initial` is never read [INFO] [stdout] --> src/layer/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Layer { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 8 | pub is_initial: bool, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_outputs` is never used [INFO] [stdout] --> src/layer/mod.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Layer { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn compute_outputs(&mut self,prev:&Layer) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `error` is never read [INFO] [stdout] --> src/topology/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Topology { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 10 | pub error: f64 [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `get_mut` are never used [INFO] [stdout] --> src/topology/mod.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Topology { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn get(&self, layer_nb: usize, neuron_nb: usize) -> Option<&Neuron> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_mut(&mut self, layer_nb: usize, neuron_nb: usize) -> Option<&Neuron> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `compute_errors` is never used [INFO] [stdout] --> src/topology/mod.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 50 | impl Topology { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 164 | pub fn compute_errors(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `BINARY`, `EXPONENTIAL`, and `TANH` are never constructed [INFO] [stdout] --> src/utils/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TransferFunctionTypes { [INFO] [stdout] | --------------------- variants in this enum [INFO] [stdout] 3 | LINEAR, [INFO] [stdout] 4 | BINARY, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 5 | EXPONENTIAL, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | TANH [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/main.rs:24:13 [INFO] [stdout] | [INFO] [stdout] 24 | let mut T: Topology = Topology { layers: Vec::new(),targets:Vec::new(),error:1. }; [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/neuron/mod.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn compute_output(&mut self, L: &Layer) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `sum_of_DOW` should have a snake case name [INFO] [stdout] --> src/neuron/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn sum_of_DOW(&self, T: &Topology) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `sum_of_dow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/neuron/mod.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn sum_of_DOW(&self, T: &Topology) -> f64 { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `T` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:54:38 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn create_neurons(&mut self, T: Vec) { [INFO] [stdout] | ^ help: convert the identifier to snake case: `t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:73:13 [INFO] [stdout] | [INFO] [stdout] 73 | let L = &mut self.layers; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:82:29 [INFO] [stdout] | [INFO] [stdout] 82 | let mut I = Vec::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `I` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:92:29 [INFO] [stdout] | [INFO] [stdout] 92 | let mut I = Vec::new(); [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:105:13 [INFO] [stdout] | [INFO] [stdout] 105 | let L = &self.layers; [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `L` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:123:21 [INFO] [stdout] | [INFO] [stdout] 123 | let L = self.layers.get(layer_id).unwrap(); [INFO] [stdout] | ^ help: convert the identifier to snake case: `l` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `LL` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:152:25 [INFO] [stdout] | [INFO] [stdout] 152 | let mut LL = self.layers.get_mut(layer_id).unwrap(); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `ll` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/topology/mod.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let N = self.layers.last().unwrap().neurons.len() as f64; [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "42c6c4fc339b9f1989de87c6f152450bee534952ba4f6222b2982b549d4f4d14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42c6c4fc339b9f1989de87c6f152450bee534952ba4f6222b2982b549d4f4d14", kill_on_drop: false }` [INFO] [stdout] 42c6c4fc339b9f1989de87c6f152450bee534952ba4f6222b2982b549d4f4d14