[INFO] cloning repository https://github.com/dkudernatsch/mle-nn-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dkudernatsch/mle-nn-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdkudernatsch%2Fmle-nn-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdkudernatsch%2Fmle-nn-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a9b0b4288f2c0cba34be0099c2b0e9bc4baa737 [INFO] building dkudernatsch/mle-nn-rs 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%2Fdkudernatsch%2Fmle-nn-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dkudernatsch/mle-nn-rs 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/dkudernatsch/mle-nn-rs [INFO] finished tweaking git repo https://github.com/dkudernatsch/mle-nn-rs [INFO] tweaked toml for git repo https://github.com/dkudernatsch/mle-nn-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dkudernatsch/mle-nn-rs 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] Downloading crates ... [INFO] [stderr] Downloaded alga v0.9.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 476eae4aac5bbc11a365e4a6bb17a99e4445c7fb1533003711978830ae00f84e [INFO] running `Command { std: "docker" "start" "-a" "476eae4aac5bbc11a365e4a6bb17a99e4445c7fb1533003711978830ae00f84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "476eae4aac5bbc11a365e4a6bb17a99e4445c7fb1533003711978830ae00f84e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "476eae4aac5bbc11a365e4a6bb17a99e4445c7fb1533003711978830ae00f84e", kill_on_drop: false }` [INFO] [stdout] 476eae4aac5bbc11a365e4a6bb17a99e4445c7fb1533003711978830ae00f84e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] f997d3cd3075a495ab14312325ecd10904be2ca2926355f1b407d4f0c9ed8102 [INFO] running `Command { std: "docker" "start" "-a" "f997d3cd3075a495ab14312325ecd10904be2ca2926355f1b407d4f0c9ed8102", kill_on_drop: false }` [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling libc v0.2.53 [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling libm v0.1.2 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling matrixmultiply v0.2.2 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.3 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling generic-array v0.12.0 [INFO] [stderr] Compiling alga v0.9.0 [INFO] [stderr] Compiling nalgebra v0.18.0 [INFO] [stderr] Compiling mle-nn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DynMatrixSlice` [INFO] [stdout] --> src/images.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::nn::{DynMatrix, DynMatrixSlice}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArrayStorage`, `Matrix`, and `U28` [INFO] [stdout] --> src/images.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{ArrayStorage, Matrix, U28}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/images.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::base::dimension::Dynamic` [INFO] [stdout] --> src/nn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::base::dimension::Dynamic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SliceStorage`, `U1`, and `VecStorage` [INFO] [stdout] --> src/nn.rs:2:56 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{DMatrix, DMatrixSlice, DMatrixSliceMut, SliceStorage, VecStorage, U1}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `map_res` [INFO] [stdout] --> src/parser.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{be_u32, be_u8, count, do_parse, map, map_res, named, tag, take}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/main.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:117:81 [INFO] [stdout] | [INFO] [stdout] 117 | fn parse_images(image_data: &[u8], label_data: &[u8]) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 117 | fn parse_images(image_data: &[u8], label_data: &[u8]) -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/images.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t0` [INFO] [stdout] --> src/nn.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let t0 = Instant::now(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rows` [INFO] [stdout] --> src/nn.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | fn output_shape(&self, (rows, cols): (usize, usize)) -> (usize, usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/parser.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let tmp = std::iter::once(1.0) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `train_data` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let train_data = load_train_data()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_train_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_parts` is never used [INFO] [stdout] --> src/images.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Image { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 50 | pub fn from_parts(data: DynMatrix, label: DynMatrix) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DynMatrixSlice` is never used [INFO] [stdout] --> src/nn.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub type DynMatrixSlice<'a> = DMatrixSlice<'a, f64>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `with_weights` is never used [INFO] [stdout] --> src/nn.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 96 | impl FullyConnectedNetworkLayer { [INFO] [stdout] | ------------------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn with_weights(nodes: usize, weights: usize, weight_data: &[f64]) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/nn.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | &self.weights.mul_to(input, output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 117 | let _ = &self.weights.mul_to(input, output); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 14.14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "f997d3cd3075a495ab14312325ecd10904be2ca2926355f1b407d4f0c9ed8102", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f997d3cd3075a495ab14312325ecd10904be2ca2926355f1b407d4f0c9ed8102", kill_on_drop: false }` [INFO] [stdout] f997d3cd3075a495ab14312325ecd10904be2ca2926355f1b407d4f0c9ed8102 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 67e4e7305730d5b33e2d56d9df5f7fa705f7c9a023318f0deaa2515532e44735 [INFO] running `Command { std: "docker" "start" "-a" "67e4e7305730d5b33e2d56d9df5f7fa705f7c9a023318f0deaa2515532e44735", kill_on_drop: false }` [INFO] [stderr] Compiling mle-nn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DynMatrixSlice` [INFO] [stdout] --> src/images.rs:1:28 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::nn::{DynMatrix, DynMatrixSlice}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ArrayStorage`, `Matrix`, and `U28` [INFO] [stdout] --> src/images.rs:2:16 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{ArrayStorage, Matrix, U28}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/images.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nalgebra::base::dimension::Dynamic` [INFO] [stdout] --> src/nn.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use nalgebra::base::dimension::Dynamic; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `SliceStorage`, `U1`, and `VecStorage` [INFO] [stdout] --> src/nn.rs:2:56 [INFO] [stdout] | [INFO] [stdout] 2 | use nalgebra::{DMatrix, DMatrixSlice, DMatrixSliceMut, SliceStorage, VecStorage, U1}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/nn.rs:516:20 [INFO] [stdout] | [INFO] [stdout] 516 | if (i == 25) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 516 - if (i == 25) { [INFO] [stdout] 516 + if i == 25 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `map_res` [INFO] [stdout] --> src/parser.rs:1:48 [INFO] [stdout] | [INFO] [stdout] 1 | use nom::{be_u32, be_u8, count, do_parse, map, map_res, named, tag, take}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryFrom` [INFO] [stdout] --> src/parser.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::convert::TryFrom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::images::Image` [INFO] [stdout] --> src/parser.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | use crate::images::Image; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::error::Error` [INFO] [stdout] --> src/parser.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 61 | use std::error::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufWriter` [INFO] [stdout] --> src/main.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use std::io::{BufReader, BufWriter, Read, Write}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:117:81 [INFO] [stdout] | [INFO] [stdout] 117 | fn parse_images(image_data: &[u8], label_data: &[u8]) -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 117 | fn parse_images(image_data: &[u8], label_data: &[u8]) -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> src/images.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t0` [INFO] [stdout] --> src/nn.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | let t0 = Instant::now(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t0` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rows` [INFO] [stdout] --> src/nn.rs:126:29 [INFO] [stdout] | [INFO] [stdout] 126 | fn output_shape(&self, (rows, cols): (usize, usize)) -> (usize, usize) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_rows` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/nn.rs:237:21 [INFO] [stdout] | [INFO] [stdout] 237 | let out = nn.forward_propagate(&input); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/nn.rs:297:21 [INFO] [stdout] | [INFO] [stdout] 297 | let out = nn.forward_propagate(&input); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/nn.rs:343:21 [INFO] [stdout] | [INFO] [stdout] 343 | let out = nn.forward_propagate(&input); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `out` [INFO] [stdout] --> src/nn.rs:519:21 [INFO] [stdout] | [INFO] [stdout] 519 | let out = nn.forward_propagate(&data); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `label` [INFO] [stdout] --> src/nn.rs:525:20 [INFO] [stdout] | [INFO] [stdout] 525 | for (data, label) in data.iter().zip(&labels) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_label` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tmp` [INFO] [stdout] --> src/parser.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let tmp = std::iter::once(1.0) [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_tmp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | if let Ok((input, labels)) = mnist_label_parser(&data) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `train_data` [INFO] [stdout] --> src/main.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let train_data = load_train_data()?; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_train_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_parts` is never used [INFO] [stdout] --> src/images.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 49 | impl Image { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 50 | pub fn from_parts(data: DynMatrix, label: DynMatrix) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DynMatrixSlice` is never used [INFO] [stdout] --> src/nn.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub type DynMatrixSlice<'a> = DMatrixSlice<'a, f64>; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/nn.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | &self.weights.mul_to(input, output); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 117 | let _ = &self.weights.mul_to(input, output); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/parser.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | rdr.read_to_end(&mut buff); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 70 | let _ = rdr.read_to_end(&mut buff); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.2.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "67e4e7305730d5b33e2d56d9df5f7fa705f7c9a023318f0deaa2515532e44735", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67e4e7305730d5b33e2d56d9df5f7fa705f7c9a023318f0deaa2515532e44735", kill_on_drop: false }` [INFO] [stdout] 67e4e7305730d5b33e2d56d9df5f7fa705f7c9a023318f0deaa2515532e44735