[INFO] cloning repository https://github.com/daill/firstnet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/daill/firstnet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaill%2Ffirstnet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaill%2Ffirstnet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3449fcbbf901c9859d7d21b2aef4a43c538c505b [INFO] checking daill/firstnet/3449fcbbf901c9859d7d21b2aef4a43c538c505b against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaill%2Ffirstnet" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daill/firstnet on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/daill/firstnet [INFO] finished tweaking git repo https://github.com/daill/firstnet [INFO] tweaked toml for git repo https://github.com/daill/firstnet written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/daill/firstnet 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8e49d0dc83a9ac38f7af3e6f9a6bffe8f2120b9948e693e7e42556718aae612 [INFO] running `Command { std: "docker" "start" "-a" "d8e49d0dc83a9ac38f7af3e6f9a6bffe8f2120b9948e693e7e42556718aae612", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8e49d0dc83a9ac38f7af3e6f9a6bffe8f2120b9948e693e7e42556718aae612", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8e49d0dc83a9ac38f7af3e6f9a6bffe8f2120b9948e693e7e42556718aae612", kill_on_drop: false }` [INFO] [stdout] d8e49d0dc83a9ac38f7af3e6f9a6bffe8f2120b9948e693e7e42556718aae612 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 943a7c938aa3b0ecdd58a62f62617da8f8a7a6bfa0cbcd60c7c1a3b76eaf2fa8 [INFO] running `Command { std: "docker" "start" "-a" "943a7c938aa3b0ecdd58a62f62617da8f8a7a6bfa0cbcd60c7c1a3b76eaf2fa8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking ndarray v0.15.6 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking firstnet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HiddenLayer`, `InputLayer`, `OutputLayer`, `network::Network`, `self`, `sigmoid`, and `weight_functions::xavier_init` [INFO] [stdout] --> src/main.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | activation_functions::{self, sigmoid}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 5 | layer::{HiddenLayer, InputLayer, OutputLayer}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 6 | network::Network, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | weight_functions::xavier_init, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/net/layer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::instrument::WithSubscriber` [INFO] [stdout] --> src/net/layer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::instrument::WithSubscriber; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `TypeId` [INFO] [stdout] --> src/net/network.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/net/network.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array0` and `ArrayBase` [INFO] [stdout] --> src/net/network.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{Array0, Array1, ArrayBase}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Bias`, `Hidden`, `activation_functions`, and `weight_functions::xavier_init` [INFO] [stdout] --> src/net/network.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | activation_functions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 12 | layer::{HiddenLayer, InputLayer, OutputLayer}, [INFO] [stdout] 13 | neuron::{Bias, Hidden, Neuron}, [INFO] [stdout] | ^^^^ ^^^^^^ [INFO] [stdout] 14 | weight_functions::xavier_init, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/net/network.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | for n in (0..hidden_layers.len()-1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - for n in (0..hidden_layers.len()-1) { [INFO] [stdout] 55 + for n in 0..hidden_layers.len()-1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::WeightedError` [INFO] [stdout] --> src/net/neuron.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::distributions::WeightedError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ndarray::array` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ndarray::array; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HiddenLayer`, `InputLayer`, `OutputLayer`, `network::Network`, `self`, `sigmoid`, and `weight_functions::xavier_init` [INFO] [stdout] --> src/main.rs:4:28 [INFO] [stdout] | [INFO] [stdout] 4 | activation_functions::{self, sigmoid}, [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] 5 | layer::{HiddenLayer, InputLayer, OutputLayer}, [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] 6 | network::Network, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | weight_functions::xavier_init, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/net/layer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tracing::instrument::WithSubscriber` [INFO] [stdout] --> src/net/layer.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use tracing::instrument::WithSubscriber; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/net/layer.rs:300:32 [INFO] [stdout] | [INFO] [stdout] 300 | activation_functions::{self, sigmoid}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Any` and `TypeId` [INFO] [stdout] --> src/net/network.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::{Any, TypeId}; [INFO] [stdout] | ^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/net/network.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Array0` and `ArrayBase` [INFO] [stdout] --> src/net/network.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | use ndarray::{Array0, Array1, ArrayBase}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `activation_functions` and `weight_functions::xavier_init` [INFO] [stdout] --> src/net/network.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | activation_functions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | weight_functions::xavier_init, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/net/network.rs:55:22 [INFO] [stdout] | [INFO] [stdout] 55 | for n in (0..hidden_layers.len()-1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - for n in (0..hidden_layers.len()-1) { [INFO] [stdout] 55 + for n in 0..hidden_layers.len()-1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::distributions::WeightedError` [INFO] [stdout] --> src/net/neuron.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::distributions::WeightedError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/net/activation_functions.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn nop_derivative(x: f32) -> f32 { [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: unused variable: `i` [INFO] [stdout] --> src/net/layer.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Neuron::Input(i) => 0, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/layer.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new(mut layer_size: u32, bias: bool) -> Self { [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: variable does not need to be mutable [INFO] [stdout] --> src/net/layer.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut input = self.inputs.get_mut(i).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/layer.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut outputs: Vec = vec![ [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut neuron = first_layer.neurons.get_mut(n).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | let mut neuron = next_layer.neurons.get_mut(i).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut output_layer = &mut self.output_layer; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut global_error = 0.0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut output_layer: &mut OutputLayer = &mut self.output_layer; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut hidden_layer_values= self.hidden_layer.last().unwrap().values_as_arr(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut outputs = output_layer.get_all_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | let mut weights = neuron.get_mut_weights(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut hidden_layer = &mut self.hidden_layer[n]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | let mut ll_neuron: &mut Neuron = hidden_layer.get_mut(ln).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let mut ll_output = ll_neuron.get_output_value(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | let mut ll_weights = ll_neuron.get_mut_weights(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut input_layer = &mut self.input_layer; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut current_layer = self.hidden_layer.first_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | let mut neuron = current_layer.neurons.get_mut(n).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weights` [INFO] [stdout] --> src/net/neuron.rs:207:16 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn new(weights: Array1) -> Input { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid` is never used [INFO] [stdout] --> src/net/activation_functions.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn sigmoid(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid_derivative` is never used [INFO] [stdout] --> src/net/activation_functions.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn sigmoid_derivative(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tanh` is never used [INFO] [stdout] --> src/net/activation_functions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn tanh(x: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tanh_derivative` is never used [INFO] [stdout] --> src/net/activation_functions.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn tanh_derivative(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu` is never used [INFO] [stdout] --> src/net/activation_functions.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn relu(x: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu_derivative` is never used [INFO] [stdout] --> src/net/activation_functions.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn relu_derivative(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swish` is never used [INFO] [stdout] --> src/net/activation_functions.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn swish(x: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nop` is never used [INFO] [stdout] --> src/net/activation_functions.rs:49:8 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn nop(x: f32) -> f32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nop_derivative` is never used [INFO] [stdout] --> src/net/activation_functions.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn nop_derivative(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/net/layer.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Layer { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 11 | // return the number of weights [INFO] [stdout] 12 | fn len_weights(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 13 | fn values_as_arr(&self) -> Array1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 16 | fn len(&self) -> usize; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn get(&self, index: usize) -> Option<&Neuron>; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | fn get_mut(&mut self, index: usize) -> Option<&mut Neuron>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | fn get_all(&self) -> &Array1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_all_mut(&mut self) -> &mut Array1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 29 | [INFO] [stdout] 30 | fn get_activation_derivation(&self) -> fn(f32) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `has_bias` is never read [INFO] [stdout] --> src/net/layer.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct InputLayer { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 35 | pub inputs: Array1, [INFO] [stdout] 36 | pub has_bias: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputLayer` 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 `from_inputs`, `new`, and `set_inputs` are never used [INFO] [stdout] --> src/net/layer.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl InputLayer { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 86 | fn from_inputs(inputs: Array1, has_bias: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 90 | pub fn new(mut layer_size: u32, bias: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn set_inputs(&mut self, input_values: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `activation_function` is never read [INFO] [stdout] --> src/net/layer.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 122 | pub struct OutputLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 123 | pub outputs: Array1, [INFO] [stdout] 124 | pub activation_function: fn(f32) -> f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OutputLayer` 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/net/layer.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 128 | impl OutputLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 129 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `activation_function` and `bias` are never read [INFO] [stdout] --> src/net/layer.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct HiddenLayer { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 208 | pub neurons: Array1, [INFO] [stdout] 209 | pub activation_function: fn(f32) -> f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 210 | pub activation_derivation: fn(f32) -> f32, [INFO] [stdout] 211 | pub bias: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HiddenLayer` 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/net/layer.rs:215:12 [INFO] [stdout] | [INFO] [stdout] 214 | impl HiddenLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 215 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `forward_pass`, `backward_pass`, and `calc_total_error` are never used [INFO] [stdout] --> src/net/network.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 25 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn forward_pass(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn backward_pass(&mut self, expected: Vec) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 163 | pub fn calc_total_error(&mut self, expected: Array1) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Input`, `Bias`, `Hidden`, and `Output` are never constructed [INFO] [stdout] --> src/net/neuron.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Neuron { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 7 | Input(Input), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Bias(Bias), [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | Hidden(Hidden), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Output(Output), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Neuron` 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: methods `get_input_value`, `set_input_value`, `get_output_value`, and `set_output_value` are never used [INFO] [stdout] --> src/net/neuron.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait NeuronBase { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 14 | fn get_input_value(&self) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | fn set_input_value(&mut self, input_value: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | [INFO] [stdout] 17 | fn get_output_value(&self) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 18 | [INFO] [stdout] 19 | fn set_output_value(&mut self, output_value: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/neuron.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 206 | impl Input { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 207 | pub fn new(weights: Array1) -> Input { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `init` are never used [INFO] [stdout] --> src/net/neuron.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 226 | impl Hidden { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 227 | pub fn new(weights: Array1) -> Hidden { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn init(&mut self, f: fn(u32) -> Array1) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/neuron.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 250 | impl Output { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 251 | pub fn new(weights: Array1) -> Output { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/neuron.rs:271:12 [INFO] [stdout] | [INFO] [stdout] 270 | impl Bias { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 271 | pub fn new() -> Bias { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `xavier_init` is never used [INFO] [stdout] --> src/net/weight_functions.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn xavier_init(size: u32) -> Array1 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/net/activation_functions.rs:53:23 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn nop_derivative(x: f32) -> f32 { [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: unused variable: `i` [INFO] [stdout] --> src/net/layer.rs:42:27 [INFO] [stdout] | [INFO] [stdout] 42 | Neuron::Input(i) => 0, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/layer.rs:90:16 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn new(mut layer_size: u32, bias: bool) -> Self { [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: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/layer.rs:109:17 [INFO] [stdout] | [INFO] [stdout] 109 | let mut input = self.inputs.get_mut(i).unwrap(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/layer.rs:137:13 [INFO] [stdout] | [INFO] [stdout] 137 | let mut outputs: Vec = vec![ [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:46:17 [INFO] [stdout] | [INFO] [stdout] 46 | let mut neuron = first_layer.neurons.get_mut(n).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:60:25 [INFO] [stdout] | [INFO] [stdout] 60 | let mut neuron = next_layer.neurons.get_mut(i).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | let mut output_layer = &mut self.output_layer; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let mut global_error = 0.0; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | let mut output_layer: &mut OutputLayer = &mut self.output_layer; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut hidden_layer_values= self.hidden_layer.last().unwrap().values_as_arr(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:94:13 [INFO] [stdout] | [INFO] [stdout] 94 | let mut outputs = output_layer.get_all_mut(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 103 | let mut weights = neuron.get_mut_weights(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:117:21 [INFO] [stdout] | [INFO] [stdout] 117 | let mut hidden_layer = &mut self.hidden_layer[n]; [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 123 | let mut ll_neuron: &mut Neuron = hidden_layer.get_mut(ln).unwrap(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let mut ll_output = ll_neuron.get_output_value(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:125:25 [INFO] [stdout] | [INFO] [stdout] 125 | let mut ll_weights = ll_neuron.get_mut_weights(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let mut input_layer = &mut self.input_layer; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut current_layer = self.hidden_layer.first_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:146:17 [INFO] [stdout] | [INFO] [stdout] 146 | let mut neuron = current_layer.neurons.get_mut(n).unwrap(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let mut input_layer = InputLayer::new(2, false); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> src/net/network.rs:272:13 [INFO] [stdout] | [INFO] [stdout] 272 | let values = array![0.191]; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_values` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `error` is assigned to, but never used [INFO] [stdout] --> src/net/network.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | let mut error = 1.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_error` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `error_vec` [INFO] [stdout] --> src/net/network.rs:303:17 [INFO] [stdout] | [INFO] [stdout] 303 | let mut error_vec: Vec = vec![]; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_error_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `error` is never read [INFO] [stdout] --> src/net/network.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | error = net.backward_pass(vec![data[[index, 0]]]); [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: variable does not need to be mutable [INFO] [stdout] --> src/net/network.rs:303:13 [INFO] [stdout] | [INFO] [stdout] 303 | let mut error_vec: Vec = vec![]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weights` [INFO] [stdout] --> src/net/neuron.rs:207:16 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn new(weights: Array1) -> Input { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weights` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tanh` is never used [INFO] [stdout] --> src/net/activation_functions.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn tanh(x: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tanh_derivative` is never used [INFO] [stdout] --> src/net/activation_functions.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn tanh_derivative(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu` is never used [INFO] [stdout] --> src/net/activation_functions.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn relu(x: f32) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `relu_derivative` is never used [INFO] [stdout] --> src/net/activation_functions.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn relu_derivative(x: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `swish` is never used [INFO] [stdout] --> src/net/activation_functions.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn swish(x: f32) -> f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_activation_derivation` is never used [INFO] [stdout] --> src/net/layer.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait Layer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] ... [INFO] [stdout] 30 | fn get_activation_derivation(&self) -> fn(f32) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_inputs` is never used [INFO] [stdout] --> src/net/layer.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 85 | impl InputLayer { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 86 | fn from_inputs(inputs: Array1, has_bias: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bias` is never read [INFO] [stdout] --> src/net/layer.rs:211:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub struct HiddenLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 211 | pub bias: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HiddenLayer` 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: methods `get_input_value` and `set_output_value` are never used [INFO] [stdout] --> src/net/neuron.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub trait NeuronBase { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 14 | fn get_input_value(&self) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn set_output_value(&mut self, output_value: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/neuron.rs:207:12 [INFO] [stdout] | [INFO] [stdout] 206 | impl Input { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 207 | pub fn new(weights: Array1) -> Input { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `init` are never used [INFO] [stdout] --> src/net/neuron.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 226 | impl Hidden { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 227 | pub fn new(weights: Array1) -> Hidden { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn init(&mut self, f: fn(u32) -> Array1) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/net/neuron.rs:251:12 [INFO] [stdout] | [INFO] [stdout] 250 | impl Output { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 251 | pub fn new(weights: Array1) -> Output { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 50 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.47s [INFO] running `Command { std: "docker" "inspect" "943a7c938aa3b0ecdd58a62f62617da8f8a7a6bfa0cbcd60c7c1a3b76eaf2fa8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "943a7c938aa3b0ecdd58a62f62617da8f8a7a6bfa0cbcd60c7c1a3b76eaf2fa8", kill_on_drop: false }` [INFO] [stdout] 943a7c938aa3b0ecdd58a62f62617da8f8a7a6bfa0cbcd60c7c1a3b76eaf2fa8