[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 master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/k0nserv/rust-nn on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-1-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rand v0.5.3 [INFO] [stderr] Downloaded syn v0.14.5 [INFO] [stderr] Downloaded quote v0.6.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9044ead80a1c71fa83583b6fcdbdd501fc3354f8122a47f118db5b592bbc7458 [INFO] running `Command { std: "docker" "start" "-a" "9044ead80a1c71fa83583b6fcdbdd501fc3354f8122a47f118db5b592bbc7458", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9044ead80a1c71fa83583b6fcdbdd501fc3354f8122a47f118db5b592bbc7458", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9044ead80a1c71fa83583b6fcdbdd501fc3354f8122a47f118db5b592bbc7458", kill_on_drop: false }` [INFO] [stdout] 9044ead80a1c71fa83583b6fcdbdd501fc3354f8122a47f118db5b592bbc7458 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7923743ec8172762e81c4c6059868ca43dbe071089cf1793eec099aff8e73ba1 [INFO] running `Command { std: "docker" "start" "-a" "7923743ec8172762e81c4c6059868ca43dbe071089cf1793eec099aff8e73ba1", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Compiling unicode-xid v0.1.0 [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] 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: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:467:41 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | ^^^^^^^^^ not mutable [INFO] [stdout] 468 | let max = { [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:469:44 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:472:44 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:475:5 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 475 | values.iter_mut().for_each(|a| { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 476 | let value = get_value(a); [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `get_value` as mutable, as it is not declared as mutable [INFO] [stdout] --> src/main.rs:467:41 [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | ^^^^^^^^^ not mutable [INFO] [stdout] 468 | let max = { [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 467 | fn normalize_by(values: &mut [T], mut get_value: F) where F: FnMut(&mut T) -> &mut f32, { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:469:44 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:472:19 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `get_value` but it is already borrowed [INFO] [stdout] --> src/main.rs:472:44 [INFO] [stdout] | [INFO] [stdout] 472 | get_value(values.iter_mut().min_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | --------- ^^^^^^^^^^^^^^^^^^^^^^ --------- second borrow occurs due to use of `get_value` in closure [INFO] [stdout] | | | [INFO] [stdout] | | closure construction occurs here [INFO] [stdout] | borrow occurs here [INFO] [stdout] | first borrow later used by call [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*values` as mutable more than once at a time [INFO] [stdout] --> src/main.rs:475:5 [INFO] [stdout] | [INFO] [stdout] 469 | get_value(values.iter_mut().max_by(|ref mut a, ref mut b| get_value(a).partial_cmp(&get_value(b)).unwrap()).unwrap()) [INFO] [stdout] | ------ first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 475 | values.iter_mut().for_each(|a| { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] 476 | let value = get_value(a); [INFO] [stdout] 477 | *value = (*value - *min) / (*max - *min); [INFO] [stdout] | ---- first borrow later captured here by closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [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] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0500, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-nn` (bin "rust-nn") due to 15 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-nn` (bin "rust-nn" test) due to 15 previous errors [INFO] running `Command { std: "docker" "inspect" "7923743ec8172762e81c4c6059868ca43dbe071089cf1793eec099aff8e73ba1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7923743ec8172762e81c4c6059868ca43dbe071089cf1793eec099aff8e73ba1", kill_on_drop: false }` [INFO] [stdout] 7923743ec8172762e81c4c6059868ca43dbe071089cf1793eec099aff8e73ba1 [INFO] checking k0nserv/rust-nn against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fk0nserv%2Frust-nn" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/k0nserv/rust-nn on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-1-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e2156d5cc159f33fa0483fbdf8f04d537400ce1677560e848ebe72137728f52d [INFO] running `Command { std: "docker" "start" "-a" "e2156d5cc159f33fa0483fbdf8f04d537400ce1677560e848ebe72137728f52d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2156d5cc159f33fa0483fbdf8f04d537400ce1677560e848ebe72137728f52d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2156d5cc159f33fa0483fbdf8f04d537400ce1677560e848ebe72137728f52d", kill_on_drop: false }` [INFO] [stdout] e2156d5cc159f33fa0483fbdf8f04d537400ce1677560e848ebe72137728f52d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 715ba9dfcd1acbd6d1b893b1bfda70f548df524ed8c37061607f3769199a5cf8 [INFO] running `Command { std: "docker" "start" "-a" "715ba9dfcd1acbd6d1b893b1bfda70f548df524ed8c37061607f3769199a5cf8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] no edition found in manifest, probably 2015, skipping [INFO] running `Command { std: "docker" "inspect" "715ba9dfcd1acbd6d1b893b1bfda70f548df524ed8c37061607f3769199a5cf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "715ba9dfcd1acbd6d1b893b1bfda70f548df524ed8c37061607f3769199a5cf8", kill_on_drop: false }` [INFO] [stdout] 715ba9dfcd1acbd6d1b893b1bfda70f548df524ed8c37061607f3769199a5cf8