[INFO] fetching crate rail 0.3.1... [INFO] testing rail-0.3.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate rail 0.3.1 into /workspace/builds/worker-2-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-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rail 0.3.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 472abb5214e8b1639a7a60363e9a358d4fd6158f1af9cacc2abc3383850d8381 [INFO] running `Command { std: "docker" "start" "-a" "472abb5214e8b1639a7a60363e9a358d4fd6158f1af9cacc2abc3383850d8381", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "472abb5214e8b1639a7a60363e9a358d4fd6158f1af9cacc2abc3383850d8381", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "472abb5214e8b1639a7a60363e9a358d4fd6158f1af9cacc2abc3383850d8381", kill_on_drop: false }` [INFO] [stdout] 472abb5214e8b1639a7a60363e9a358d4fd6158f1af9cacc2abc3383850d8381 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5539b232d9087a32a8ac79493d70dc0eebb89e643d23163a1a41472ff8c4cea [INFO] running `Command { std: "docker" "start" "-a" "a5539b232d9087a32a8ac79493d70dc0eebb89e643d23163a1a41472ff8c4cea", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling ryu v1.0.20 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling half v1.8.3 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-iter v0.1.45 [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: unused variable: `fd` [INFO] [stdout] --> src/model.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | let mut fd = File::create(filename).expect("unable to create file!"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/model.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let mut buf = String::with_capacity(2000); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/model.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | for layer in &self.layers { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [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 11.37s [INFO] running `Command { std: "docker" "inspect" "a5539b232d9087a32a8ac79493d70dc0eebb89e643d23163a1a41472ff8c4cea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5539b232d9087a32a8ac79493d70dc0eebb89e643d23163a1a41472ff8c4cea", kill_on_drop: false }` [INFO] [stdout] a5539b232d9087a32a8ac79493d70dc0eebb89e643d23163a1a41472ff8c4cea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b297cb5de0ebb7c05ba568fd57d885da187e72166a568cfea2f3db3494d7f196 [INFO] running `Command { std: "docker" "start" "-a" "b297cb5de0ebb7c05ba568fd57d885da187e72166a568cfea2f3db3494d7f196", 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] [stderr] Compiling rail v0.3.1 (/opt/rustwide/workdir) [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: unused variable: `fd` [INFO] [stdout] --> src/model.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | let mut fd = File::create(filename).expect("unable to create file!"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/model.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let mut buf = String::with_capacity(2000); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/model.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | for layer in &self.layers { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [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] [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] warning: unused variable: `fd` [INFO] [stdout] --> src/model.rs:343:13 [INFO] [stdout] | [INFO] [stdout] 343 | let mut fd = File::create(filename).expect("unable to create file!"); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_fd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buf` [INFO] [stdout] --> src/model.rs:344:13 [INFO] [stdout] | [INFO] [stdout] 344 | let mut buf = String::with_capacity(2000); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layer` [INFO] [stdout] --> src/model.rs:348:13 [INFO] [stdout] | [INFO] [stdout] 348 | for layer in &self.layers { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_layer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/tmp/rustc1nit2D/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-58810cba66bc86b7,librand_xorshift-14e9b45bdf59ad1d,librand_pcg-e9528f8dfe279d43,librand_hc-8c6bc8b58dca19e2,librand_chacha-8349b7f8676f64e7,librand_isaac-d86d4a8db0c58845,librand_core-a81fe7808f612aa2,librand_os-4bebd4bd4532edc0,librand_jitter-7a2811bedef919f4,librand_core-071c4ecd390d5ba3,libarrayfire-76c01f0dd25311fc,libhalf-cc6be314b18dd970,liblibc-e2775a15e5abc6fd,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/rustc1nit2D/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-3a9bbc4e4a94d1a2" "-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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(_$LT$arrayfire..core..array..Array$LT$T$GT$$u20$as$u20$core..clone..Clone$GT$::clone::h6ffbd8de5344af3a) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(_$LT$arrayfire..core..array..Array$LT$T$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hb798e5d7faea6478) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::statistics::mean::h7b24019bd936d734) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::data::tile::h4620c403653ebfd8) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::arith::div_helper::h268ee8a704ab0962) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::arith::mul_helper::h3e952166e0e4b575) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::arith::sub_helper::h2c55316a8344b620) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::arith::exp::h8afd3fd9599c43e5) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::new::h6259688fb78aeaa0) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::dims::h73272abab0be2c31) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::host::h4a3615922a0a318c) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::elements::h7c3026fbd9370a2d) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::core::array::Array$LT$T$GT$::is_scalar::hf2bf9d77d9aa1faf) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::signal::convolve2::hc8b208aed4b739f6) [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-3a9bbc4e4a94d1a2.rail.2bf5d606c3dd5cf2-cgu.0.rcgu.o:(arrayfire::algorithm::sum::h46d6f3b3fc56fb9a) [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-76c01f0dd25311fc.arrayfire.7d3cbeb7f59b4377-cgu.0.rcgu.o:(_$LT$f64$u20$as$u20$arrayfire..core..data..ConstGenerator$GT$::generate::h6cac5e1cd3cf3d4a) in archive /opt/rustwide/target/debug/deps/libarrayfire-76c01f0dd25311fc.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-76c01f0dd25311fc.arrayfire.7d3cbeb7f59b4377-cgu.0.rcgu.o:(arrayfire::core::util::free_host::h9554fb14df2dbdeb) in archive /opt/rustwide/target/debug/deps/libarrayfire-76c01f0dd25311fc.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-76c01f0dd25311fc.arrayfire.7d3cbeb7f59b4377-cgu.0.rcgu.o:(arrayfire::core::error::get_last_error::h82f17a1a40d185da) in archive /opt/rustwide/target/debug/deps/libarrayfire-76c01f0dd25311fc.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; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b297cb5de0ebb7c05ba568fd57d885da187e72166a568cfea2f3db3494d7f196", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b297cb5de0ebb7c05ba568fd57d885da187e72166a568cfea2f3db3494d7f196", kill_on_drop: false }` [INFO] [stdout] b297cb5de0ebb7c05ba568fd57d885da187e72166a568cfea2f3db3494d7f196