[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#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/k0nserv/rust-nn on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "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-9/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" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a87cbe635bd56e4e7871256c58f9ddcc4e19c5e2d2c9ef09938ee6bae421ea9 [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" "1a87cbe635bd56e4e7871256c58f9ddcc4e19c5e2d2c9ef09938ee6bae421ea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a87cbe635bd56e4e7871256c58f9ddcc4e19c5e2d2c9ef09938ee6bae421ea9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a87cbe635bd56e4e7871256c58f9ddcc4e19c5e2d2c9ef09938ee6bae421ea9", kill_on_drop: false }` [INFO] [stdout] 1a87cbe635bd56e4e7871256c58f9ddcc4e19c5e2d2c9ef09938ee6bae421ea9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2900af77a58d2156da4181bd3413def00ce72ab86d728d97df6b740eea75089b [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" "2900af77a58d2156da4181bd3413def00ce72ab86d728d97df6b740eea75089b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.9 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking rand v0.5.3 [INFO] [stderr] Checking csv-core v0.1.4 [INFO] [stderr] Compiling quote v0.6.4 [INFO] [stderr] Checking csv v1.0.0 [INFO] [stderr] Compiling syn v0.14.5 [INFO] [stderr] Compiling serde_derive v1.0.70 [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: 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: 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: 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: 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: 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: 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: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: 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: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: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] 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] [stderr] error: build failed [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] running `Command { std: "docker" "inspect" "2900af77a58d2156da4181bd3413def00ce72ab86d728d97df6b740eea75089b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2900af77a58d2156da4181bd3413def00ce72ab86d728d97df6b740eea75089b", kill_on_drop: false }` [INFO] [stdout] 2900af77a58d2156da4181bd3413def00ce72ab86d728d97df6b740eea75089b