[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#3e22d1f9053c0fc87629b3c6d5d9567856368e5d for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/k0nserv/rust-nn on toolchain 3e22d1f9053c0fc87629b3c6d5d9567856368e5d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-6/source/Cargo.toml [INFO] crate git repo https://github.com/k0nserv/rust-nn already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unicode-xid v0.1.0 [INFO] [stderr] Downloaded serde v1.0.70 [INFO] [stderr] Downloaded quote v0.6.4 [INFO] [stderr] Downloaded syn v0.14.5 [INFO] [stderr] Downloaded serde_derive v1.0.70 [INFO] [stderr] Downloaded csv-core v0.1.4 [INFO] [stderr] Downloaded proc-macro2 v0.4.9 [INFO] [stderr] Downloaded rand v0.5.3 [INFO] [stderr] Downloaded winapi v0.3.5 [INFO] [stderr] Downloaded bitflags v1.0.3 [INFO] [stderr] Downloaded rand_core v0.2.1 [INFO] [stderr] Downloaded memchr v2.0.1 [INFO] [stderr] Downloaded libc v0.2.42 [INFO] [stderr] Downloaded csv v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74551a83427c6a5a008fed1811d740c7f7b2f2a0fe89aa2c84e88776d42402a5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "74551a83427c6a5a008fed1811d740c7f7b2f2a0fe89aa2c84e88776d42402a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74551a83427c6a5a008fed1811d740c7f7b2f2a0fe89aa2c84e88776d42402a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74551a83427c6a5a008fed1811d740c7f7b2f2a0fe89aa2c84e88776d42402a5", kill_on_drop: false }` [INFO] [stdout] 74551a83427c6a5a008fed1811d740c7f7b2f2a0fe89aa2c84e88776d42402a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+3e22d1f9053c0fc87629b3c6d5d9567856368e5d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c23dbecf20ab3f39cbac39a02a09b2ba95f57e78f879770363e60cde9b2f7e8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "5c23dbecf20ab3f39cbac39a02a09b2ba95f57e78f879770363e60cde9b2f7e8", kill_on_drop: false }` [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: 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)]` 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: 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)]` 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: 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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(f32) -> f32` [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^ help: use `dyn`: `dyn Error` [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] | ^^^^^ help: use `dyn`: `dyn Error` [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] | ^^^^^^^ help: remove these parentheses [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] 428 | | } [INFO] [stdout] 429 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (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] | ^^^^^ help: use `dyn`: `dyn Error` [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] | ^^^^^ help: use `dyn`: `dyn Error` [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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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] [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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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] [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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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 `***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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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 `***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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [INFO] [stdout] ... [INFO] [stdout] 476 | let value = get_value(a); [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:9 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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] [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[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:472:9 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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[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] error: aborting due to 15 previous errors; 22 warnings emitted [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` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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] [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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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] [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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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 `***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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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 `***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] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [INFO] [stdout] ... [INFO] [stdout] 476 | let value = get_value(a); [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:9 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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] [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[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:472:9 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | --------- help: consider changing this to be mutable: `mut get_value` [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[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] error: aborting due to 15 previous errors; 22 warnings emitted [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: build failed [INFO] running `Command { std: "docker" "inspect" "5c23dbecf20ab3f39cbac39a02a09b2ba95f57e78f879770363e60cde9b2f7e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c23dbecf20ab3f39cbac39a02a09b2ba95f57e78f879770363e60cde9b2f7e8", kill_on_drop: false }` [INFO] [stdout] 5c23dbecf20ab3f39cbac39a02a09b2ba95f57e78f879770363e60cde9b2f7e8