[INFO] cloning repository https://github.com/k0nserv/rust-nn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/k0nserv/rust-nn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0f5f38def009757c52688f9022f44c0a99e776af [INFO] checking k0nserv/rust-nn against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/k0nserv/rust-nn [INFO] finished tweaking git repo https://github.com/k0nserv/rust-nn [INFO] tweaked toml for git repo https://github.com/k0nserv/rust-nn written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/k0nserv/rust-nn on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/k0nserv/rust-nn already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking k0nserv/rust-nn against try#0cb362313295507a2f4321c0e30cea0168f2fe71 for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/k0nserv/rust-nn [INFO] finished tweaking git repo https://github.com/k0nserv/rust-nn [INFO] tweaked toml for git repo https://github.com/k0nserv/rust-nn written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/k0nserv/rust-nn on toolchain 0cb362313295507a2f4321c0e30cea0168f2fe71 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/k0nserv/rust-nn already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde_derive v1.0.70 [INFO] [stderr] Downloaded quote v0.6.4 [INFO] [stderr] Downloaded proc-macro2 v0.4.9 [INFO] [stderr] Downloaded rand v0.5.3 [INFO] [stderr] Downloaded syn v0.14.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1d94aedae8e3733c2d9abe2ee9b9d211786c3f02a5afb381d54f2bba79b6313 [INFO] running `Command { std: "docker" "start" "-a" "a1d94aedae8e3733c2d9abe2ee9b9d211786c3f02a5afb381d54f2bba79b6313", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1d94aedae8e3733c2d9abe2ee9b9d211786c3f02a5afb381d54f2bba79b6313", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1d94aedae8e3733c2d9abe2ee9b9d211786c3f02a5afb381d54f2bba79b6313", kill_on_drop: false }` [INFO] [stdout] a1d94aedae8e3733c2d9abe2ee9b9d211786c3f02a5afb381d54f2bba79b6313 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+0cb362313295507a2f4321c0e30cea0168f2fe71" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ff9846ecbc7735cc582bb3942ec0fec32c268dd6f12f0a8e9fce69f206c9bb5 [INFO] running `Command { std: "docker" "start" "-a" "9ff9846ecbc7735cc582bb3942ec0fec32c268dd6f12f0a8e9fce69f206c9bb5", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Compiling serde v1.0.70 [INFO] [stderr] Checking rand_core v0.2.1 [INFO] [stderr] Compiling proc-macro2 v0.4.9 [INFO] [stderr] Compiling quote v0.6.4 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking rand v0.5.3 [INFO] [stderr] Compiling syn v0.14.5 [INFO] [stderr] Checking csv-core v0.1.4 [INFO] [stderr] Compiling serde_derive v1.0.70 [INFO] [stderr] Checking csv v1.0.0 [INFO] [stderr] Checking rust-nn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:431:16 [INFO] [stdout] | [INFO] [stdout] 431 | #[derive(Debug,Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process; [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: `std::fmt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:450:44 [INFO] [stdout] | [INFO] [stdout] 450 | fn read_data() -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 450 | fn read_data() -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:482:29 [INFO] [stdout] | [INFO] [stdout] 482 | fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 482 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/main.rs:431:16 [INFO] [stdout] | [INFO] [stdout] 431 | #[derive(Debug,Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::process; [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: `std::fmt` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around type [INFO] [stdout] --> src/main.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | impl IndexMut<(usize)> for $name { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:450:44 [INFO] [stdout] | [INFO] [stdout] 450 | fn read_data() -> Result, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 450 | fn read_data() -> Result, Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:482:29 [INFO] [stdout] | [INFO] [stdout] 482 | fn main() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) 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] 482 | fn main() -> Result<(), Box> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | fn apply(&self, f: &Fn(f32) -> f32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 417 | / network!{ [INFO] [stdout] 418 | | name: my_network, [INFO] [stdout] 419 | | input: { [INFO] [stdout] 420 | | nodes: 4, [INFO] [stdout] ... | [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `matrix` which comes from the expansion of the macro `network` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:469:67 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***a` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:469:77 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:469:93 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***b` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:469:103 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:472:67 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***a` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:472:77 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:472:93 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***b` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:472:103 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:476:21 [INFO] [stdout] | [INFO] [stdout] 476 | let value = get_value(a); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:467:41 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | ^^^^^^^^^ not mutable [INFO] [stdout] 468 | let max = { [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:469:44 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:472:44 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:475:5 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 475 | values.iter_mut().for_each(|a| { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 476 | let value = get_value(a); [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0500, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-nn` (bin "rust-nn") due to 14 previous errors; 23 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:469:67 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***a` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:469:77 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:469:93 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***b` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:469:103 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:472:67 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***a` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:472:77 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:472:93 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `***b` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:472:103 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^ cannot borrow as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:476:21 [INFO] [stdout] | [INFO] [stdout] 476 | let value = get_value(a); [INFO] [stdout] | ^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:467:41 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | ^^^^^^^^^ not mutable [INFO] [stdout] 468 | let max = { [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:469:44 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:472:44 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:475:5 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 475 | values.iter_mut().for_each(|a| { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 476 | let value = get_value(a); [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0500, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-nn` (bin "rust-nn" test) due to 14 previous errors; 23 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9ff9846ecbc7735cc582bb3942ec0fec32c268dd6f12f0a8e9fce69f206c9bb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ff9846ecbc7735cc582bb3942ec0fec32c268dd6f12f0a8e9fce69f206c9bb5", kill_on_drop: false }` [INFO] [stdout] 9ff9846ecbc7735cc582bb3942ec0fec32c268dd6f12f0a8e9fce69f206c9bb5