[INFO] cloning repository https://github.com/woowe/rust_ann [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/woowe/rust_ann" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwoowe%2Frust_ann", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwoowe%2Frust_ann'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37ab0eecd42f3fffbdb8389ccd090d13541be58e [INFO] building woowe/rust_ann 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%2Fwoowe%2Frust_ann" "/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/woowe/rust_ann 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/woowe/rust_ann [INFO] finished tweaking git repo https://github.com/woowe/rust_ann [INFO] tweaked toml for git repo https://github.com/woowe/rust_ann written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/woowe/rust_ann 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] [stderr] Updating git repository `https://github.com/woowe/num_rust.git` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded matrixmultiply v0.1.11 [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f2da279c9f93cb190df803d790453e76493889921060d9352b026c9ec34169b [INFO] running `Command { std: "docker" "start" "-a" "1f2da279c9f93cb190df803d790453e76493889921060d9352b026c9ec34169b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f2da279c9f93cb190df803d790453e76493889921060d9352b026c9ec34169b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f2da279c9f93cb190df803d790453e76493889921060d9352b026c9ec34169b", kill_on_drop: false }` [INFO] [stdout] 1f2da279c9f93cb190df803d790453e76493889921060d9352b026c9ec34169b [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 -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] 1995009e555425fe5b4f4e76e2c52fe53938bf7d6f215afb74c9efa993eae938 [INFO] running `Command { std: "docker" "start" "-a" "1995009e555425fe5b4f4e76e2c52fe53938bf7d6f215afb74c9efa993eae938", 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.17 [INFO] [stderr] Compiling matrixmultiply v0.1.11 [INFO] [stderr] Compiling rand v0.3.14 [INFO] [stderr] Compiling num_cpus v1.1.0 [INFO] [stderr] Compiling deque v0.3.1 [INFO] [stderr] Compiling rayon v0.4.3 [INFO] [stderr] Compiling num_rust v0.1.0 (https://github.com/woowe/num_rust.git#ad88ba18) [INFO] [stderr] Compiling rust_ann v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/neural_net.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = try!(self.layers[1].set_activity(input, &self.weights[0])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/neural_net.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | let _ = try!(self.layers[idx + 1].set_activity(&prev_activation, weight)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MSE_Reg` should have an upper camel case name [INFO] [stdout] --> src/cost_function.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct MSE_Reg { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MseReg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/trainer.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | let pred = try!(self.net.predict(s_input)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/trainer.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | djdws = try!(self.cost.cost_prime(self.net, &s_input, &s_output, &pred)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | let mut file = try!(File::open(path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | layers: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | layers: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | fn new(desc: Vec>) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | fn new(desc: Vec>) -> Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 51 | fn get_layers(&self) -> &[Box]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 51 | fn get_layers(&self) -> &[Box]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | fn new(desc: Vec>) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn new(desc: Vec>) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | fn get_layers(&self) -> &[Box] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn get_layers(&self) -> &[Box] { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `djdws` is never read [INFO] [stdout] --> src/trainer.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut djdws: Vec = Vec::new(); [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: unused variable: `res` [INFO] [stdout] --> src/main.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let res: isize = enl.par_iter().map(|&(i, line)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nn_pred` [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let nn_pred = max_pred_idx; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nn_pred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual_pred` [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let actual_pred = actual_idx; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_pred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `normalized_train_data` and `normalized_test_data` are never used [INFO] [stdout] --> src/main.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl NetData { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn normalized_train_data(&self) -> (Matrix2d, Matrix2d) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn normalized_test_data(&self) -> (Matrix2d, Matrix2d) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `frobenius_norm` is never used [INFO] [stdout] --> src/utils.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn frobenius_norm(m: &Matrix2d) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vec_bin_op` is never used [INFO] [stdout] --> src/utils.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn vec_bin_op(u: &[f64], v: &[f64], f: F) -> Vec [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_params` is never used [INFO] [stdout] --> src/utils.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn set_params(nn: &mut NN, params: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_params` is never used [INFO] [stdout] --> src/utils.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn get_params(nn: &NN) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_gradients` is never used [INFO] [stdout] --> src/utils.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn compute_gradients(nn: &mut NN, cost: &mut C,input: &Matrix2d, output: &Matrix2d) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_numerical_gradients` is never used [INFO] [stdout] --> src/utils.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn compute_numerical_gradients(nn: &mut NN, cost: &mut C, x: &Matrix2d, y: &Matrix2d) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_gradient` is never used [INFO] [stdout] --> src/utils.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn check_gradient(nn: &mut NN, cost: &mut C, x: &Matrix2d, y: &Matrix2d) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_activity` is never used [INFO] [stdout] --> src/layer.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Layer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 7 | fn set_activity(&mut self, x: &Matrix2d, w: &Matrix2d) -> Result<(), NNetError>; [INFO] [stdout] 8 | fn get_activity(&self) -> &Matrix2d; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FastExp` is never used [INFO] [stdout] --> src/activation_function.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait FastExp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | let mut mc = vec.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[f64]` does not implement `Clone`, so calling `clone` on `&[f64]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/trainer.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | if i >= 0 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.84s [INFO] running `Command { std: "docker" "inspect" "1995009e555425fe5b4f4e76e2c52fe53938bf7d6f215afb74c9efa993eae938", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1995009e555425fe5b4f4e76e2c52fe53938bf7d6f215afb74c9efa993eae938", kill_on_drop: false }` [INFO] [stdout] 1995009e555425fe5b4f4e76e2c52fe53938bf7d6f215afb74c9efa993eae938 [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 -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] 42283fecfd6bc47a48688666059487dfc389c0d70156b3271af81c5c8c210476 [INFO] running `Command { std: "docker" "start" "-a" "42283fecfd6bc47a48688666059487dfc389c0d70156b3271af81c5c8c210476", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling rust_ann v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `utils::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use utils::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/neural_net.rs:82:17 [INFO] [stdout] | [INFO] [stdout] 82 | let _ = try!(self.layers[1].set_activity(input, &self.weights[0])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/neural_net.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 88 | let _ = try!(self.layers[idx + 1].set_activity(&prev_activation, weight)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MSE_Reg` should have an upper camel case name [INFO] [stdout] --> src/cost_function.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct MSE_Reg { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `MseReg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/trainer.rs:44:28 [INFO] [stdout] | [INFO] [stdout] 44 | let pred = try!(self.net.predict(s_input)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/trainer.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | djdws = try!(self.cost.cost_prime(self.net, &s_input, &s_output, &pred)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/main.rs:45:24 [INFO] [stdout] | [INFO] [stdout] 45 | let mut file = try!(File::open(path)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | layers: Vec>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | layers: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | fn new(desc: Vec>) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | fn new(desc: Vec>) -> Result; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:51:35 [INFO] [stdout] | [INFO] [stdout] 51 | fn get_layers(&self) -> &[Box]; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 51 | fn get_layers(&self) -> &[Box]; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:63:26 [INFO] [stdout] | [INFO] [stdout] 63 | fn new(desc: Vec>) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 63 | fn new(desc: Vec>) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/neural_net.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 117 | fn get_layers(&self) -> &[Box] { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 117 | fn get_layers(&self) -> &[Box] { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `djdws` is never read [INFO] [stdout] --> src/trainer.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut djdws: Vec = Vec::new(); [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: unused variable: `res` [INFO] [stdout] --> src/main.rs:57:17 [INFO] [stdout] | [INFO] [stdout] 57 | let res: isize = enl.par_iter().map(|&(i, line)| { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nn_pred` [INFO] [stdout] --> src/main.rs:193:13 [INFO] [stdout] | [INFO] [stdout] 193 | let nn_pred = max_pred_idx; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nn_pred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual_pred` [INFO] [stdout] --> src/main.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 194 | let actual_pred = actual_idx; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_pred` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `normalized_train_data` and `normalized_test_data` are never used [INFO] [stdout] --> src/main.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 41 | impl NetData { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn normalized_train_data(&self) -> (Matrix2d, Matrix2d) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn normalized_test_data(&self) -> (Matrix2d, Matrix2d) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `set_params` is never used [INFO] [stdout] --> src/utils.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn set_params(nn: &mut NN, params: Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_params` is never used [INFO] [stdout] --> src/utils.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn get_params(nn: &NN) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_gradients` is never used [INFO] [stdout] --> src/utils.rs:96:4 [INFO] [stdout] | [INFO] [stdout] 96 | fn compute_gradients(nn: &mut NN, cost: &mut C,input: &Matrix2d, output: &Matrix2d) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `compute_numerical_gradients` is never used [INFO] [stdout] --> src/utils.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn compute_numerical_gradients(nn: &mut NN, cost: &mut C, x: &Matrix2d, y: &Matrix2d) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_gradient` is never used [INFO] [stdout] --> src/utils.rs:132:8 [INFO] [stdout] | [INFO] [stdout] 132 | pub fn check_gradient(nn: &mut NN, cost: &mut C, x: &Matrix2d, y: &Matrix2d) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_activity` is never used [INFO] [stdout] --> src/layer.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait Layer { [INFO] [stdout] | ----- method in this trait [INFO] [stdout] 7 | fn set_activity(&mut self, x: &Matrix2d, w: &Matrix2d) -> Result<(), NNetError>; [INFO] [stdout] 8 | fn get_activity(&self) -> &Matrix2d; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `FastExp` is never used [INFO] [stdout] --> src/activation_function.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | trait FastExp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/utils.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | let mut mc = vec.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `[f64]` does not implement `Clone`, so calling `clone` on `&[f64]` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> src/trainer.rs:68:16 [INFO] [stdout] | [INFO] [stdout] 68 | if i >= 0 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.46s [INFO] running `Command { std: "docker" "inspect" "42283fecfd6bc47a48688666059487dfc389c0d70156b3271af81c5c8c210476", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42283fecfd6bc47a48688666059487dfc389c0d70156b3271af81c5c8c210476", kill_on_drop: false }` [INFO] [stdout] 42283fecfd6bc47a48688666059487dfc389c0d70156b3271af81c5c8c210476