[INFO] fetching crate rail 0.3.1...
[INFO] testing rail-0.3.1 against 1.100.0-beta.1 for beta-1.100-2
[INFO] extracting crate rail 0.3.1 into /workspace/builds/worker-1-tc2/source
[INFO] started tweaking crates.io crate rail 0.3.1
[INFO] finished tweaking crates.io crate rail 0.3.1
[INFO] tweaked toml for crates.io crate rail 0.3.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate rail 0.3.1 on toolchain 1.100.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 44 packages to highest compatible versions
[INFO] [stderr]       Adding rand v0.6.5 (available: v0.10.3)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.100.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5
[INFO] running `Command { std: "docker" "start" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v0.1.8
[INFO] [stderr]    Compiling rand_core v0.4.3
[INFO] [stderr]    Compiling proc-macro2 v1.0.107
[INFO] [stderr]    Compiling quote v1.0.47
[INFO] [stderr]    Compiling num-bigint v0.2.6
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling serde v1.0.229
[INFO] [stderr]    Compiling num-rational v0.2.4
[INFO] [stderr]    Compiling num-complex v0.2.4
[INFO] [stderr]    Compiling serde_core v1.0.229
[INFO] [stderr]    Compiling zmij v1.0.23
[INFO] [stderr]    Compiling itoa v1.0.18
[INFO] [stderr]    Compiling half v1.8.3
[INFO] [stderr]    Compiling num-iter v0.1.46
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling rand_core v0.3.2
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling syn v3.0.6
[INFO] [stderr]    Compiling num v0.2.1
[INFO] [stderr]    Compiling serde_json v1.0.151
[INFO] [stderr]    Compiling serde_derive v1.0.229
[INFO] [stderr]    Compiling arrayfire v3.8.0
[INFO] [stderr]    Compiling rail v0.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `print_gen`
[INFO] [stdout]  --> src/layers/dense.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     print_gen
[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 import: `print_gen`
[INFO] [stdout]  --> src/layers/conv.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     print_gen
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]   --> src/layers/activations.rs:52:18
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout]    |                  ^                           ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 52 -         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout] 52 +         .map(|_| normal.sample(&mut rng) * c)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]   --> src/layers/activations.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 56 |         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout]    |                  ^                           ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 56 -         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout] 56 +         .map(|_| normal.sample(&mut rng) * c)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub type LossFuntion = Fn(&Matrix, &Matrix) -> f64;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[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] 2 | pub type LossFuntion = dyn Fn(&Matrix, &Matrix) -> f64;
[INFO] [stdout]   |                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub type DLossFuntion = Fn(&Matrix, &Matrix) -> Matrix;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub type DLossFuntion = dyn Fn(&Matrix, &Matrix) -> Matrix;
[INFO] [stdout]   |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:4:33
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub type LossFuntionGenerator = Fn() -> (Box<LossFuntion>, Box<DLossFuntion>);
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub type LossFuntionGenerator = dyn Fn() -> (Box<LossFuntion>, Box<DLossFuntion>);
[INFO] [stdout]   |                                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/dense.rs:18:21
[INFO] [stdout]    |
[INFO] [stdout] 18 |     activation: Box<Fn(Matrix) -> Matrix>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 |     activation: Box<dyn Fn(Matrix) -> Matrix>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/dense.rs:19:22
[INFO] [stdout]    |
[INFO] [stdout] 19 |     dactivation: Box<Fn(Matrix) -> Matrix>
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 19 |     dactivation: Box<dyn Fn(Matrix) -> Matrix>
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/conv.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 |     activation: Box<Fn(Matrix) -> Matrix>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     activation: Box<dyn Fn(Matrix) -> Matrix>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/conv.rs:24:22
[INFO] [stdout]    |
[INFO] [stdout] 24 |     dactivation: Box<Fn(Matrix) -> Matrix>
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     dactivation: Box<dyn Fn(Matrix) -> Matrix>
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:48:21
[INFO] [stdout]    |
[INFO] [stdout] 48 |     layers: Vec<Box<Layer>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 48 |     layers: Vec<Box<dyn Layer>>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:57:21
[INFO] [stdout]    |
[INFO] [stdout] 57 |     layers: Vec<Box<Layer>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 57 |     layers: Vec<Box<dyn Layer>>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/mod.rs:10:40
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box<Layer> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box<dyn Layer> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:64:39
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn layer(mut self, layer: Box<Layer>) -> 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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn layer(mut self, layer: Box<dyn Layer>) -> Self {
[INFO] [stdout]    |                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/model.rs:343:9
[INFO] [stdout]     |
[INFO] [stdout] 339 |         unimplemented!();
[INFO] [stdout]     |         ---------------- any code following this expression is unreachable
[INFO] [stdout] ...
[INFO] [stdout] 343 |         let mut fd = File::create(filename).expect("unable to create file!");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `src`
[INFO] [stdout]    --> src/layers/conv.rs:126:24
[INFO] [stdout]     |
[INFO] [stdout] 126 |     pub fn deserialize(src: &[&str]) -> Box<Self> {
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_src`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/model.rs:95:18
[INFO] [stdout]    |
[INFO] [stdout] 95 |     pub fn build(mut self, init: bool) -> Result<Model, ModelError> {
[INFO] [stdout]    |                  ----^^^^
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/model.rs:315:13
[INFO] [stdout]     |
[INFO] [stdout] 315 |         let mut lines = buf.split('\n').collect::<Vec<_>>();
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `filename`
[INFO] [stdout]    --> src/model.rs:338:32
[INFO] [stdout]     |
[INFO] [stdout] 338 |     pub fn save_weights(&self, filename: &str) {
[INFO] [stdout]     |                                ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convolve_valid` is never used
[INFO] [stdout]   --> src/utils.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn convolve_valid(input: &Matrix, kernel: &Matrix) -> Matrix {
[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 12.04s
[INFO] running `Command { std: "docker" "inspect" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `print_gen`
[INFO] [stdout]  --> src/layers/dense.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     print_gen
[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 import: `print_gen`
[INFO] [stdout]  --> src/layers/conv.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     print_gen
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]   --> src/layers/activations.rs:52:18
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout]    |                  ^                           ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 52 -         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout] 52 +         .map(|_| normal.sample(&mut rng) * c)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]   --> src/layers/activations.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 56 |         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout]    |                  ^                           ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 56 -         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout] 56 +         .map(|_| normal.sample(&mut rng) * c)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub type LossFuntion = Fn(&Matrix, &Matrix) -> f64;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[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] 2 | pub type LossFuntion = dyn Fn(&Matrix, &Matrix) -> f64;
[INFO] [stdout]   |                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub type DLossFuntion = Fn(&Matrix, &Matrix) -> Matrix;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub type DLossFuntion = dyn Fn(&Matrix, &Matrix) -> Matrix;
[INFO] [stdout]   |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:4:33
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub type LossFuntionGenerator = Fn() -> (Box<LossFuntion>, Box<DLossFuntion>);
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub type LossFuntionGenerator = dyn Fn() -> (Box<LossFuntion>, Box<DLossFuntion>);
[INFO] [stdout]   |                                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/dense.rs:18:21
[INFO] [stdout]    |
[INFO] [stdout] 18 |     activation: Box<Fn(Matrix) -> Matrix>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 |     activation: Box<dyn Fn(Matrix) -> Matrix>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/dense.rs:19:22
[INFO] [stdout]    |
[INFO] [stdout] 19 |     dactivation: Box<Fn(Matrix) -> Matrix>
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 19 |     dactivation: Box<dyn Fn(Matrix) -> Matrix>
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/conv.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 |     activation: Box<Fn(Matrix) -> Matrix>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     activation: Box<dyn Fn(Matrix) -> Matrix>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/conv.rs:24:22
[INFO] [stdout]    |
[INFO] [stdout] 24 |     dactivation: Box<Fn(Matrix) -> Matrix>
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     dactivation: Box<dyn Fn(Matrix) -> Matrix>
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:48:21
[INFO] [stdout]    |
[INFO] [stdout] 48 |     layers: Vec<Box<Layer>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 48 |     layers: Vec<Box<dyn Layer>>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:57:21
[INFO] [stdout]    |
[INFO] [stdout] 57 |     layers: Vec<Box<Layer>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 57 |     layers: Vec<Box<dyn Layer>>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/mod.rs:10:40
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box<Layer> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box<dyn Layer> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:64:39
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn layer(mut self, layer: Box<Layer>) -> 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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn layer(mut self, layer: Box<dyn Layer>) -> Self {
[INFO] [stdout]    |                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/model.rs:343:9
[INFO] [stdout]     |
[INFO] [stdout] 339 |         unimplemented!();
[INFO] [stdout]     |         ---------------- any code following this expression is unreachable
[INFO] [stdout] ...
[INFO] [stdout] 343 |         let mut fd = File::create(filename).expect("unable to create file!");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `src`
[INFO] [stdout]    --> src/layers/conv.rs:126:24
[INFO] [stdout]     |
[INFO] [stdout] 126 |     pub fn deserialize(src: &[&str]) -> Box<Self> {
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_src`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/model.rs:95:18
[INFO] [stdout]    |
[INFO] [stdout] 95 |     pub fn build(mut self, init: bool) -> Result<Model, ModelError> {
[INFO] [stdout]    |                  ----^^^^
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/model.rs:315:13
[INFO] [stdout]     |
[INFO] [stdout] 315 |         let mut lines = buf.split('\n').collect::<Vec<_>>();
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `filename`
[INFO] [stdout]    --> src/model.rs:338:32
[INFO] [stdout]     |
[INFO] [stdout] 338 |     pub fn save_weights(&self, filename: &str) {
[INFO] [stdout]     |                                ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `convolve_valid` is never used
[INFO] [stdout]   --> src/utils.rs:17:8
[INFO] [stdout]    |
[INFO] [stdout] 17 | pub fn convolve_valid(input: &Matrix, kernel: &Matrix) -> Matrix {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling rail v0.3.1 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `arrayfire::print_gen`
[INFO] [stdout]   --> src/utils.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     use arrayfire::print_gen;
[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 import: `print_gen`
[INFO] [stdout]  --> src/layers/dense.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |     print_gen
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `print_gen`
[INFO] [stdout]  --> src/layers/conv.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 |     print_gen
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]   --> src/layers/activations.rs:52:18
[INFO] [stdout]    |
[INFO] [stdout] 52 |         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout]    |                  ^                           ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 52 -         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout] 52 +         .map(|_| normal.sample(&mut rng) * c)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around closure body
[INFO] [stdout]   --> src/layers/activations.rs:56:18
[INFO] [stdout]    |
[INFO] [stdout] 56 |         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout]    |                  ^                           ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 56 -         .map(|_| (normal.sample(&mut rng) * c))
[INFO] [stdout] 56 +         .map(|_| normal.sample(&mut rng) * c)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:2:24
[INFO] [stdout]   |
[INFO] [stdout] 2 | pub type LossFuntion = Fn(&Matrix, &Matrix) -> f64;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[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] 2 | pub type LossFuntion = dyn Fn(&Matrix, &Matrix) -> f64;
[INFO] [stdout]   |                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:3:25
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub type DLossFuntion = Fn(&Matrix, &Matrix) -> Matrix;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 3 | pub type DLossFuntion = dyn Fn(&Matrix, &Matrix) -> Matrix;
[INFO] [stdout]   |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]  --> src/functions/loss.rs:4:33
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub type LossFuntionGenerator = Fn() -> (Box<LossFuntion>, Box<DLossFuntion>);
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub type LossFuntionGenerator = dyn Fn() -> (Box<LossFuntion>, Box<DLossFuntion>);
[INFO] [stdout]   |                                 +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/dense.rs:18:21
[INFO] [stdout]    |
[INFO] [stdout] 18 |     activation: Box<Fn(Matrix) -> Matrix>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 18 |     activation: Box<dyn Fn(Matrix) -> Matrix>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/dense.rs:19:22
[INFO] [stdout]    |
[INFO] [stdout] 19 |     dactivation: Box<Fn(Matrix) -> Matrix>
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 19 |     dactivation: Box<dyn Fn(Matrix) -> Matrix>
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/conv.rs:23:21
[INFO] [stdout]    |
[INFO] [stdout] 23 |     activation: Box<Fn(Matrix) -> Matrix>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 23 |     activation: Box<dyn Fn(Matrix) -> Matrix>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/conv.rs:24:22
[INFO] [stdout]    |
[INFO] [stdout] 24 |     dactivation: Box<Fn(Matrix) -> Matrix>
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     dactivation: Box<dyn Fn(Matrix) -> Matrix>
[INFO] [stdout]    |                      +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:48:21
[INFO] [stdout]    |
[INFO] [stdout] 48 |     layers: Vec<Box<Layer>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 48 |     layers: Vec<Box<dyn Layer>>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:57:21
[INFO] [stdout]    |
[INFO] [stdout] 57 |     layers: Vec<Box<Layer>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 57 |     layers: Vec<Box<dyn Layer>>,
[INFO] [stdout]    |                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/layers/mod.rs:10:40
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box<Layer> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box<dyn Layer> {
[INFO] [stdout]    |                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/model.rs:64:39
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn layer(mut self, layer: Box<Layer>) -> 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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 64 |     pub fn layer(mut self, layer: Box<dyn Layer>) -> Self {
[INFO] [stdout]    |                                       +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/model.rs:343:9
[INFO] [stdout]     |
[INFO] [stdout] 339 |         unimplemented!();
[INFO] [stdout]     |         ---------------- any code following this expression is unreachable
[INFO] [stdout] ...
[INFO] [stdout] 343 |         let mut fd = File::create(filename).expect("unable to create file!");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `src`
[INFO] [stdout]    --> src/layers/conv.rs:126:24
[INFO] [stdout]     |
[INFO] [stdout] 126 |     pub fn deserialize(src: &[&str]) -> Box<Self> {
[INFO] [stdout]     |                        ^^^ help: if this is intentional, prefix it with an underscore: `_src`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/model.rs:95:18
[INFO] [stdout]    |
[INFO] [stdout] 95 |     pub fn build(mut self, init: bool) -> Result<Model, ModelError> {
[INFO] [stdout]    |                  ----^^^^
[INFO] [stdout]    |                  |
[INFO] [stdout]    |                  help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/model.rs:315:13
[INFO] [stdout]     |
[INFO] [stdout] 315 |         let mut lines = buf.split('\n').collect::<Vec<_>>();
[INFO] [stdout]     |             ----^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `filename`
[INFO] [stdout]    --> src/model.rs:338:32
[INFO] [stdout]     |
[INFO] [stdout] 338 |     pub fn save_weights(&self, filename: &str) {
[INFO] [stdout]     |                                ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_filename`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rustcyYfjK7/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/debug/build/rand/1605d9f6bba41245/out/librand-1605d9f6bba41245.rlib" "/opt/rustwide/target/debug/build/rand_xorshift/418a9b1e1f81bd63/out/librand_xorshift-418a9b1e1f81bd63.rlib" "/opt/rustwide/target/debug/build/rand_pcg/34f0725ef2d7e49a/out/librand_pcg-34f0725ef2d7e49a.rlib" "/opt/rustwide/target/debug/build/rand_hc/8688cccbad657afb/out/librand_hc-8688cccbad657afb.rlib" "/opt/rustwide/target/debug/build/rand_chacha/82a7bf6b1ba3f552/out/librand_chacha-82a7bf6b1ba3f552.rlib" "/opt/rustwide/target/debug/build/rand_isaac/af745f0be499ac38/out/librand_isaac-af745f0be499ac38.rlib" "/opt/rustwide/target/debug/build/rand_core/549cd6fca684880c/out/librand_core-549cd6fca684880c.rlib" "/opt/rustwide/target/debug/build/rand_os/a999d32677385438/out/librand_os-a999d32677385438.rlib" "/opt/rustwide/target/debug/build/rand_jitter/76845f4e37cf3d00/out/librand_jitter-76845f4e37cf3d00.rlib" "/opt/rustwide/target/debug/build/rand_core/c3fef02cc894d5bf/out/librand_core-c3fef02cc894d5bf.rlib" "/opt/rustwide/target/debug/build/arrayfire/013a4788b8958c50/out/libarrayfire-013a4788b8958c50.rlib" "/opt/rustwide/target/debug/build/half/86c70b8d654c79a1/out/libhalf-86c70b8d654c79a1.rlib" "/opt/rustwide/target/debug/build/libc/baa71fd275b1690a/out/liblibc-baa71fd275b1690a.rlib" "/opt/rustwide/target/debug/build/num/c6fb8916d93eebf8/out/libnum-c6fb8916d93eebf8.rlib" "/opt/rustwide/target/debug/build/num-rational/5188f014ff64776b/out/libnum_rational-5188f014ff64776b.rlib" "/opt/rustwide/target/debug/build/num-iter/bd87f6add37cf026/out/libnum_iter-bd87f6add37cf026.rlib" "/opt/rustwide/target/debug/build/num-complex/2cb0f019e8f9fa93/out/libnum_complex-2cb0f019e8f9fa93.rlib" "/opt/rustwide/target/debug/build/num-bigint/f66f8f601efcc5d7/out/libnum_bigint-f66f8f601efcc5d7.rlib" "/opt/rustwide/target/debug/build/num-integer/4a8c7f677f302c23/out/libnum_integer-4a8c7f677f302c23.rlib" "/opt/rustwide/target/debug/build/num-traits/c2765a255388353b/out/libnum_traits-c2765a255388353b.rlib" "/opt/rustwide/target/debug/build/lazy_static/27442a5ab9db66ae/out/liblazy_static-27442a5ab9db66ae.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rustcyYfjK7/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/arrayfire/lib" "-L" "/opt/arrayfire/lib64" "-L" "/usr/local/lib" "-L" "/usr/lib" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: rust-lld: error: undefined symbol: af_get_data_ptr
[INFO] [stdout]           >>> referenced by array.rs:525 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:525)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64>>::host::<f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_mean
[INFO] [stdout]           >>> referenced by mod.rs:109 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/statistics/mod.rs:109)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::statistics::mean::<f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_convolve2
[INFO] [stdout]           >>> referenced by mod.rs:725 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/signal/mod.rs:725)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::signal::convolve2::<f64, f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_sum
[INFO] [stdout]           >>> referenced by mod.rs:155 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/algorithm/mod.rs:155)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::algorithm::sum::<f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_tile
[INFO] [stdout]           >>> referenced by data.rs:496 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/data.rs:496)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::core::data::tile::<f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_div
[INFO] [stdout]           >>> referenced by arith.rs:407 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/arith.rs:407)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::core::arith::div_helper::<f64, f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_mul
[INFO] [stdout]           >>> referenced by arith.rs:407 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/arith.rs:407)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::core::arith::mul_helper::<f64, f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_sub
[INFO] [stdout]           >>> referenced by arith.rs:407 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/arith.rs:407)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::core::arith::sub_helper::<f64, f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_exp
[INFO] [stdout]           >>> referenced by arith.rs:129 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/arith.rs:129)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(arrayfire::core::arith::exp::<f64>)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_create_array
[INFO] [stdout]           >>> referenced by array.rs:228 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:228)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64>>::new)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_get_dims
[INFO] [stdout]           >>> referenced by array.rs:433 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:433)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64>>::dims)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_get_elements
[INFO] [stdout]           >>> referenced by array.rs:410 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:410)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64>>::elements)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_is_scalar
[INFO] [stdout]           >>> referenced by array.rs:181 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:181)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64>>::is_scalar)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_retain_array
[INFO] [stdout]           >>> referenced by array.rs:694 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:694)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64> as core::clone::Clone>::clone)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_release_array
[INFO] [stdout]           >>> referenced by array.rs:710 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/arrayfire-3.8.0/src/core/array.rs:710)
[INFO] [stdout]           >>>               /opt/rustwide/target/debug/build/rail/6c58433c1469ffa7/out/rail-6c58433c1469ffa7.rail.57e83215b9dbd7b1-cgu.0.rcgu.o:(<arrayfire::core::array::Array<f64> as core::ops::drop::Drop>::drop)
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_free_host
[INFO] [stdout]           >>> referenced by util.rs:68 (src/core/util.rs:68)
[INFO] [stdout]           >>>               arrayfire-013a4788b8958c50.arrayfire.dcf2171da6d0b99-cgu.0.rcgu.o:(arrayfire::core::util::free_host::<i8>) in archive /opt/rustwide/target/debug/build/arrayfire/013a4788b8958c50/out/libarrayfire-013a4788b8958c50.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_get_last_error
[INFO] [stdout]           >>> referenced by error.rs:104 (src/core/error.rs:104)
[INFO] [stdout]           >>>               arrayfire-013a4788b8958c50.arrayfire.dcf2171da6d0b99-cgu.0.rcgu.o:(arrayfire::core::error::get_last_error) in archive /opt/rustwide/target/debug/build/arrayfire/013a4788b8958c50/out/libarrayfire-013a4788b8958c50.rlib
[INFO] [stdout]           
[INFO] [stdout]           rust-lld: error: undefined symbol: af_constant
[INFO] [stdout]           >>> referenced by data.rs:242 (src/core/data.rs:242)
[INFO] [stdout]           >>>               arrayfire-013a4788b8958c50.arrayfire.dcf2171da6d0b99-cgu.0.rcgu.o:(<f64 as arrayfire::core::data::ConstGenerator>::generate) in archive /opt/rustwide/target/debug/build/arrayfire/013a4788b8958c50/out/libarrayfire-013a4788b8958c50.rlib
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rail` (lib test) due to 1 previous error; 21 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5", kill_on_drop: false }`
[INFO] [stdout] b8a9077de34ac43f874156be7ab55e40d6349dc664b0b51687d6e010df9666d5
