[INFO] cloning repository https://github.com/legeyda/neurocr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/legeyda/neurocr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flegeyda%2Fneurocr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flegeyda%2Fneurocr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 46838c8be4edee3452e26ef790fb982934acef9b [INFO] testing legeyda/neurocr against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flegeyda%2Fneurocr" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/legeyda/neurocr on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/legeyda/neurocr [INFO] finished tweaking git repo https://github.com/legeyda/neurocr [INFO] tweaked toml for git repo https://github.com/legeyda/neurocr written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/legeyda/neurocr already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] 23a9e4fd876e93f4306327b2d47dea959bc5b7c8b24825224b661c87cc88a24c [INFO] running `Command { std: "docker" "start" "-a" "23a9e4fd876e93f4306327b2d47dea959bc5b7c8b24825224b661c87cc88a24c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "23a9e4fd876e93f4306327b2d47dea959bc5b7c8b24825224b661c87cc88a24c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23a9e4fd876e93f4306327b2d47dea959bc5b7c8b24825224b661c87cc88a24c", kill_on_drop: false }` [INFO] [stdout] 23a9e4fd876e93f4306327b2d47dea959bc5b7c8b24825224b661c87cc88a24c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", 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] f23e797906c65c79b6912a554b6f65babf0f13073b0577666779200355b7c404 [INFO] running `Command { std: "docker" "start" "-a" "f23e797906c65c79b6912a554b6f65babf0f13073b0577666779200355b7c404", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.1.42 [INFO] [stderr] Compiling regex-syntax v0.4.2 [INFO] [stderr] Compiling termcolor v0.3.4 [INFO] [stderr] Compiling rand v0.3.20 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling time v0.1.39 [INFO] [stderr] Compiling atty v0.2.6 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling mnist v0.4.0 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling simple_logger v0.5.0 [INFO] [stderr] Compiling num-integer v0.1.35 [INFO] [stderr] Compiling num-complex v0.1.41 [INFO] [stderr] Compiling regex v0.2.6 [INFO] [stderr] Compiling num-bigint v0.1.41 [INFO] [stderr] Compiling num-iter v0.1.34 [INFO] [stderr] Compiling num-rational v0.1.40 [INFO] [stderr] Compiling num v0.1.41 [INFO] [stderr] Compiling chrono v0.4.0 [INFO] [stderr] Compiling rulinalg v0.4.2 [INFO] [stderr] Compiling env_logger v0.5.3 [INFO] [stderr] Compiling neurocr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/mnistfiles.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fn` [INFO] [stdout] --> src/network.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | use std::ops::{Add, Mul, Fn}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/network.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut der = (&outputs[n-1] - expected_output); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - let mut der = (&outputs[n-1] - expected_output); [INFO] [stdout] 195 + let mut der = &outputs[n-1] - expected_output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env::home_dir; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | match home_dir() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | match home_dir() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math.rs:24:54 [INFO] [stdout] | [INFO] [stdout] 24 | fn minimize(subject: &Functional, [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - fn minimize(subject: &Functional, [INFO] [stdout] 24 + fn minimize(subject: &dyn Functional, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | ... on_new: &Fn(&VectorType) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - on_new: &Fn(&VectorType) -> bool, [INFO] [stdout] 27 + on_new: &dyn Fn(&VectorType) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignored` [INFO] [stdout] --> src/network.rs:76:61 [INFO] [stdout] | [INFO] [stdout] 76 | biases: Vector::zeros(num_neurons) .apply(&(|ignored| generator())), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignored` [INFO] [stdout] --> src/network.rs:77:61 [INFO] [stdout] | [INFO] [stdout] 77 | weights: Matrix::zeros(num_neurons, num_inputs).apply(&(|ignored| generator())) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/network.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | let n = data.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let mut value: ScalarType = subject.eval(&estimation); [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 is never used: `random` [INFO] [stdout] --> src/network.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn random() -> T where T: Float + Rand { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minimize` [INFO] [stdout] --> src/math.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn minimize(subject: &Functional, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mnistfiles.rs:40:2 [INFO] [stdout] | [INFO] [stdout] 40 | create_dir_all(cache_dir.as_path()); [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: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 24.73s [INFO] running `Command { std: "docker" "inspect" "f23e797906c65c79b6912a554b6f65babf0f13073b0577666779200355b7c404", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f23e797906c65c79b6912a554b6f65babf0f13073b0577666779200355b7c404", kill_on_drop: false }` [INFO] [stdout] f23e797906c65c79b6912a554b6f65babf0f13073b0577666779200355b7c404 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", 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] 56530cd24f8ee7d78706cf26831e1d663cefb310f3a71a088a044e335b2404e0 [INFO] running `Command { std: "docker" "start" "-a" "56530cd24f8ee7d78706cf26831e1d663cefb310f3a71a088a044e335b2404e0", kill_on_drop: false }` [INFO] [stderr] Compiling neurocr v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/mnistfiles.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fn` [INFO] [stdout] --> src/network.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | use std::ops::{Add, Mul, Fn}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/network.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut der = (&outputs[n-1] - expected_output); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - let mut der = (&outputs[n-1] - expected_output); [INFO] [stdout] 195 + let mut der = &outputs[n-1] - expected_output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env::home_dir; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | match home_dir() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | match home_dir() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math.rs:24:54 [INFO] [stdout] | [INFO] [stdout] 24 | fn minimize(subject: &Functional, [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - fn minimize(subject: &Functional, [INFO] [stdout] 24 + fn minimize(subject: &dyn Functional, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | ... on_new: &Fn(&VectorType) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - on_new: &Fn(&VectorType) -> bool, [INFO] [stdout] 27 + on_new: &dyn Fn(&VectorType) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignored` [INFO] [stdout] --> src/network.rs:76:61 [INFO] [stdout] | [INFO] [stdout] 76 | biases: Vector::zeros(num_neurons) .apply(&(|ignored| generator())), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignored` [INFO] [stdout] --> src/network.rs:77:61 [INFO] [stdout] | [INFO] [stdout] 77 | weights: Matrix::zeros(num_neurons, num_inputs).apply(&(|ignored| generator())) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/network.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | let n = data.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let mut value: ScalarType = subject.eval(&estimation); [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 is never used: `random` [INFO] [stdout] --> src/network.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn random() -> T where T: Float + Rand { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minimize` [INFO] [stdout] --> src/math.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn minimize(subject: &Functional, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mnistfiles.rs:40:2 [INFO] [stdout] | [INFO] [stdout] 40 | create_dir_all(cache_dir.as_path()); [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: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::vec::Vec` [INFO] [stdout] --> src/mnistfiles.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::vec::Vec; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Fn` [INFO] [stdout] --> src/network.rs:18:26 [INFO] [stdout] | [INFO] [stdout] 18 | use std::ops::{Add, Mul, Fn}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/network.rs:195:17 [INFO] [stdout] | [INFO] [stdout] 195 | let mut der = (&outputs[n-1] - expected_output); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 195 - let mut der = (&outputs[n-1] - expected_output); [INFO] [stdout] 195 + let mut der = &outputs[n-1] - expected_output; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/network.rs:500:2 [INFO] [stdout] | [INFO] [stdout] 500 | /// let us teach network to differ horizontal from vertial lines on 2-by-2 image [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/network.rs:526:2 [INFO] [stdout] | [INFO] [stdout] 526 | /// let us teach network to differ horizontal from vertial lines on 2-by-2 image [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/network.rs:561:2 [INFO] [stdout] | [INFO] [stdout] 561 | /// let us teach network to differ horizontal from vertial lines on 2-by-2 image [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stdout] | [INFO] [stdout] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:6:15 [INFO] [stdout] | [INFO] [stdout] 6 | use std::env::home_dir; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | match home_dir() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/mnistfiles.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | match home_dir() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math.rs:24:54 [INFO] [stdout] | [INFO] [stdout] 24 | fn minimize(subject: &Functional, [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 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 - fn minimize(subject: &Functional, [INFO] [stdout] 24 + fn minimize(subject: &dyn Functional, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/math.rs:27:48 [INFO] [stdout] | [INFO] [stdout] 27 | ... on_new: &Fn(&VectorType) -> bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 27 - on_new: &Fn(&VectorType) -> bool, [INFO] [stdout] 27 + on_new: &dyn Fn(&VectorType) -> bool, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignored` [INFO] [stdout] --> src/network.rs:76:61 [INFO] [stdout] | [INFO] [stdout] 76 | biases: Vector::zeros(num_neurons) .apply(&(|ignored| generator())), [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ignored` [INFO] [stdout] --> src/network.rs:77:61 [INFO] [stdout] | [INFO] [stdout] 77 | weights: Matrix::zeros(num_neurons, num_inputs).apply(&(|ignored| generator())) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/network.rs:272:7 [INFO] [stdout] | [INFO] [stdout] 272 | let n = data.len(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/math.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let mut value: ScalarType = subject.eval(&estimation); [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 is never used: `test_sigmoid` [INFO] [stdout] --> src/network.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn test_sigmoid() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `random` [INFO] [stdout] --> src/network.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn random() -> T where T: Float + Rand { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `asses_quality` [INFO] [stdout] --> src/network.rs:549:4 [INFO] [stdout] | [INFO] [stdout] 549 | fn asses_quality(network: Network, data: Vec>) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `minimize` [INFO] [stdout] --> src/math.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn minimize(subject: &Functional, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/network.rs:453:18 [INFO] [stdout] | [INFO] [stdout] 453 | assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 453 - assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stdout] 453 + assert!(false, "{:?} (left: {:?}, right: {:?})", message, left, right); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/network.rs:462:18 [INFO] [stdout] | [INFO] [stdout] 462 | assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 462 - assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stdout] 462 + assert!(false, "{:?} (left: {:?}, right: {:?})", message, left, right); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/mnistfiles.rs:40:2 [INFO] [stdout] | [INFO] [stdout] 40 | create_dir_all(cache_dir.as_path()); [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: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.53s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/neurocr-92685c96e2f90a00) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/neurocr-44feb611c9750375) [INFO] running `Command { std: "docker" "inspect" "56530cd24f8ee7d78706cf26831e1d663cefb310f3a71a088a044e335b2404e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56530cd24f8ee7d78706cf26831e1d663cefb310f3a71a088a044e335b2404e0", kill_on_drop: false }` [INFO] [stdout] 56530cd24f8ee7d78706cf26831e1d663cefb310f3a71a088a044e335b2404e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", 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] 48be15a5418cfcc7fd582e9d771269cc0af7e60171814ec0cd5d2ba28faeec59 [INFO] running `Command { std: "docker" "start" "-a" "48be15a5418cfcc7fd582e9d771269cc0af7e60171814ec0cd5d2ba28faeec59", kill_on_drop: false }` [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::vec::Vec` [INFO] [stderr] --> src/mnistfiles.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::vec::Vec; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Fn` [INFO] [stderr] --> src/network.rs:18:26 [INFO] [stderr] | [INFO] [stderr] 18 | use std::ops::{Add, Mul, Fn}; [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> src/network.rs:195:17 [INFO] [stderr] | [INFO] [stderr] 195 | let mut der = (&outputs[n-1] - expected_output); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 195 - let mut der = (&outputs[n-1] - expected_output); [INFO] [stderr] 195 + let mut der = &outputs[n-1] - expected_output; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stderr] --> src/mnistfiles.rs:6:15 [INFO] [stderr] | [INFO] [stderr] 6 | use std::env::home_dir; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stderr] --> src/mnistfiles.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | match home_dir() { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stderr] --> src/mnistfiles.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | match home_dir() { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/math.rs:24:54 [INFO] [stderr] | [INFO] [stderr] 24 | fn minimize(subject: &Functional, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 24 - fn minimize(subject: &Functional, [INFO] [stderr] 24 + fn minimize(subject: &dyn Functional, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/math.rs:27:48 [INFO] [stderr] | [INFO] [stderr] 27 | ... on_new: &Fn(&VectorType) -> bool, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 27 - on_new: &Fn(&VectorType) -> bool, [INFO] [stderr] 27 + on_new: &dyn Fn(&VectorType) -> bool, [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ignored` [INFO] [stderr] --> src/network.rs:76:61 [INFO] [stderr] | [INFO] [stderr] 76 | biases: Vector::zeros(num_neurons) .apply(&(|ignored| generator())), [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ignored` [INFO] [stderr] --> src/network.rs:77:61 [INFO] [stderr] | [INFO] [stderr] 77 | weights: Matrix::zeros(num_neurons, num_inputs).apply(&(|ignored| generator())) [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ignored` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `n` [INFO] [stderr] --> src/network.rs:272:7 [INFO] [stderr] | [INFO] [stderr] 272 | let n = data.len(); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/math.rs:41:7 [INFO] [stderr] | [INFO] [stderr] 41 | let mut value: ScalarType = subject.eval(&estimation); [INFO] [stderr] | ----^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `random` [INFO] [stderr] --> src/network.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | fn random() -> T where T: Float + Rand { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `minimize` [INFO] [stderr] --> src/math.rs:24:4 [INFO] [stderr] | [INFO] [stderr] 24 | fn minimize(subject: &Functional, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/mnistfiles.rs:40:2 [INFO] [stderr] | [INFO] [stderr] 40 | create_dir_all(cache_dir.as_path()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::vec::Vec` [INFO] [stderr] --> src/mnistfiles.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use std::vec::Vec; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/network.rs:500:2 [INFO] [stderr] | [INFO] [stderr] 500 | /// let us teach network to differ horizontal from vertial lines on 2-by-2 image [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/network.rs:526:2 [INFO] [stderr] | [INFO] [stderr] 526 | /// let us teach network to differ horizontal from vertial lines on 2-by-2 image [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: unused doc comment [INFO] [stderr] --> src/network.rs:561:2 [INFO] [stderr] | [INFO] [stderr] 561 | /// let us teach network to differ horizontal from vertial lines on 2-by-2 image [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations [INFO] [stderr] | [INFO] [stderr] = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion [INFO] [stderr] [INFO] [stderr] warning: function is never used: `test_sigmoid` [INFO] [stderr] --> src/network.rs:39:4 [INFO] [stderr] | [INFO] [stderr] 39 | fn test_sigmoid() { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `random` [INFO] [stderr] --> src/network.rs:61:4 [INFO] [stderr] | [INFO] [stderr] 61 | fn random() -> T where T: Float + Rand { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `asses_quality` [INFO] [stderr] --> src/network.rs:549:4 [INFO] [stderr] | [INFO] [stderr] 549 | fn asses_quality(network: Network, data: Vec>) -> f32 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/network.rs:453:18 [INFO] [stderr] | [INFO] [stderr] 453 | assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 453 - assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stderr] 453 + assert!(false, "{:?} (left: {:?}, right: {:?})", message, left, right); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> src/network.rs:462:18 [INFO] [stderr] | [INFO] [stderr] 462 | assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of assert!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: the assert!() macro supports formatting, so there's no need for the format!() macro here [INFO] [stderr] help: remove the `format!(..)` macro call [INFO] [stderr] | [INFO] [stderr] 462 - assert!(false, format!("{:?} (left: {:?}, right: {:?})", message, left, right)); [INFO] [stderr] 462 + assert!(false, "{:?} (left: {:?}, right: {:?})", message, left, right); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `neurocr` (lib) generated 16 warnings [INFO] [stderr] warning: `neurocr` (lib test) generated 22 warnings (13 duplicates) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/neurocr-92685c96e2f90a00) [INFO] [stdout] running 6 tests [INFO] [stdout] test network::test_batch_grad ... ok [INFO] [stdout] test network::init ... ok [INFO] [stdout] test network::test_sampe_grad ... ok [INFO] [stdout] test network::test_eval ... ok [INFO] [stdout] test network::test_eval_layers ... ok [INFO] [stdout] test network::test_learning ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.47s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/neurocr-44feb611c9750375) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests neurocr [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> /opt/rustwide/workdir/src/network.rs:195:17 [INFO] [stderr] | [INFO] [stderr] 195 | let mut der = (&outputs[n-1] - expected_output); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 195 - let mut der = (&outputs[n-1] - expected_output); [INFO] [stderr] 195 + let mut der = &outputs[n-1] - expected_output; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "48be15a5418cfcc7fd582e9d771269cc0af7e60171814ec0cd5d2ba28faeec59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48be15a5418cfcc7fd582e9d771269cc0af7e60171814ec0cd5d2ba28faeec59", kill_on_drop: false }` [INFO] [stdout] 48be15a5418cfcc7fd582e9d771269cc0af7e60171814ec0cd5d2ba28faeec59