[INFO] cloning repository https://github.com/SkyZH/mnist.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SkyZH/mnist.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSkyZH%2Fmnist.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSkyZH%2Fmnist.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 70b95e47ea15cbbfe2d7ba45bde0fc64a17971fa [INFO] checking SkyZH/mnist.rs/70b95e47ea15cbbfe2d7ba45bde0fc64a17971fa against master#82dd3cb008233bfe50ba6b8d6618e6bbd6054eb1 for pr-150408 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSkyZH%2Fmnist.rs" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SkyZH/mnist.rs [INFO] finished tweaking git repo https://github.com/SkyZH/mnist.rs [INFO] tweaked toml for git repo https://github.com/SkyZH/mnist.rs written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SkyZH/mnist.rs on toolchain 82dd3cb008233bfe50ba6b8d6618e6bbd6054eb1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82dd3cb008233bfe50ba6b8d6618e6bbd6054eb1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SkyZH/mnist.rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82dd3cb008233bfe50ba6b8d6618e6bbd6054eb1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded autocfg v0.1.5 [INFO] [stderr] Downloaded mnist v0.4.0 [INFO] [stderr] Downloaded libc v0.2.60 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+82dd3cb008233bfe50ba6b8d6618e6bbd6054eb1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f04f55e0de103a0404b6491729a0703bc9f0f17ad2a7475731812eb61509d55d [INFO] running `Command { std: "docker" "start" "-a" "f04f55e0de103a0404b6491729a0703bc9f0f17ad2a7475731812eb61509d55d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f04f55e0de103a0404b6491729a0703bc9f0f17ad2a7475731812eb61509d55d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f04f55e0de103a0404b6491729a0703bc9f0f17ad2a7475731812eb61509d55d", kill_on_drop: false }` [INFO] [stdout] f04f55e0de103a0404b6491729a0703bc9f0f17ad2a7475731812eb61509d55d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+82dd3cb008233bfe50ba6b8d6618e6bbd6054eb1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1e1c1a11b85892ea15cc20df237551db478a29fcd08cf6cc50d897cd22c0ee6 [INFO] running `Command { std: "docker" "start" "-a" "c1e1c1a11b85892ea15cc20df237551db478a29fcd08cf6cc50d897cd22c0ee6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Checking spin v0.5.0 [INFO] [stderr] Checking ppv-lite86 v0.2.5 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling rand_chacha v0.2.0 [INFO] [stderr] Checking c2-chacha v0.2.2 [INFO] [stderr] Checking mnist v0.4.0 [INFO] [stderr] Checking getrandom v0.1.6 [INFO] [stderr] Checking rand_core v0.5.0 [INFO] [stderr] Checking rand v0.7.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rulinalg v0.4.2 [INFO] [stderr] Checking mnist-deep-learning v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseMatrix` and `Matrix` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | matrix::{BaseMatrix, Matrix}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseMatrix` and `Matrix` [INFO] [stdout] --> src/main.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | matrix::{BaseMatrix, Matrix}, [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:4:25 [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub layers: Vec> [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/network/network.rs:24:32 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [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: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(layers: Vec>) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cost` is never used [INFO] [stdout] --> src/network/cost.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Cost { [INFO] [stdout] | ---- method in this trait [INFO] [stdout] 4 | fn cost(&self, output: &Vector, sample: &Vector) -> f64; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_test` is never used [INFO] [stdout] --> src/network/network.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Network { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 16 | pub fn new_test() -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data`, `rows`, `cols`, and `pixels` are never read [INFO] [stdout] --> src/dataset.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Dataset { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | data: Mnist, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub rows: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub cols: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub pixels: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `data`, `rows`, `cols`, and `pixels` are never read [INFO] [stdout] --> src/dataset.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Dataset { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 5 | data: Mnist, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub rows: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub cols: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub pixels: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.10s [INFO] running `Command { std: "docker" "inspect" "c1e1c1a11b85892ea15cc20df237551db478a29fcd08cf6cc50d897cd22c0ee6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1e1c1a11b85892ea15cc20df237551db478a29fcd08cf6cc50d897cd22c0ee6", kill_on_drop: false }` [INFO] [stdout] c1e1c1a11b85892ea15cc20df237551db478a29fcd08cf6cc50d897cd22c0ee6