[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 try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaill%2Ffirstnet" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daill/firstnet on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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-4-tc2/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9185c7314f8aea64fca533846137e306c886b771b1e30c23e7e107dfdeee1d1 [INFO] running `Command { std: "docker" "start" "-a" "e9185c7314f8aea64fca533846137e306c886b771b1e30c23e7e107dfdeee1d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9185c7314f8aea64fca533846137e306c886b771b1e30c23e7e107dfdeee1d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9185c7314f8aea64fca533846137e306c886b771b1e30c23e7e107dfdeee1d1", kill_on_drop: false }` [INFO] [stdout] e9185c7314f8aea64fca533846137e306c886b771b1e30c23e7e107dfdeee1d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 31225760a6665e2c79d95ead6ec14c687b719c06c956f569bef181e3d2d25a07 [INFO] running `Command { std: "docker" "start" "-a" "31225760a6665e2c79d95ead6ec14c687b719c06c956f569bef181e3d2d25a07", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [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 matrixmultiply v0.3.8 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking itertools v0.11.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Compiling syn v2.0.37 [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 num-integer v0.1.45 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/net/network.rs (20 fixes) [INFO] [stderr] Fixed src/main.rs (2 fixes) [INFO] [stderr] Fixed src/net/neuron.rs (1 fix) [INFO] [stderr] Fixed src/net/layer.rs (5 fixes) [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:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | Neuron::Input(i) => 0, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `weights` [INFO] [stdout] --> src/net/neuron.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | 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:10:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub trait Layer { [INFO] [stdout] | ----- methods in this trait [INFO] [stdout] 9 | // return the number of weights [INFO] [stdout] 10 | fn len_weights(&self) -> u32; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 11 | fn values_as_arr(&self) -> Array1; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn len(&self) -> usize; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn get(&self, index: usize) -> Option<&Neuron>; [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn get_mut(&mut self, index: usize) -> Option<&mut Neuron>; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn get_all(&self) -> &Array1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | fn get_all_mut(&mut self) -> &mut Array1; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 27 | [INFO] [stdout] 28 | 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:34:9 [INFO] [stdout] | [INFO] [stdout] 32 | pub struct InputLayer { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 33 | pub inputs: Array1, [INFO] [stdout] 34 | 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:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl InputLayer { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 84 | fn from_inputs(inputs: Array1, has_bias: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn new(layer_size: u32, bias: bool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | 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:122:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub struct OutputLayer { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 121 | pub outputs: Array1, [INFO] [stdout] 122 | 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:127:12 [INFO] [stdout] | [INFO] [stdout] 126 | impl OutputLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 127 | 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:207:9 [INFO] [stdout] | [INFO] [stdout] 205 | pub struct HiddenLayer { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 206 | pub neurons: Array1, [INFO] [stdout] 207 | pub activation_function: fn(f32) -> f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 208 | pub activation_derivation: fn(f32) -> f32, [INFO] [stdout] 209 | 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:213:12 [INFO] [stdout] | [INFO] [stdout] 212 | impl HiddenLayer { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 213 | 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:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Network { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 21 | pub fn new( [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn forward_pass(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn backward_pass(&mut self, expected: Vec) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | 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:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum Neuron { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 6 | Input(Input), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Bias(Bias), [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Hidden(Hidden), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | 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:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait NeuronBase { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 13 | fn get_input_value(&self) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 14 | fn set_input_value(&mut self, input_value: f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | [INFO] [stdout] 16 | fn get_output_value(&self) -> f32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | [INFO] [stdout] 18 | 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:206:12 [INFO] [stdout] | [INFO] [stdout] 205 | impl Input { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 206 | 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:226:12 [INFO] [stdout] | [INFO] [stdout] 225 | impl Hidden { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 226 | pub fn new(weights: Array1) -> Hidden { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 234 | 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:250:12 [INFO] [stdout] | [INFO] [stdout] 249 | impl Output { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 250 | 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:270:12 [INFO] [stdout] | [INFO] [stdout] 269 | impl Bias { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 270 | 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: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Hidden` in this scope [INFO] [stdout] --> src/net/network.rs:198:28 [INFO] [stdout] | [INFO] [stdout] 198 | Neuron::Hidden(Hidden { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Hidden` in this scope [INFO] [stdout] --> src/net/network.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | Neuron::Hidden(Hidden { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Bias` in this scope [INFO] [stdout] --> src/net/network.rs:208:26 [INFO] [stdout] | [INFO] [stdout] 208 | Neuron::Bias(Bias { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Bias; [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Neuron::Bias; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Hidden` in this scope [INFO] [stdout] --> src/net/network.rs:218:28 [INFO] [stdout] | [INFO] [stdout] 218 | Neuron::Hidden(Hidden { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Hidden` in this scope [INFO] [stdout] --> src/net/network.rs:223:28 [INFO] [stdout] | [INFO] [stdout] 223 | Neuron::Hidden(Hidden { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Neuron::Hidden; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Bias` in this scope [INFO] [stdout] --> src/net/network.rs:228:26 [INFO] [stdout] | [INFO] [stdout] 228 | Neuron::Bias(Bias { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Bias; [INFO] [stdout] | [INFO] [stdout] 181 + use crate::net::neuron::Neuron::Bias; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/net/layer.rs:298:32 [INFO] [stdout] | [INFO] [stdout] 298 | activation_functions::{self, sigmoid}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [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:40:27 [INFO] [stdout] | [INFO] [stdout] 40 | Neuron::Input(i) => 0, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `values` [INFO] [stdout] --> src/net/network.rs:268:13 [INFO] [stdout] | [INFO] [stdout] 268 | 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:290:17 [INFO] [stdout] | [INFO] [stdout] 290 | 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:299:17 [INFO] [stdout] | [INFO] [stdout] 299 | 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:307:13 [INFO] [stdout] | [INFO] [stdout] 307 | 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:299:13 [INFO] [stdout] | [INFO] [stdout] 299 | let mut error_vec: Vec = vec![]; [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: unused variable: `weights` [INFO] [stdout] --> src/net/neuron.rs:206:16 [INFO] [stdout] | [INFO] [stdout] 206 | pub fn new(weights: Array1) -> Input { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_weights` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `firstnet` (bin "firstnet" test) due to 7 previous errors; 9 warnings emitted [INFO] [stdout] error: aborting due to 6 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0422`. [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "31225760a6665e2c79d95ead6ec14c687b719c06c956f569bef181e3d2d25a07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "31225760a6665e2c79d95ead6ec14c687b719c06c956f569bef181e3d2d25a07", kill_on_drop: false }` [INFO] [stdout] 31225760a6665e2c79d95ead6ec14c687b719c06c956f569bef181e3d2d25a07