[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] testing Jonster5/rust-nn-trainer against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jonster5/rust-nn-trainer on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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] testing Jonster5/rust-nn-trainer against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonster5%2Frust-nn-trainer" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jonster5/rust-nn-trainer on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82a946276c3d8bedf18879b44c812c59a37e9b2efefc24298e98fed20a6038a8 [INFO] running `Command { std: "docker" "start" "-a" "82a946276c3d8bedf18879b44c812c59a37e9b2efefc24298e98fed20a6038a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82a946276c3d8bedf18879b44c812c59a37e9b2efefc24298e98fed20a6038a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82a946276c3d8bedf18879b44c812c59a37e9b2efefc24298e98fed20a6038a8", kill_on_drop: false }` [INFO] [stdout] 82a946276c3d8bedf18879b44c812c59a37e9b2efefc24298e98fed20a6038a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d4c3c657812c540b368f69a20a3945a595cb6b395805824bc365c85e3f396882 [INFO] running `Command { std: "docker" "start" "-a" "d4c3c657812c540b368f69a20a3945a595cb6b395805824bc365c85e3f396882", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.121 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.6 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling 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)]` 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)]` 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] [stderr] error: could not compile `nn-trainer` (bin "nn-trainer") due to 6 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d4c3c657812c540b368f69a20a3945a595cb6b395805824bc365c85e3f396882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d4c3c657812c540b368f69a20a3945a595cb6b395805824bc365c85e3f396882", kill_on_drop: false }` [INFO] [stdout] d4c3c657812c540b368f69a20a3945a595cb6b395805824bc365c85e3f396882