[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 try#595142ec72045c7f2fab2923de8e59995a52e6e7 for pr-151830 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Jonster5/rust-nn-trainer on toolchain 595142ec72045c7f2fab2923de8e59995a52e6e7 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "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" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "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-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bee2b5514139e9659b766227088a3293bc883a34d88e49d3b4351b247b7f032 [INFO] running `Command { std: "docker" "start" "-a" "5bee2b5514139e9659b766227088a3293bc883a34d88e49d3b4351b247b7f032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bee2b5514139e9659b766227088a3293bc883a34d88e49d3b4351b247b7f032", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bee2b5514139e9659b766227088a3293bc883a34d88e49d3b4351b247b7f032", kill_on_drop: false }` [INFO] [stdout] 5bee2b5514139e9659b766227088a3293bc883a34d88e49d3b4351b247b7f032 [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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+595142ec72045c7f2fab2923de8e59995a52e6e7" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 06f623d40e994b4793c84b50d111a9f6045277687fe55d28dc7b8160da57fa50 [INFO] running `Command { std: "docker" "start" "-a" "06f623d40e994b4793c84b50d111a9f6045277687fe55d28dc7b8160da57fa50", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [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, [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>, [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, [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>, [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] [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] [stderr] error: could not compile `nn-trainer` (bin "nn-trainer") due to 6 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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] [stderr] error: could not compile `nn-trainer` (bin "nn-trainer" test) due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "06f623d40e994b4793c84b50d111a9f6045277687fe55d28dc7b8160da57fa50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06f623d40e994b4793c84b50d111a9f6045277687fe55d28dc7b8160da57fa50", kill_on_drop: false }` [INFO] [stdout] 06f623d40e994b4793c84b50d111a9f6045277687fe55d28dc7b8160da57fa50