[INFO] cloning repository https://github.com/tadeegan/nn-digits-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tadeegan/nn-digits-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftadeegan%2Fnn-digits-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftadeegan%2Fnn-digits-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1c57320e285dd708334482239280310817689c6 [INFO] testing tadeegan/nn-digits-rust against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftadeegan%2Fnn-digits-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tadeegan/nn-digits-rust [INFO] finished tweaking git repo https://github.com/tadeegan/nn-digits-rust [INFO] tweaked toml for git repo https://github.com/tadeegan/nn-digits-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tadeegan/nn-digits-rust on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tadeegan/nn-digits-rust 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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] Downloading crates ... [INFO] [stderr] Downloaded matrixmultiply v0.1.13 [INFO] [stderr] Downloaded csv-core v0.1.3 [INFO] [stderr] Downloaded csv v1.0.0-beta.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72f215549f08c2706a23d64612e1bf69e4c155c7a69877cd22781ab46925619c [INFO] running `Command { std: "docker" "start" "-a" "72f215549f08c2706a23d64612e1bf69e4c155c7a69877cd22781ab46925619c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72f215549f08c2706a23d64612e1bf69e4c155c7a69877cd22781ab46925619c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72f215549f08c2706a23d64612e1bf69e4c155c7a69877cd22781ab46925619c", kill_on_drop: false }` [INFO] [stdout] 72f215549f08c2706a23d64612e1bf69e4c155c7a69877cd22781ab46925619c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef9e5f139fd93ba1037779899ba1a301e63abf24c91c543d032c5b2408305630 [INFO] running `Command { std: "docker" "start" "-a" "ef9e5f139fd93ba1037779899ba1a301e63abf24c91c543d032c5b2408305630", 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.32 [INFO] [stderr] Compiling num-traits v0.1.40 [INFO] [stderr] Compiling matrixmultiply v0.1.13 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling serde v1.0.15 [INFO] [stderr] Compiling memchr v1.0.1 [INFO] [stderr] Compiling rand v0.3.17 [INFO] [stderr] Compiling csv-core v0.1.3 [INFO] [stderr] Compiling num-integer v0.1.35 [INFO] [stderr] Compiling num-iter v0.1.34 [INFO] [stderr] Compiling num v0.1.40 [INFO] [stderr] Compiling rulinalg v0.4.2 [INFO] [stderr] Compiling csv v1.0.0-beta.5 [INFO] [stderr] Compiling digits v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `activations::TanH` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use activations::TanH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | let y = (i + a); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - let y = (i + a); [INFO] [stdout] 65 + let y = i + a; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let x = (j + b); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - let x = (j + b); [INFO] [stdout] 66 + let x = j + b; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | let y = (i + a); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - let y = (i + a); [INFO] [stdout] 87 + let y = i + a; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | let x = (j + b); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - let x = (j + b); [INFO] [stdout] 88 + let x = j + b; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | fn example() -> Result<(), 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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 100 | fn example() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loss` [INFO] [stdout] --> src/main.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let loss = a2.sum() - 1.0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_loss` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut label_matrix = Matrix::new(10, 1, dat); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sigmoid_loss` is never used [INFO] [stdout] --> src/main.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn sigmoid_loss(yhat: f64, y: f64) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `loss` is never used [INFO] [stdout] --> src/main.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn loss(yhat: &Matrix, y: &Matrix) -> Matrix { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_dim` is never used [INFO] [stdout] --> src/main.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn print_dim(m: &Matrix) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TanH` is never constructed [INFO] [stdout] --> src/activations.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct TanH {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | fn conv(w : &Mat, xi: &Mat, N : usize) -> Matrix { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `X` should have a snake case name [INFO] [stdout] --> src/main.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 77 | fn conv_gradient(X : &Mat, dLdz0 : &Mat, N : usize) -> Mat { [INFO] [stdout] | ^ help: convert the identifier to snake case (notice the capitalization): `x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdz0` should have a snake case name [INFO] [stdout] --> src/main.rs:77:28 [INFO] [stdout] | [INFO] [stdout] 77 | fn conv_gradient(X : &Mat, dLdz0 : &Mat, N : usize) -> Mat { [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ldz0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/main.rs:77:42 [INFO] [stdout] | [INFO] [stdout] 77 | fn conv_gradient(X : &Mat, dLdz0 : &Mat, N : usize) -> Mat { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W1` should have a snake case name [INFO] [stdout] --> src/main.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | let mut W1: Matrix = reproducible_random_matrix(26 * 26, hidden_layer_nodes); // 784x16 [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `W2` should have a snake case name [INFO] [stdout] --> src/main.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | let mut W2: Matrix = reproducible_random_matrix(hidden_layer_nodes, 10); // 16x10 [INFO] [stdout] | ^^ help: convert the identifier to snake case (notice the capitalization): `w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdW2` should have a snake case name [INFO] [stdout] --> src/main.rs:181:17 [INFO] [stdout] | [INFO] [stdout] 181 | let dLdW2 = &a1 * (&a2 - y).transpose(); // -> 16x10 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ld_w2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdz2` should have a snake case name [INFO] [stdout] --> src/main.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 189 | let dLdz2 = &a2 - y; // 10x1 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ldz2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLda1` should have a snake case name [INFO] [stdout] --> src/main.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | let dLda1 = &W2 * dLdz2; // 16x10 * 10x1 => 16x1 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_lda1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdz1` should have a snake case name [INFO] [stdout] --> src/main.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let dLdz1 = dLda1.elemul(&z1.apply(&|x| ReLU::derivative(x))); // Apply sigmoid derivative => 16x1 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ldz1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdW1` should have a snake case name [INFO] [stdout] --> src/main.rs:192:17 [INFO] [stdout] | [INFO] [stdout] 192 | let dLdW1 = a0 * dLdz1.transpose(); // (26*26)x16 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ld_w1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLda0` should have a snake case name [INFO] [stdout] --> src/main.rs:198:17 [INFO] [stdout] | [INFO] [stdout] 198 | let dLda0 = &W1 * dLdz1; // (26*26)xhidden_layer_nodes * hidden_layer_nodesx1 => 26*26x1 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_lda0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdz0` should have a snake case name [INFO] [stdout] --> src/main.rs:200:17 [INFO] [stdout] | [INFO] [stdout] 200 | let dLdz0 = dLda0.elemul(da0dz0); // 16x1 [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ldz0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `dLdw0` should have a snake case name [INFO] [stdout] --> src/main.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | let dLdw0 = conv_gradient(xi, &dLdz0, 28); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `d_ldw0` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.26s [INFO] running `Command { std: "docker" "inspect" "ef9e5f139fd93ba1037779899ba1a301e63abf24c91c543d032c5b2408305630", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef9e5f139fd93ba1037779899ba1a301e63abf24c91c543d032c5b2408305630", kill_on_drop: false }` [INFO] [stdout] ef9e5f139fd93ba1037779899ba1a301e63abf24c91c543d032c5b2408305630 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 922aa8ed156c7dbc7f0a3f4d8db9476c4d028a392626807787bd5b8b209edbce [INFO] running `Command { std: "docker" "start" "-a" "922aa8ed156c7dbc7f0a3f4d8db9476c4d028a392626807787bd5b8b209edbce", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling digits v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::str` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::str; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `activations::TanH` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use activations::TanH; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:65:29 [INFO] [stdout] | [INFO] [stdout] 65 | let y = (i + a); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - let y = (i + a); [INFO] [stdout] 65 + let y = i + a; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let x = (j + b); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - let x = (j + b); [INFO] [stdout] 66 + let x = j + b; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | let y = (i + a); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 87 - let y = (i + a); [INFO] [stdout] 87 + let y = i + a; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | let x = (j + b); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - let x = (j + b); [INFO] [stdout] 88 + let x = j + b; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rulinalg::matrix::BaseMatrixMut` [INFO] [stdout] --> src/main.rs:262:9 [INFO] [stdout] | [INFO] [stdout] 262 | use rulinalg::matrix::BaseMatrixMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:100:32 [INFO] [stdout] | [INFO] [stdout] 100 | fn example() -> Result<(), 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] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 100 | fn example() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/main.rs:269:19 [INFO] [stdout] | [INFO] [stdout] 269 | let out = conv(w, x, 4); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `&Matrix`, found `Matrix<_>` [INFO] [stdout] --> src/main.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | let out = conv(w, x, 4); [INFO] [stdout] | ^ [INFO] [stdout] = note: expected reference `&Matrix` [INFO] [stdout] found struct `Matrix<_>` [INFO] [stdout] note: expected `&Matrix`, found `Matrix<_>` [INFO] [stdout] --> src/main.rs:269:27 [INFO] [stdout] | [INFO] [stdout] 269 | let out = conv(w, x, 4); [INFO] [stdout] | ^ [INFO] [stdout] = note: expected reference `&Matrix` [INFO] [stdout] found struct `Matrix<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn conv(w : &Mat, xi: &Mat, N : usize) -> Matrix { [INFO] [stdout] | ^^^^ -------- -------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 269 | let out = conv(&w, x, 4); [INFO] [stdout] | + [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 269 | let out = conv(w, &x, 4); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/main.rs:278:19 [INFO] [stdout] | [INFO] [stdout] 278 | let out = conv(w, x, 4); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `&Matrix`, found `Matrix<_>` [INFO] [stdout] --> src/main.rs:278:24 [INFO] [stdout] | [INFO] [stdout] 278 | let out = conv(w, x, 4); [INFO] [stdout] | ^ [INFO] [stdout] = note: expected reference `&Matrix` [INFO] [stdout] found struct `Matrix<_>` [INFO] [stdout] note: expected `&Matrix`, found `Matrix<_>` [INFO] [stdout] --> src/main.rs:278:27 [INFO] [stdout] | [INFO] [stdout] 278 | let out = conv(w, x, 4); [INFO] [stdout] | ^ [INFO] [stdout] = note: expected reference `&Matrix` [INFO] [stdout] found struct `Matrix<_>` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn conv(w : &Mat, xi: &Mat, N : usize) -> Matrix { [INFO] [stdout] | ^^^^ -------- -------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 278 | let out = conv(&w, x, 4); [INFO] [stdout] | + [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 278 | let out = conv(w, &x, 4); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loss` [INFO] [stdout] --> src/main.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let loss = a2.sum() - 1.0; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_loss` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:119:13 [INFO] [stdout] | [INFO] [stdout] 119 | let mut label_matrix = Matrix::new(10, 1, dat); [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `digits` (bin "digits" test) due to 2 previous errors; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "922aa8ed156c7dbc7f0a3f4d8db9476c4d028a392626807787bd5b8b209edbce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "922aa8ed156c7dbc7f0a3f4d8db9476c4d028a392626807787bd5b8b209edbce", kill_on_drop: false }` [INFO] [stdout] 922aa8ed156c7dbc7f0a3f4d8db9476c4d028a392626807787bd5b8b209edbce