[INFO] fetching crate rail 0.3.1... [INFO] testing rail-0.3.1 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rail 0.3.1 into /workspace/builds/worker-1-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rail 0.3.1 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 44 packages to latest compatible versions [INFO] [stderr] Adding rand v0.6.5 (available: v0.9.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arrayfire v3.8.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 55989b2f0c8d10e3fd12f8ef9a82b6c899dcd12ca14dea0d661bf7fc216b8868 [INFO] running `Command { std: "docker" "start" "-a" "55989b2f0c8d10e3fd12f8ef9a82b6c899dcd12ca14dea0d661bf7fc216b8868", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "55989b2f0c8d10e3fd12f8ef9a82b6c899dcd12ca14dea0d661bf7fc216b8868", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55989b2f0c8d10e3fd12f8ef9a82b6c899dcd12ca14dea0d661bf7fc216b8868", kill_on_drop: false }` [INFO] [stdout] 55989b2f0c8d10e3fd12f8ef9a82b6c899dcd12ca14dea0d661bf7fc216b8868 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0a768f0a1e46e665de3a602f1791e44061a6ff96a7fd414d4a7d1ee6a67b4f4f [INFO] running `Command { std: "docker" "start" "-a" "0a768f0a1e46e665de3a602f1791e44061a6ff96a7fd414d4a7d1ee6a67b4f4f", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.8 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [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 [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 [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, Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub type LossFuntionGenerator = dyn Fn() -> (Box, Box); [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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | activation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | dactivation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | activation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | dactivation: Box 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>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 48 | layers: Vec>, [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>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | layers: Vec>, [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 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box { [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) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | pub fn layer(mut self, layer: Box) -> 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 { [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 { [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::>(); [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 22.15s [INFO] running `Command { std: "docker" "inspect" "0a768f0a1e46e665de3a602f1791e44061a6ff96a7fd414d4a7d1ee6a67b4f4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0a768f0a1e46e665de3a602f1791e44061a6ff96a7fd414d4a7d1ee6a67b4f4f", kill_on_drop: false }` [INFO] [stdout] 0a768f0a1e46e665de3a602f1791e44061a6ff96a7fd414d4a7d1ee6a67b4f4f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4b046c68db516306b6d4b081f3f481cd9475dc1b7e8ebb253b1aba8b71cc866 [INFO] running `Command { std: "docker" "start" "-a" "a4b046c68db516306b6d4b081f3f481cd9475dc1b7e8ebb253b1aba8b71cc866", 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 [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 [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, Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub type LossFuntionGenerator = dyn Fn() -> (Box, Box); [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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | activation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | dactivation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | activation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | dactivation: Box 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>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 48 | layers: Vec>, [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>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | layers: Vec>, [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 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box { [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) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | pub fn layer(mut self, layer: Box) -> 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 { [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 { [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::>(); [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 [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 [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, Box); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 4 | pub type LossFuntionGenerator = dyn Fn() -> (Box, Box); [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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | activation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 19 | dactivation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 | activation: Box 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 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 [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 24 | dactivation: Box 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>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 48 | layers: Vec>, [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>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | layers: Vec>, [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 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 10 | pub fn load_layer(src: &[&str]) -> Box { [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) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 | pub fn layer(mut self, layer: Box) -> 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 { [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 { [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::>(); [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] [stderr] error: could not compile `rail` (lib test) due to 1 previous error; 21 warnings emitted [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcoXcAvT/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/debug/deps/{librand-16ce0fa8a11925ba,librand_xorshift-14e9b45bdf59ad1d,librand_pcg-e9528f8dfe279d43,librand_hc-8c6bc8b58dca19e2,librand_chacha-8349b7f8676f64e7,librand_isaac-d86d4a8db0c58845,librand_core-a81fe7808f612aa2,librand_os-68e34298a3de8e7b,librand_jitter-7a2811bedef919f4,librand_core-071c4ecd390d5ba3,libarrayfire-ff4322b672b0a2a3,libhalf-cc6be314b18dd970,liblibc-f44516d981b27aa6,libnum-08825b1d16367042,libnum_rational-65d190a0991d678a,libnum_iter-272925f6ca0c53d6,libnum_complex-9c939617ff12fe99,libnum_bigint-35cb7e1582da28e5,libnum_integer-74a4cf281e9d481c,libnum_traits-c87bc96fedcc67a8,liblazy_static-b3603208c0de2608}.rlib" "/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" "/tmp/rustcoXcAvT/raw-dylibs" "-B/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" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/rail-a75c7cf088249903" "-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_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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(_$LT$arrayfire..core..array..Array$LT$T$GT$$u20$as$u20$core..clone..Clone$GT$::clone::he32b703297997c19) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(_$LT$arrayfire..core..array..Array$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hfef9be7a7472ad8d) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::statistics::mean::hb05ddcc4ce5ab9a9) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::data::tile::h9b14feeaaab06d15) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::arith::div_helper::hc35dba9df00fc9be) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::arith::mul_helper::h72c5cfb4894382de) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::arith::sub_helper::h334b56b1e39183c0) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::arith::exp::h2f0e52785649ea59) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::new::h87b3e6a2424f60b9) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::dims::h60176e21d58bbc37) [INFO] [stdout] [INFO] [stdout] 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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::host::h8e8d75dad30f5188) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::elements::h8c82dbfedd7a1bbf) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::is_scalar::hcddab66d33138637) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::signal::convolve2::h93f8cbd50250be42) [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/deps/rail-a75c7cf088249903.rail.efc4f4d12a41ce1a-cgu.0.rcgu.o:(arrayfire::algorithm::sum::h515561b2d0870fe8) [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-ff4322b672b0a2a3.arrayfire.64502f521e52e103-cgu.0.rcgu.o:(_$LT$f64$u20$as$u20$arrayfire..core..data..ConstGenerator$GT$::generate::hcc5e107f0ee9aef9) in archive /opt/rustwide/target/debug/deps/libarrayfire-ff4322b672b0a2a3.rlib [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-ff4322b672b0a2a3.arrayfire.64502f521e52e103-cgu.0.rcgu.o:(arrayfire::core::util::free_host::h2e9a8e8fe4b5d95a) in archive /opt/rustwide/target/debug/deps/libarrayfire-ff4322b672b0a2a3.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-ff4322b672b0a2a3.arrayfire.64502f521e52e103-cgu.0.rcgu.o:(arrayfire::core::error::get_last_error::he22eb6bb2020f41b) in archive /opt/rustwide/target/debug/deps/libarrayfire-ff4322b672b0a2a3.rlib [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a4b046c68db516306b6d4b081f3f481cd9475dc1b7e8ebb253b1aba8b71cc866", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4b046c68db516306b6d4b081f3f481cd9475dc1b7e8ebb253b1aba8b71cc866", kill_on_drop: false }` [INFO] [stdout] a4b046c68db516306b6d4b081f3f481cd9475dc1b7e8ebb253b1aba8b71cc866