[INFO] cloning repository https://github.com/Jonster5/rust-nn-trainer
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jonster5/rust-nn-trainer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 354d46e5ff34ea19adc3dc713115f8bd9a8aab44
[INFO] checking Jonster5/rust-nn-trainer against 65b20a97de33e9e59992793a144aef2950c48c76 for pr-154715
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Jonster5/rust-nn-trainer
[INFO] finished tweaking git repo https://github.com/Jonster5/rust-nn-trainer
[INFO] tweaked toml for git repo https://github.com/Jonster5/rust-nn-trainer written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Jonster5/rust-nn-trainer on toolchain 65b20a97de33e9e59992793a144aef2950c48c76
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Jonster5/rust-nn-trainer 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" "+65b20a97de33e9e59992793a144aef2950c48c76" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] checking Jonster5/rust-nn-trainer against 65b20a97de33e9e59992793a144aef2950c48c76 for pr-154715
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Jonster5/rust-nn-trainer
[INFO] finished tweaking git repo https://github.com/Jonster5/rust-nn-trainer
[INFO] tweaked toml for git repo https://github.com/Jonster5/rust-nn-trainer written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Jonster5/rust-nn-trainer on toolchain 65b20a97de33e9e59992793a144aef2950c48c76
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Jonster5/rust-nn-trainer 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" "+65b20a97de33e9e59992793a144aef2950c48c76" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492
[INFO] running `Command { std: "docker" "start" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492" "/opt/rustwide/cargo-home/bin/cargo" "+65b20a97de33e9e59992793a144aef2950c48c76" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.121
[INFO] [stderr]     Checking ppv-lite86 v0.2.16
[INFO] [stderr]     Checking getrandom v0.2.6
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking nn-trainer v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]  --> src/network.rs:6:21
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub layers: Vec<Layer>,
[INFO] [stdout]   |                     ^^^^^ expected named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] 5 ~ pub struct NeuralNetwork<'a> {
[INFO] [stdout] 6 ~     pub layers: Vec<Layer<'a>>,
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/layer.rs:4:18
[INFO] [stdout]   |
[INFO] [stdout] 4 |     activation::{self, get, ActivationFunction},
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `predicate` should have an upper camel case name
[INFO] [stdout]  --> src/math.rs:5:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub type predicate = fn (f64, usize, usize) -> f64;
[INFO] [stdout]   |          ^^^^^^^^^ help: convert the identifier to upper camel case: `Predicate`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0106]: missing lifetime specifier
[INFO] [stdout]  --> src/network.rs:6:21
[INFO] [stdout]   |
[INFO] [stdout] 6 |     pub layers: Vec<Layer>,
[INFO] [stdout]   |                     ^^^^^ expected named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] help: consider introducing a named lifetime parameter
[INFO] [stdout]   |
[INFO] [stdout] 5 ~ pub struct NeuralNetwork<'a> {
[INFO] [stdout] 6 ~     pub layers: Vec<Layer<'a>>,
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]  --> src/layer.rs:4:18
[INFO] [stdout]   |
[INFO] [stdout] 4 |     activation::{self, get, ActivationFunction},
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `predicate` should have an upper camel case name
[INFO] [stdout]  --> src/math.rs:5:10
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub type predicate = fn (f64, usize, usize) -> f64;
[INFO] [stdout]   |          ^^^^^^^^^ help: convert the identifier to upper camel case: `Predicate`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/network.rs:38:22
[INFO] [stdout]     |
[INFO] [stdout]  38 |                   .map(|x, r,c|
[INFO] [stdout]     |  __________________---_^
[INFO] [stdout]     | |                  |
[INFO] [stdout]     | |                  arguments to this method are incorrect
[INFO] [stdout]  39 | |                     self.layers[i].activation(x, false)
[INFO] [stdout]     | |_______________________________________________________^ expected fn pointer, found closure
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected fn pointer `fn(f64, usize, usize) -> f64`
[INFO] [stdout]                   found closure `{closure@src/network.rs:38:22: 38:30}`
[INFO] [stdout] note: closures can only be coerced to `fn` types if they do not capture any variables
[INFO] [stdout]    --> src/network.rs:39:21
[INFO] [stdout]     |
[INFO] [stdout]  39 |                     self.layers[i].activation(x, false)
[INFO] [stdout]     |                     ^^^^        ^ `i` captured here
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     `self` captured here
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/math.rs:126:12
[INFO] [stdout]     |
[INFO] [stdout] 126 |     pub fn map(mut self, func: fn (f64, usize, usize) -> f64) -> Self {
[INFO] [stdout]     |            ^^^           -----------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout]    | |                          -------------------- temporary value created here
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 39 | |             gradient: &Matrix::new(size, 1),
[INFO] [stdout]    | |                        -------------------- temporary value created here
[INFO] [stdout] 40 | |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 38 | |             error: &Matrix::new(size, 1),
[INFO] [stdout]    | |                     -------------------- temporary value created here
[INFO] [stdout] ...  |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 36 | |             output: &Matrix::new(size, 1),
[INFO] [stdout]    | |                      -------------------- temporary value created here
[INFO] [stdout] ...  |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/network.rs:38:22
[INFO] [stdout]     |
[INFO] [stdout]  38 |                   .map(|x, r,c|
[INFO] [stdout]     |  __________________---_^
[INFO] [stdout]     | |                  |
[INFO] [stdout]     | |                  arguments to this method are incorrect
[INFO] [stdout]  39 | |                     self.layers[i].activation(x, false)
[INFO] [stdout]     | |_______________________________________________________^ expected fn pointer, found closure
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected fn pointer `fn(f64, usize, usize) -> f64`
[INFO] [stdout]                   found closure `{closure@src/network.rs:38:22: 38:30}`
[INFO] [stdout] note: closures can only be coerced to `fn` types if they do not capture any variables
[INFO] [stdout]    --> src/network.rs:39:21
[INFO] [stdout]     |
[INFO] [stdout]  39 |                     self.layers[i].activation(x, false)
[INFO] [stdout]     |                     ^^^^        ^ `i` captured here
[INFO] [stdout]     |                     |
[INFO] [stdout]     |                     `self` captured here
[INFO] [stdout] note: method defined here
[INFO] [stdout]    --> src/math.rs:126:12
[INFO] [stdout]     |
[INFO] [stdout] 126 |     pub fn map(mut self, func: fn (f64, usize, usize) -> f64) -> Self {
[INFO] [stdout]     |            ^^^           -----------------------------------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout]    | |                          -------------------- temporary value created here
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 39 | |             gradient: &Matrix::new(size, 1),
[INFO] [stdout]    | |                        -------------------- temporary value created here
[INFO] [stdout] 40 | |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `nn-trainer` (bin "nn-trainer" test) due to 6 previous errors; 2 warnings emitted
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 38 | |             error: &Matrix::new(size, 1),
[INFO] [stdout]    | |                     -------------------- temporary value created here
[INFO] [stdout] ...  |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0515]: cannot return value referencing temporary value
[INFO] [stdout]   --> src/layer.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | /         Self {
[INFO] [stdout] 28 | |             size,
[INFO] [stdout] 29 | |
[INFO] [stdout] 30 | |             activation: get(activation),
[INFO] [stdout] ...  |
[INFO] [stdout] 36 | |             output: &Matrix::new(size, 1),
[INFO] [stdout]    | |                      -------------------- temporary value created here
[INFO] [stdout] ...  |
[INFO] [stdout] 41 | |             p_gradient: &Matrix::new(size, 1),
[INFO] [stdout] 42 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0106, E0308, E0515.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `nn-trainer` (bin "nn-trainer") due to 6 previous errors; 2 warnings emitted
[INFO] [stdout] For more information about an error, try `rustc --explain E0106`.
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492", kill_on_drop: false }`
[INFO] [stdout] 5c882985837c7c6c822378eda37495b23046bdd031d3f0d5b89bddc61f5e7492
