[INFO] fetching crate rail 0.3.1... [INFO] testing rail-0.3.1 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [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 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "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/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 54893295cc65dff26052d8493d88234e3747552b6355a9b55c0cd14ab4a7bfe7 [INFO] running `Command { std: "docker" "start" "-a" "54893295cc65dff26052d8493d88234e3747552b6355a9b55c0cd14ab4a7bfe7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "54893295cc65dff26052d8493d88234e3747552b6355a9b55c0cd14ab4a7bfe7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "54893295cc65dff26052d8493d88234e3747552b6355a9b55c0cd14ab4a7bfe7", kill_on_drop: false }` [INFO] [stdout] 54893295cc65dff26052d8493d88234e3747552b6355a9b55c0cd14ab4a7bfe7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66bbd919b76806b36930d3c7aa18d630a3e0b7b26e7354f5e00f3f6237f03922 [INFO] running `Command { std: "docker" "start" "-a" "66bbd919b76806b36930d3c7aa18d630a3e0b7b26e7354f5e00f3f6237f03922", 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-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [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 rustc_version v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling rand_os v0.1.3 [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 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 21.60s [INFO] running `Command { std: "docker" "inspect" "66bbd919b76806b36930d3c7aa18d630a3e0b7b26e7354f5e00f3f6237f03922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66bbd919b76806b36930d3c7aa18d630a3e0b7b26e7354f5e00f3f6237f03922", kill_on_drop: false }` [INFO] [stdout] 66bbd919b76806b36930d3c7aa18d630a3e0b7b26e7354f5e00f3f6237f03922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3a7d8f9661acc732bfd992ea3c1222f5253b891201f30b3f5c19c85c7f7b17d2 [INFO] running `Command { std: "docker" "start" "-a" "3a7d8f9661acc732bfd992ea3c1222f5253b891201f30b3f5c19c85c7f7b17d2", 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] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustcK72IF7/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/rustcK72IF7/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.edd297a32b954171-cgu.0.rcgu.o:(_$LT$arrayfire..core..array..Array$LT$T$GT$$u20$as$u20$core..clone..Clone$GT$::clone::he87e4839670a5198) [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.edd297a32b954171-cgu.0.rcgu.o:(_$LT$arrayfire..core..array..Array$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::h71fcf501b980cf3f) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::statistics::mean::h0ca21718d9a52fab) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::data::tile::hd9d0c070812a9b32) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::arith::div_helper::h962b596fe736d72a) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::arith::mul_helper::h2031262c1c8c5422) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::arith::sub_helper::h6e2d5598934093fc) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::arith::exp::h94eee0c2eca065c6) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::new::he366fa2000b27391) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::dims::hf3cc26bbfbd06ebc) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::host::h9781bd1c5d26df0c) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::elements::h3b90143e4393eaf8) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::is_scalar::h51b2b44e36c263c1) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::signal::convolve2::h73be6918d9d7b140) [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.edd297a32b954171-cgu.0.rcgu.o:(arrayfire::algorithm::sum::hdb98146d924504cc) [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.78292d4425df042d-cgu.0.rcgu.o:(_$LT$f64$u20$as$u20$arrayfire..core..data..ConstGenerator$GT$::generate::he8afd220a84b02e9) 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.78292d4425df042d-cgu.0.rcgu.o:(arrayfire::core::util::free_host::h31c37cf518836843) 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.78292d4425df042d-cgu.0.rcgu.o:(arrayfire::core::error::get_last_error::h1537865aece4eea5) 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] [stderr] error: could not compile `rail` (lib test) due to 1 previous error; 21 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3a7d8f9661acc732bfd992ea3c1222f5253b891201f30b3f5c19c85c7f7b17d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a7d8f9661acc732bfd992ea3c1222f5253b891201f30b3f5c19c85c7f7b17d2", kill_on_drop: false }` [INFO] [stdout] 3a7d8f9661acc732bfd992ea3c1222f5253b891201f30b3f5c19c85c7f7b17d2