[INFO] cloning repository https://github.com/wolfandreh/mnist-digit-recognition-in-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wolfandreh/mnist-digit-recognition-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwolfandreh%2Fmnist-digit-recognition-in-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwolfandreh%2Fmnist-digit-recognition-in-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdbb50fd91df2be4d23620cfce14c1bcb7be6b2d
[INFO] testing wolfandreh/mnist-digit-recognition-in-rust against 1.75.0 for beta-1.76-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwolfandreh%2Fmnist-digit-recognition-in-rust" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/wolfandreh/mnist-digit-recognition-in-rust on toolchain 1.75.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/wolfandreh/mnist-digit-recognition-in-rust
[INFO] finished tweaking git repo https://github.com/wolfandreh/mnist-digit-recognition-in-rust
[INFO] tweaked toml for git repo https://github.com/wolfandreh/mnist-digit-recognition-in-rust written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/wolfandreh/mnist-digit-recognition-in-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.75.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded mnist v0.4.1
[INFO] [stderr]   Downloaded savefile-derive v0.8.1
[INFO] [stderr]   Downloaded mindtree_utils v0.4.0
[INFO] [stderr]   Downloaded savefile v0.8.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 69486a4d5db9cac3f9fa5a2bc40f2f902c4fee87ed7446b01f848057e5b95b9a
[INFO] running `Command { std: "docker" "start" "-a" "69486a4d5db9cac3f9fa5a2bc40f2f902c4fee87ed7446b01f848057e5b95b9a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "69486a4d5db9cac3f9fa5a2bc40f2f902c4fee87ed7446b01f848057e5b95b9a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "69486a4d5db9cac3f9fa5a2bc40f2f902c4fee87ed7446b01f848057e5b95b9a", kill_on_drop: false }`
[INFO] [stdout] 69486a4d5db9cac3f9fa5a2bc40f2f902c4fee87ed7446b01f848057e5b95b9a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] b73ba87cc2ba2f606d9b2328c911ccd7ccb4df26762375adb8cf6399457cb629
[INFO] running `Command { std: "docker" "start" "-a" "b73ba87cc2ba2f606d9b2328c911ccd7ccb4df26762375adb8cf6399457cb629", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling libc v0.2.95
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling scopeguard v1.1.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.5
[INFO] [stderr]    Compiling cc v1.0.68
[INFO] [stderr]    Compiling rand_core v0.4.2
[INFO] [stderr]    Compiling autocfg v0.1.7
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.5
[INFO] [stderr]    Compiling rayon-core v1.9.1
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling proc-macro2 v0.4.30
[INFO] [stderr]    Compiling pkg-config v0.3.19
[INFO] [stderr]    Compiling rustc-serialize v0.3.24
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling memoffset v0.6.4
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling num_cpus v1.13.0
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling rayon v1.5.1
[INFO] [stderr]    Compiling crossbeam-channel v0.5.1
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling byteorder v1.4.3
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling bzip2-sys v0.1.11+1.0.8
[INFO] [stderr]    Compiling crossbeam-deque v0.8.0
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling miniz_oxide v0.4.4
[INFO] [stderr]    Compiling either v1.6.1
[INFO] [stderr]    Compiling crc32fast v1.2.1
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]    Compiling adler32 v1.2.0
[INFO] [stderr]    Compiling unicode-xid v0.1.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling num-bigint v0.1.44
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]    Compiling indexmap v1.7.0
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling adler v1.0.2
[INFO] [stderr]    Compiling smallvec v1.6.1
[INFO] [stderr]    Compiling weezl v0.1.5
[INFO] [stderr]    Compiling cfg-if v0.1.10
[INFO] [stderr]    Compiling ppv-lite86 v0.2.10
[INFO] [stderr]    Compiling parking_lot_core v0.7.2
[INFO] [stderr]    Compiling num-rational v0.1.42
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling savefile v0.8.1
[INFO] [stderr]    Compiling quote v0.6.13
[INFO] [stderr]    Compiling miniz_oxide v0.3.7
[INFO] [stderr]    Compiling deflate v0.8.6
[INFO] [stderr]    Compiling num-complex v0.1.43
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling lock_api v0.3.4
[INFO] [stderr]    Compiling jpeg-decoder v0.1.22
[INFO] [stderr]    Compiling untrusted v0.7.1
[INFO] [stderr]    Compiling rawpointer v0.2.1
[INFO] [stderr]    Compiling color_quant v1.1.0
[INFO] [stderr]    Compiling once_cell v1.8.0
[INFO] [stderr]    Compiling hashbrown v0.11.2
[INFO] [stderr]    Compiling spin v0.5.2
[INFO] [stderr]    Compiling num v0.1.42
[INFO] [stderr]    Compiling png v0.16.8
[INFO] [stderr]    Compiling gif v0.11.2
[INFO] [stderr]    Compiling matrixmultiply v0.3.1
[INFO] [stderr]    Compiling tiff v0.6.1
[INFO] [stderr]    Compiling parking_lot v0.10.2
[INFO] [stderr]    Compiling syn v0.14.9
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling bzip2 v0.3.3
[INFO] [stderr]    Compiling num-complex v0.4.0
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling bytemuck v1.5.1
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling arrayvec v0.5.2
[INFO] [stderr]    Compiling bit-vec v0.6.3
[INFO] [stderr]    Compiling image v0.23.14
[INFO] [stderr]    Compiling mindtree_utils v0.4.0
[INFO] [stderr]    Compiling ndarray v0.15.3
[INFO] [stderr]    Compiling mnist v0.4.1
[INFO] [stderr]    Compiling savefile-derive v0.8.1
[INFO] [stderr]    Compiling imagerecognizer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher`
[INFO] [stdout]  --> src/network.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::hash_map::DefaultHasher;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr::hash`
[INFO] [stdout]  --> src/network.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ptr::hash;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BigEndian`, `ReadBytesExt`
[INFO] [stdout]  --> src/io.rs:8:17
[INFO] [stdout]   |
[INFO] [stdout] 8 | use byteorder::{BigEndian, ReadBytesExt};
[INFO] [stdout]   |                 ^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::TryInto`
[INFO] [stdout]  --> src/io.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::convert::TryInto;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/network.rs:40:17
[INFO] [stdout]    |
[INFO] [stdout] 40 |         let mut n = 0;
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/network.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 |             for i in 0..*size {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/network.rs:40:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |         let mut n = 0;
[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: unused variable: `i`
[INFO] [stdout]   --> src/network.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |             for i in 0..*x {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]   --> src/network.rs:73:21
[INFO] [stdout]    |
[INFO] [stdout] 73 |                 for j in 0..*y {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/network.rs:97:13
[INFO] [stdout]    |
[INFO] [stdout] 97 |         let n = training_data.len();
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/network.rs:112:17
[INFO] [stdout]     |
[INFO] [stdout] 112 |             for i in 0..*mini_batch_size {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/network.rs:90:9
[INFO] [stdout]    |
[INFO] [stdout] 90 |         mut training_data: &Vec<Vec<Vec<f64>>>,
[INFO] [stdout]    |         ----^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_ele`
[INFO] [stdout]    --> src/network.rs:437:13
[INFO] [stdout]     |
[INFO] [stdout] 437 |     let mut max_ele: f64;
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_ele`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/network.rs:441:13
[INFO] [stdout]     |
[INFO] [stdout] 441 |         let mut next: usize;
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vec_width`
[INFO] [stdout]    --> src/io.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |     let vec_width = input.len() / image_len;
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vec_width`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/io.rs:113:9
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let mut target_vec: Vec<Vec<f64>> = input.chunks(image_len)
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_option` is never used
[INFO] [stdout]    --> src/network.rs:354:4
[INFO] [stdout]     |
[INFO] [stdout] 354 | fn check_option(o: Option<&f64>) -> f64{
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `subtract_vec` is never used
[INFO] [stdout]    --> src/network.rs:418:4
[INFO] [stdout]     |
[INFO] [stdout] 418 | fn subtract_vec(a: &Vec<f64>, b: &Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sig` is never used
[INFO] [stdout]    --> src/network.rs:468:4
[INFO] [stdout]     |
[INFO] [stdout] 468 | fn sig(x: f64) -> f64 {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `train_array_2d`, `train_label`, `validation_array_2d`, `validation_label`, `test_array_2d`, and `test_label` are never read
[INFO] [stdout]   --> src/io.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct TrainData {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 41 |     train_array_2d: Vec<Vec<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 42 |     train_label: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 43 |     pub training_data: Vec<Vec<Vec<f64>>>,
[INFO] [stdout] 44 |     validation_array_2d: Vec<Vec<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 45 |     validation_label: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 46 |     pub validation_data: Vec<(Vec<f64>, i32)>,
[INFO] [stdout] 47 |     test_array_2d: Vec<Vec<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 48 |     test_label: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pack_images` is never used
[INFO] [stdout]   --> src/io.rs:90:4
[INFO] [stdout]    |
[INFO] [stdout] 90 | fn pack_images(input_vector: Vec<u8>, rows: u8, cols: u8) -> Array2<f64> {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 21 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 24.38s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24, syn v0.14.9
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "b73ba87cc2ba2f606d9b2328c911ccd7ccb4df26762375adb8cf6399457cb629", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b73ba87cc2ba2f606d9b2328c911ccd7ccb4df26762375adb8cf6399457cb629", kill_on_drop: false }`
[INFO] [stdout] b73ba87cc2ba2f606d9b2328c911ccd7ccb4df26762375adb8cf6399457cb629
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 62e1df2503515227a679ce2885bb28db9c147475cd2b7ca01ed96ec6ef3fca84
[INFO] running `Command { std: "docker" "start" "-a" "62e1df2503515227a679ce2885bb28db9c147475cd2b7ca01ed96ec6ef3fca84", kill_on_drop: false }`
[INFO] [stderr]    Compiling imagerecognizer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::hash_map::DefaultHasher`
[INFO] [stdout]  --> src/network.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::hash_map::DefaultHasher;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ptr::hash`
[INFO] [stdout]  --> src/network.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::ptr::hash;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BigEndian`, `ReadBytesExt`
[INFO] [stdout]  --> src/io.rs:8:17
[INFO] [stdout]   |
[INFO] [stdout] 8 | use byteorder::{BigEndian, ReadBytesExt};
[INFO] [stdout]   |                 ^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::convert::TryInto`
[INFO] [stdout]  --> src/io.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use std::convert::TryInto;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/network.rs:40:17
[INFO] [stdout]    |
[INFO] [stdout] 40 |         let mut n = 0;
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/network.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 |             for i in 0..*size {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/network.rs:40:13
[INFO] [stdout]    |
[INFO] [stdout] 40 |         let mut n = 0;
[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: unused variable: `i`
[INFO] [stdout]   --> src/network.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |             for i in 0..*x {
[INFO] [stdout]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]   --> src/network.rs:73:21
[INFO] [stdout]    |
[INFO] [stdout] 73 |                 for j in 0..*y {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]   --> src/network.rs:97:13
[INFO] [stdout]    |
[INFO] [stdout] 97 |         let n = training_data.len();
[INFO] [stdout]    |             ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/network.rs:112:17
[INFO] [stdout]     |
[INFO] [stdout] 112 |             for i in 0..*mini_batch_size {
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/network.rs:90:9
[INFO] [stdout]    |
[INFO] [stdout] 90 |         mut training_data: &Vec<Vec<Vec<f64>>>,
[INFO] [stdout]    |         ----^^^^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `max_ele`
[INFO] [stdout]    --> src/network.rs:437:13
[INFO] [stdout]     |
[INFO] [stdout] 437 |     let mut max_ele: f64;
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_ele`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/network.rs:441:13
[INFO] [stdout]     |
[INFO] [stdout] 441 |         let mut next: usize;
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vec_width`
[INFO] [stdout]    --> src/io.rs:112:9
[INFO] [stdout]     |
[INFO] [stdout] 112 |     let vec_width = input.len() / image_len;
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vec_width`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/io.rs:113:9
[INFO] [stdout]     |
[INFO] [stdout] 113 |     let mut target_vec: Vec<Vec<f64>> = input.chunks(image_len)
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `check_option` is never used
[INFO] [stdout]    --> src/network.rs:354:4
[INFO] [stdout]     |
[INFO] [stdout] 354 | fn check_option(o: Option<&f64>) -> f64{
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `subtract_vec` is never used
[INFO] [stdout]    --> src/network.rs:418:4
[INFO] [stdout]     |
[INFO] [stdout] 418 | fn subtract_vec(a: &Vec<f64>, b: &Vec<f64>) -> Vec<f64> {
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `sig` is never used
[INFO] [stdout]    --> src/network.rs:468:4
[INFO] [stdout]     |
[INFO] [stdout] 468 | fn sig(x: f64) -> f64 {
[INFO] [stdout]     |    ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `train_array_2d`, `train_label`, `validation_array_2d`, `validation_label`, `test_array_2d`, and `test_label` are never read
[INFO] [stdout]   --> src/io.rs:41:5
[INFO] [stdout]    |
[INFO] [stdout] 40 | pub struct TrainData {
[INFO] [stdout]    |            --------- fields in this struct
[INFO] [stdout] 41 |     train_array_2d: Vec<Vec<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^
[INFO] [stdout] 42 |     train_label: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^
[INFO] [stdout] 43 |     pub training_data: Vec<Vec<Vec<f64>>>,
[INFO] [stdout] 44 |     validation_array_2d: Vec<Vec<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 45 |     validation_label: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 46 |     pub validation_data: Vec<(Vec<f64>, i32)>,
[INFO] [stdout] 47 |     test_array_2d: Vec<Vec<f64>>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 48 |     test_label: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `pack_images` is never used
[INFO] [stdout]   --> src/io.rs:90:4
[INFO] [stdout]    |
[INFO] [stdout] 90 | fn pack_images(input_vector: Vec<u8>, rows: u8, cols: u8) -> Array2<f64> {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 21 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.57s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24, syn v0.14.9
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "62e1df2503515227a679ce2885bb28db9c147475cd2b7ca01ed96ec6ef3fca84", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "62e1df2503515227a679ce2885bb28db9c147475cd2b7ca01ed96ec6ef3fca84", kill_on_drop: false }`
[INFO] [stdout] 62e1df2503515227a679ce2885bb28db9c147475cd2b7ca01ed96ec6ef3fca84
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.75.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] e22043006e9239221a6e16ad86c5cc26519b43ee57f2928d6c1fe1fbf73b2b26
[INFO] running `Command { std: "docker" "start" "-a" "e22043006e9239221a6e16ad86c5cc26519b43ee57f2928d6c1fe1fbf73b2b26", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::collections::hash_map::DefaultHasher`
[INFO] [stderr]  --> src/network.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::collections::hash_map::DefaultHasher;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::ptr::hash`
[INFO] [stderr]  --> src/network.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::ptr::hash;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `BigEndian`, `ReadBytesExt`
[INFO] [stderr]  --> src/io.rs:8:17
[INFO] [stderr]   |
[INFO] [stderr] 8 | use byteorder::{BigEndian, ReadBytesExt};
[INFO] [stderr]   |                 ^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::convert::TryInto`
[INFO] [stderr]  --> src/io.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use std::convert::TryInto;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `n`
[INFO] [stderr]   --> src/network.rs:40:17
[INFO] [stderr]    |
[INFO] [stderr] 40 |         let mut n = 0;
[INFO] [stderr]    |                 ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `i`
[INFO] [stderr]   --> src/network.rs:44:17
[INFO] [stderr]    |
[INFO] [stderr] 44 |             for i in 0..*size {
[INFO] [stderr]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/network.rs:40:13
[INFO] [stderr]    |
[INFO] [stderr] 40 |         let mut n = 0;
[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: unused variable: `i`
[INFO] [stderr]   --> src/network.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |             for i in 0..*x {
[INFO] [stderr]    |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `j`
[INFO] [stderr]   --> src/network.rs:73:21
[INFO] [stderr]    |
[INFO] [stderr] 73 |                 for j in 0..*y {
[INFO] [stderr]    |                     ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `n`
[INFO] [stderr]   --> src/network.rs:97:13
[INFO] [stderr]    |
[INFO] [stderr] 97 |         let n = training_data.len();
[INFO] [stderr]    |             ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `i`
[INFO] [stderr]    --> src/network.rs:112:17
[INFO] [stderr]     |
[INFO] [stderr] 112 |             for i in 0..*mini_batch_size {
[INFO] [stderr]     |                 ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/network.rs:90:9
[INFO] [stderr]    |
[INFO] [stderr] 90 |         mut training_data: &Vec<Vec<Vec<f64>>>,
[INFO] [stderr]    |         ----^^^^^^^^^^^^^
[INFO] [stderr]    |         |
[INFO] [stderr]    |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `max_ele`
[INFO] [stderr]    --> src/network.rs:437:13
[INFO] [stderr]     |
[INFO] [stderr] 437 |     let mut max_ele: f64;
[INFO] [stderr]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_ele`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/network.rs:441:13
[INFO] [stderr]     |
[INFO] [stderr] 441 |         let mut next: usize;
[INFO] [stderr]     |             ----^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `vec_width`
[INFO] [stderr]    --> src/io.rs:112:9
[INFO] [stderr]     |
[INFO] [stderr] 112 |     let vec_width = input.len() / image_len;
[INFO] [stderr]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vec_width`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/io.rs:113:9
[INFO] [stderr]     |
[INFO] [stderr] 113 |     let mut target_vec: Vec<Vec<f64>> = input.chunks(image_len)
[INFO] [stderr]     |         ----^^^^^^^^^^
[INFO] [stderr]     |         |
[INFO] [stderr]     |         help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: function `check_option` is never used
[INFO] [stderr]    --> src/network.rs:354:4
[INFO] [stderr]     |
[INFO] [stderr] 354 | fn check_option(o: Option<&f64>) -> f64{
[INFO] [stderr]     |    ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `subtract_vec` is never used
[INFO] [stderr]    --> src/network.rs:418:4
[INFO] [stderr]     |
[INFO] [stderr] 418 | fn subtract_vec(a: &Vec<f64>, b: &Vec<f64>) -> Vec<f64> {
[INFO] [stderr]     |    ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `sig` is never used
[INFO] [stderr]    --> src/network.rs:468:4
[INFO] [stderr]     |
[INFO] [stderr] 468 | fn sig(x: f64) -> f64 {
[INFO] [stderr]     |    ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `train_array_2d`, `train_label`, `validation_array_2d`, `validation_label`, `test_array_2d`, and `test_label` are never read
[INFO] [stderr]   --> src/io.rs:41:5
[INFO] [stderr]    |
[INFO] [stderr] 40 | pub struct TrainData {
[INFO] [stderr]    |            --------- fields in this struct
[INFO] [stderr] 41 |     train_array_2d: Vec<Vec<f64>>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^
[INFO] [stderr] 42 |     train_label: Vec<u8>,
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 43 |     pub training_data: Vec<Vec<Vec<f64>>>,
[INFO] [stderr] 44 |     validation_array_2d: Vec<Vec<f64>>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 45 |     validation_label: Vec<u8>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 46 |     pub validation_data: Vec<(Vec<f64>, i32)>,
[INFO] [stderr] 47 |     test_array_2d: Vec<Vec<f64>>,
[INFO] [stderr]    |     ^^^^^^^^^^^^^
[INFO] [stderr] 48 |     test_label: Vec<u8>,
[INFO] [stderr]    |     ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `pack_images` is never used
[INFO] [stderr]   --> src/io.rs:90:4
[INFO] [stderr]    |
[INFO] [stderr] 90 | fn pack_images(input_vector: Vec<u8>, rows: u8, cols: u8) -> Array2<f64> {
[INFO] [stderr]    |    ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `imagerecognizer` (bin "imagerecognizer" test) generated 21 warnings (run `cargo fix --bin "imagerecognizer" --tests` to apply 16 suggestions)
[INFO] [stderr]     Finished test [unoptimized + debuginfo] target(s) in 0.08s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: rustc-serialize v0.3.24, syn v0.14.9
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/imagerecognizer-b2af5ca498990088)
[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" "e22043006e9239221a6e16ad86c5cc26519b43ee57f2928d6c1fe1fbf73b2b26", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e22043006e9239221a6e16ad86c5cc26519b43ee57f2928d6c1fe1fbf73b2b26", kill_on_drop: false }`
[INFO] [stdout] e22043006e9239221a6e16ad86c5cc26519b43ee57f2928d6c1fe1fbf73b2b26
