[INFO] cloning repository https://github.com/iofuwisa/learning_rust_dl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iofuwisa/learning_rust_dl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiofuwisa%2Flearning_rust_dl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiofuwisa%2Flearning_rust_dl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8459668244848a9ea2d6d16811c6080ce5d45f54 [INFO] checking iofuwisa/learning_rust_dl against master#21de280cccb4eb02ead6bf0af40e2355a9136d6f for pr-100043-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fiofuwisa%2Flearning_rust_dl" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/iofuwisa/learning_rust_dl on toolchain 21de280cccb4eb02ead6bf0af40e2355a9136d6f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+21de280cccb4eb02ead6bf0af40e2355a9136d6f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/iofuwisa/learning_rust_dl [INFO] finished tweaking git repo https://github.com/iofuwisa/learning_rust_dl [INFO] tweaked toml for git repo https://github.com/iofuwisa/learning_rust_dl written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/iofuwisa/learning_rust_dl already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+21de280cccb4eb02ead6bf0af40e2355a9136d6f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termtree v0.2.1 [INFO] [stderr] Downloaded mockall_double v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+21de280cccb4eb02ead6bf0af40e2355a9136d6f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 8c30e77b87c8397af1495c26613effc61cdf02a72ed786b952ff5d81e9570984 [INFO] running `Command { std: "docker" "start" "-a" "8c30e77b87c8397af1495c26613effc61cdf02a72ed786b952ff5d81e9570984", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c30e77b87c8397af1495c26613effc61cdf02a72ed786b952ff5d81e9570984", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c30e77b87c8397af1495c26613effc61cdf02a72ed786b952ff5d81e9570984", kill_on_drop: false }` [INFO] [stdout] 8c30e77b87c8397af1495c26613effc61cdf02a72ed786b952ff5d81e9570984 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+21de280cccb4eb02ead6bf0af40e2355a9136d6f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0be6bbb9bbba42dbdaf6a6bc2e1c79186a71ac23e5b8ca6b291c92b152806368 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0be6bbb9bbba42dbdaf6a6bc2e1c79186a71ac23e5b8ca6b291c92b152806368", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.77 [INFO] [stderr] Compiling libc v0.2.102 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.78 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling bumpalo v3.7.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.78 [INFO] [stderr] Checking byteorder v1.4.3 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking weezl v0.1.5 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Checking plotters-backend v0.3.2 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Checking bytemuck v1.7.2 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking rawpointer v0.1.0 [INFO] [stderr] Checking float-ord v0.2.0 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking predicates-core v1.0.2 [INFO] [stderr] Checking ttf-parser v0.12.3 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking termtree v0.2.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Checking fragile v1.0.0 [INFO] [stderr] Checking downcast v0.10.0 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking mnist v0.4.1 [INFO] [stderr] Checking walkdir v2.3.2 [INFO] [stderr] Checking gif v0.11.2 [INFO] [stderr] Checking plotters-svg v0.3.1 [INFO] [stderr] Compiling cmake v0.1.45 [INFO] [stderr] Checking matrixmultiply v0.3.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking predicates-tree v1.0.4 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking getrandom v0.2.3 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.3.28 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-complex v0.4.0 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking freetype v0.7.0 [INFO] [stderr] Checking servo-fontconfig v0.5.1 [INFO] [stderr] Checking rand v0.8.4 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rulinalg v0.4.2 [INFO] [stderr] Checking ndarray v0.15.3 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Compiling pathfinder_simd v0.5.1 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Checking pathfinder_geometry v0.5.1 [INFO] [stderr] Checking font-kit v0.10.1 [INFO] [stderr] Checking plotters-bitmap v0.3.1 [INFO] [stderr] Checking plotters v0.3.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.78 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.78 [INFO] [stderr] Compiling mockall_derive v0.10.2 [INFO] [stderr] Compiling mockall_double v0.2.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.78 [INFO] [stderr] Checking js-sys v0.3.55 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking mockall v0.10.2 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.28 [INFO] [stderr] Checking web-sys v0.3.55 [INFO] [stderr] Checking wasm-bindgen-test v0.3.28 [INFO] [stderr] Checking deep_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::deep_learning::statistics::*` [INFO] [stdout] --> src/deep_learning/common.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::deep_learning::statistics::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::deep_learning::*` [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::deep_learning::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/affine.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufRead, BufReader, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/relu.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/sigmoid.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ArrayView1` [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | ArrayView1, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `s` [INFO] [stdout] --> src/image.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | s, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/network_layer.rs:21:57 [INFO] [stdout] | [INFO] [stdout] 21 | fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 21 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:80:57 [INFO] [stdout] | [INFO] [stdout] 80 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 80 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/affine.rs:166:57 [INFO] [stdout] | [INFO] [stdout] 166 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 166 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 166 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:112:57 [INFO] [stdout] | [INFO] [stdout] 112 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 112 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/relu.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 91 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/sigmoid.rs:95:57 [INFO] [stdout] | [INFO] [stdout] 95 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 95 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:236:57 [INFO] [stdout] | [INFO] [stdout] 236 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 236 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 236 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:122:57 [INFO] [stdout] | [INFO] [stdout] 122 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 122 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 115 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 115 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:261:57 [INFO] [stdout] | [INFO] [stdout] 261 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 261 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 261 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:173:57 [INFO] [stdout] | [INFO] [stdout] 173 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 173 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 173 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/neural_network.rs:124:75 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn import_from_file(file_path: &str) -> Result> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - pub fn import_from_file(file_path: &str) -> Result> { [INFO] [stdout] 124 + pub fn import_from_file(file_path: &str) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/neural_network.rs:148:44 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn export(&self) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - pub fn export(&self) -> Result<(), Box> { [INFO] [stdout] 148 + pub fn export(&self) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:4:15 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::deep_learning::*` [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::deep_learning::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/affine.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufRead, BufReader, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/relu.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/sigmoid.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufRead`, `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BufReader`, `Lines`, `Read`, `self` [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^ ^^^^ ^^^^^^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `s` [INFO] [stdout] --> src/image.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | s, [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/network_layer.rs:21:57 [INFO] [stdout] | [INFO] [stdout] 21 | fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 21 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:80:57 [INFO] [stdout] | [INFO] [stdout] 80 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 80 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 80 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/affine.rs:166:57 [INFO] [stdout] | [INFO] [stdout] 166 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 166 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 166 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:112:57 [INFO] [stdout] | [INFO] [stdout] 112 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 112 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/relu.rs:91:57 [INFO] [stdout] | [INFO] [stdout] 91 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 91 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/sigmoid.rs:95:57 [INFO] [stdout] | [INFO] [stdout] 95 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 95 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 95 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:236:57 [INFO] [stdout] | [INFO] [stdout] 236 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 236 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 236 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:122:57 [INFO] [stdout] | [INFO] [stdout] 122 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 122 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 122 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:115:57 [INFO] [stdout] | [INFO] [stdout] 115 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 115 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 115 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:261:57 [INFO] [stdout] | [INFO] [stdout] 261 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 261 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 261 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:173:57 [INFO] [stdout] | [INFO] [stdout] 173 | fn export(&self, file: &mut File) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 173 - fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] 173 + fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/neural_network.rs:124:75 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn import_from_file(file_path: &str) -> Result> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 124 - pub fn import_from_file(file_path: &str) -> Result> { [INFO] [stdout] 124 + pub fn import_from_file(file_path: &str) -> Result> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/deep_learning/neural_network.rs:148:44 [INFO] [stdout] | [INFO] [stdout] 148 | pub fn export(&self) -> 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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 148 - pub fn export(&self) -> Result<(), Box> { [INFO] [stdout] 148 + pub fn export(&self) -> Result<(), Box> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufRead, BufReader, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/deep_learning/common.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/deep_learning/layer/network_layer.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dw` [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let dw = backword_broadcast(&(normalized * &dout)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let db = dout.sum_axis(Axis(0)).to_shared().reshape((1, w.shape()[1])).to_owned(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let filter = neural_network::import_network_layer(lines); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bias` [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let bias = neural_network::import_network_layer(lines); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col_index` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | let col_index = y * filter_w + x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_num` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | let (batch_num, _channel_num, _data_h, _data_w) = self.x_shape; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter_num` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let (filter_num, _channel_num, filter_h, filter_w) = self.filter_shape; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_num` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:202:14 [INFO] [stdout] | [INFO] [stdout] 202 | let (batch_num, channel_num, x_h, x_w) = self.x_shape; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | let mut df = col_x_2d.t().dot(&dout_2d).t().to_owned(); [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: function cannot return without recursing [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 257 | fn weight_sum(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 258 | return self.weight_sum(); [INFO] [stdout] | ----------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/momentum.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut velocity = self.velocity.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/rmsprop.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut velocity = self.velocity.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/adagrad.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut grad_squared_sum = self.grad_squared_sum.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/adam.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut m = self.m.as_mut().unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/adam.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut v = self.v.as_mut().unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `broadcast_rows` is never used [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:382:4 [INFO] [stdout] | [INFO] [stdout] 382 | fn broadcast_rows(data: &Array2, row_num: usize) -> Array2 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | plot_bias_histogram(self.value.clone().into_iter().collect(), &self.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | plot_histogram(self.value.clone().into_iter().collect(), &self.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/neural_network.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | plot_rate(correct_rates, "correct_rate"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/neural_network.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | plot_loss(losses, "loss"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/neural_network.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.last_layer.export(&mut file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `trn_img:` in this pattern is redundant [INFO] [stdout] --> src/mnist_images.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | trn_img: trn_img, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `trn_img` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_shorthand_field_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `val_img:` in this pattern is redundant [INFO] [stdout] --> src/mnist_images.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | val_img: val_img, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `val_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `tst_img:` in this pattern is redundant [INFO] [stdout] --> src/mnist_images.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | tst_img: tst_img, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `tst_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 58 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/main.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trn_lbl` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let trn_lbl = mnist.get_trn_lbl(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trn_lbl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tst_lbl` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let tst_lbl = mnist.get_tst_lbl(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tst_lbl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut trn_img_bi = Array2::::from_shape_fn( [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut tst_img_bi = Array2::::from_shape_fn( [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `trn_lbl` [INFO] [stdout] --> src/main.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let trn_lbl = mnist.get_trn_lbl(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_trn_lbl` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tst_lbl` [INFO] [stdout] --> src/main.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 50 | let tst_lbl = mnist.get_tst_lbl(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tst_lbl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DROUPOUT_RATE` is never used [INFO] [stdout] --> src/main.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const DROUPOUT_RATE: f64 = 0.15; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SGD_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const SGD_LEARNING_RATE: f64 = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOMENTUM_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const MOMENTUM_LEARNING_RATE: f64 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOMENTUM_FLICTION` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const MOMENTUM_FLICTION: f64 = 0.9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RMSPROP_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const RMSPROP_LEARNING_RATE: f64 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RMSPROP_FLICTION` is never used [INFO] [stdout] --> src/main.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const RMSPROP_FLICTION: f64 = 0.99; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADAGRAD_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const ADAGRAD_LEARNING_RATE: f64 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_main` is never used [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn guess_main() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `measure_execute_time` is never used [INFO] [stdout] --> src/main.rs:218:8 [INFO] [stdout] | [INFO] [stdout] 218 | fn measure_execute_time(f: &dyn Fn()) -> u128 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let mut trn_img_bi = Array2::::from_shape_fn( [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut tst_img_bi = Array2::::from_shape_fn( [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DROUPOUT_RATE` is never used [INFO] [stdout] --> src/main.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | const DROUPOUT_RATE: f64 = 0.15; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SGD_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const SGD_LEARNING_RATE: f64 = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOMENTUM_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:22:7 [INFO] [stdout] | [INFO] [stdout] 22 | const MOMENTUM_LEARNING_RATE: f64 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MOMENTUM_FLICTION` is never used [INFO] [stdout] --> src/main.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | const MOMENTUM_FLICTION: f64 = 0.9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RMSPROP_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:24:7 [INFO] [stdout] | [INFO] [stdout] 24 | const RMSPROP_LEARNING_RATE: f64 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RMSPROP_FLICTION` is never used [INFO] [stdout] --> src/main.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | const RMSPROP_FLICTION: f64 = 0.99; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ADAGRAD_LEARNING_RATE` is never used [INFO] [stdout] --> src/main.rs:26:7 [INFO] [stdout] | [INFO] [stdout] 26 | const ADAGRAD_LEARNING_RATE: f64 = 0.1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guess_main` is never used [INFO] [stdout] --> src/main.rs:198:4 [INFO] [stdout] | [INFO] [stdout] 198 | fn guess_main() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/direct_value.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufRead, BufReader, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/pooling.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::{self, Read, Write, BufReader, BufRead, Lines}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/deep_learning/common.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | for i in 0..size { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lerning_rate` [INFO] [stdout] --> src/deep_learning/common.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | let lerning_rate = 0.05; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lerning_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `file` [INFO] [stdout] --> src/deep_learning/layer/network_layer.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | fn export(&self, file: &mut File) -> Result<(), Box> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_file` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dw` [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:144:13 [INFO] [stdout] | [INFO] [stdout] 144 | let dw = backword_broadcast(&(normalized * &dout)); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/deep_learning/layer/batch_norm.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let db = dout.sum_axis(Axis(0)).to_shared().reshape((1, w.shape()[1])).to_owned(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter` [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | let filter = neural_network::import_network_layer(lines); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bias` [INFO] [stdout] --> src/deep_learning/layer/dropout.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | let bias = neural_network::import_network_layer(lines); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_bias` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col_index` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | let col_index = y * filter_w + x; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_col_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_num` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | let (batch_num, _channel_num, _data_h, _data_w) = self.x_shape; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter_num` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:182:18 [INFO] [stdout] | [INFO] [stdout] 182 | let (filter_num, _channel_num, filter_h, filter_w) = self.filter_shape; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `batch_num` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:202:14 [INFO] [stdout] | [INFO] [stdout] 202 | let (batch_num, channel_num, x_h, x_w) = self.x_shape; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_batch_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_b` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:1278:14 [INFO] [stdout] | [INFO] [stdout] 1278 | let (x_b, x_c, x_h, x_w) = x_shape; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_x_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x_c` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:1278:19 [INFO] [stdout] | [INFO] [stdout] 1278 | let (x_b, x_c, x_h, x_w) = x_shape; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_x_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter_b` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:1280:14 [INFO] [stdout] | [INFO] [stdout] 1280 | let (filter_b, filter_c, filter_h, filter_w) = filter_shape; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `filter_c` [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:1280:24 [INFO] [stdout] | [INFO] [stdout] 1280 | let (filter_b, filter_c, filter_h, filter_w) = filter_shape; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filter_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/image.rs:150:17 [INFO] [stdout] | [INFO] [stdout] 150 | for j in 0..width+2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/image.rs:161:17 [INFO] [stdout] | [INFO] [stdout] 161 | for j in 0..width+2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/image.rs:177:17 [INFO] [stdout] | [INFO] [stdout] 177 | for j in 0..width+2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/image.rs:188:17 [INFO] [stdout] | [INFO] [stdout] 188 | for j in 0..width+2 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/layer/affine.rs:247:13 [INFO] [stdout] | [INFO] [stdout] 247 | let mut x_value = arr2(& [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/layer/affine.rs:266:13 [INFO] [stdout] | [INFO] [stdout] 266 | let mut w_value = arr2(& [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:227:13 [INFO] [stdout] | [INFO] [stdout] 227 | let mut df = col_x_2d.t().dot(&dout_2d).t().to_owned(); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 257 | fn weight_sum(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 258 | return self.weight_sum(); [INFO] [stdout] | ----------------- recursive call site [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/layer/convolution.rs:420:13 [INFO] [stdout] | [INFO] [stdout] 420 | let mut conv = Convolution::new_random( [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/momentum.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut velocity = self.velocity.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/rmsprop.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let mut velocity = self.velocity.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/adagrad.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | let mut grad_squared_sum = self.grad_squared_sum.as_mut().unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/adam.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut m = self.m.as_mut().unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/deep_learning/optimizer/adam.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | let mut v = self.v.as_mut().unwrap(); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/graph_plotter/other.rs:255:9 [INFO] [stdout] | [INFO] [stdout] 255 | plot_rate(data, "test_rate"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/graph_plotter/other.rs:261:9 [INFO] [stdout] | [INFO] [stdout] 261 | plot_histogram(data, "test_histo"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 100 | plot_bias_histogram(self.value.clone().into_iter().collect(), &self.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/layer/affine_direct_value.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | plot_histogram(self.value.clone().into_iter().collect(), &self.name); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `softmaxLoss` should have a snake case name [INFO] [stdout] --> src/deep_learning/layer/softmax_with_loss.rs:293:17 [INFO] [stdout] | [INFO] [stdout] 293 | let mut softmaxLoss= SoftmaxWithLoss::new(x, t.clone()); [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `softmax_loss` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/neural_network.rs:85:9 [INFO] [stdout] | [INFO] [stdout] 85 | plot_rate(correct_rates, "correct_rate"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/neural_network.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | plot_loss(losses, "loss"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/deep_learning/neural_network.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 156 | self.last_layer.export(&mut file); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `trn_img:` in this pattern is redundant [INFO] [stdout] --> src/mnist_images.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | trn_img: trn_img, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `trn_img` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_shorthand_field_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `val_img:` in this pattern is redundant [INFO] [stdout] --> src/mnist_images.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | val_img: val_img, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `val_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `tst_img:` in this pattern is redundant [INFO] [stdout] --> src/mnist_images.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | tst_img: tst_img, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use shorthand field pattern: `tst_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TRN_IMG_SIZE` should have a snake case name [INFO] [stdout] --> src/mnist_images.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | let TRN_IMG_SIZE: usize = 5000; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `trn_img_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `VAL_IMG_SIZE` should have a snake case name [INFO] [stdout] --> src/mnist_images.rs:149:13 [INFO] [stdout] | [INFO] [stdout] 149 | let VAL_IMG_SIZE: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `val_img_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `TST_IMG_SIZE` should have a snake case name [INFO] [stdout] --> src/mnist_images.rs:150:13 [INFO] [stdout] | [INFO] [stdout] 150 | let TST_IMG_SIZE: usize = 2000; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `tst_img_size` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 73 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 33.29s [INFO] running `Command { std: "docker" "inspect" "0be6bbb9bbba42dbdaf6a6bc2e1c79186a71ac23e5b8ca6b291c92b152806368", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0be6bbb9bbba42dbdaf6a6bc2e1c79186a71ac23e5b8ca6b291c92b152806368", kill_on_drop: false }` [INFO] [stdout] 0be6bbb9bbba42dbdaf6a6bc2e1c79186a71ac23e5b8ca6b291c92b152806368