[INFO] cloning repository https://github.com/mnickrogers/Rust-ML [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mnickrogers/Rust-ML" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnickrogers%2FRust-ML", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnickrogers%2FRust-ML'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eef705bb8ad859a7fedc09c5b5f39b4e3a5d4d1e [INFO] checking mnickrogers/Rust-ML against try#9053a8ad740a9e131b53ea98acecf68cf79134fe for pr-137045 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnickrogers%2FRust-ML" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mnickrogers/Rust-ML on toolchain 9053a8ad740a9e131b53ea98acecf68cf79134fe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9053a8ad740a9e131b53ea98acecf68cf79134fe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mnickrogers/Rust-ML [INFO] finished tweaking git repo https://github.com/mnickrogers/Rust-ML [INFO] tweaked toml for git repo https://github.com/mnickrogers/Rust-ML written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mnickrogers/Rust-ML 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" "+9053a8ad740a9e131b53ea98acecf68cf79134fe" "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 mnickrogers/Rust-ML against try#9053a8ad740a9e131b53ea98acecf68cf79134fe for pr-137045 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmnickrogers%2FRust-ML" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mnickrogers/Rust-ML on toolchain 9053a8ad740a9e131b53ea98acecf68cf79134fe [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9053a8ad740a9e131b53ea98acecf68cf79134fe" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mnickrogers/Rust-ML [INFO] finished tweaking git repo https://github.com/mnickrogers/Rust-ML [INFO] tweaked toml for git repo https://github.com/mnickrogers/Rust-ML written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/mnickrogers/Rust-ML 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" "+9053a8ad740a9e131b53ea98acecf68cf79134fe" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9053a8ad740a9e131b53ea98acecf68cf79134fe" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c17c19da277be6d47f6bdea0f9211b91de494a8cafbdd642871fe42eaf8ae95d [INFO] running `Command { std: "docker" "start" "-a" "c17c19da277be6d47f6bdea0f9211b91de494a8cafbdd642871fe42eaf8ae95d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c17c19da277be6d47f6bdea0f9211b91de494a8cafbdd642871fe42eaf8ae95d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c17c19da277be6d47f6bdea0f9211b91de494a8cafbdd642871fe42eaf8ae95d", kill_on_drop: false }` [INFO] [stdout] c17c19da277be6d47f6bdea0f9211b91de494a8cafbdd642871fe42eaf8ae95d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+9053a8ad740a9e131b53ea98acecf68cf79134fe" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 598892ab5a7ca452cef4be46a2180ebdec068bf46ec4b9f3c113df09df2f6cc2 [INFO] running `Command { std: "docker" "start" "-a" "598892ab5a7ca452cef4be46a2180ebdec068bf46ec4b9f3c113df09df2f6cc2", kill_on_drop: false }` [INFO] [stderr] Checking rust_ml v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/main.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hash::Hash` [INFO] [stdout] --> src/main.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashSet, hash::Hash}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | build_topo(child, topo, visited); [INFO] [stdout] | ---------- ^^^^^ expected `&mut Value`, found `&mut *mut Value` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Value` [INFO] [stdout] found mutable reference `&mut *mut Value` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | fn build_topo(v: &mut Value, topo: &mut Vec<&mut Value>, visited: &mut HashSet<*mut Value>) { [INFO] [stdout] | ^^^^^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | build_topo(child, topo, visited); [INFO] [stdout] | ---------- ^^^^^ expected `&mut Value`, found `&mut *mut Value` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut Value` [INFO] [stdout] found mutable reference `&mut *mut Value` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | fn build_topo(v: &mut Value, topo: &mut Vec<&mut Value>, visited: &mut HashSet<*mut Value>) { [INFO] [stdout] | ^^^^^^^^^^ ------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `node._backward` which is behind a shared reference [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | node._backward; [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `node._backward` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `node._backward` which is behind a shared reference [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | node._backward; [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `node._backward` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `out.grad` does not live long enough [INFO] [stdout] --> src/main.rs:76:32 [INFO] [stdout] | [INFO] [stdout] 66 | let mut out = Value{ [INFO] [stdout] | ------- binding `out` declared here [INFO] [stdout] ... [INFO] [stdout] 75 | let _backward = || { [INFO] [stdout] | -- value captured here [INFO] [stdout] 76 | self.grad += 1.0 * out.grad; [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ------------- coercion requires that `out.grad` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 82 | } [INFO] [stdout] | - `out.grad` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn FnMut() + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `out.grad` does not live long enough [INFO] [stdout] --> src/main.rs:76:32 [INFO] [stdout] | [INFO] [stdout] 66 | let mut out = Value{ [INFO] [stdout] | ------- binding `out` declared here [INFO] [stdout] ... [INFO] [stdout] 75 | let _backward = || { [INFO] [stdout] | -- value captured here [INFO] [stdout] 76 | self.grad += 1.0 * out.grad; [INFO] [stdout] | ^^^^^^^^ borrowed value does not live long enough [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ------------- coercion requires that `out.grad` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 82 | } [INFO] [stdout] | - `out.grad` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn FnMut() + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add(&mut self, other: &mut Value) -> Value { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ^^^^^^^^^^^^^ coercion requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add(&mut self, other: &mut Value) -> Value { [INFO] [stdout] | - let's call the lifetime of this reference `'2` [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ^^^^^^^^^^^^^ coercion requires that `'2` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add(&mut self, other: &mut Value) -> Value { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ^^^^^^^^^^^^^ coercion requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/main.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add(&mut self, other: &mut Value) -> Value { [INFO] [stdout] | - let's call the lifetime of this reference `'2` [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ^^^^^^^^^^^^^ coercion requires that `'2` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `out` because it is borrowed [INFO] [stdout] --> src/main.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 75 | let _backward = || { [INFO] [stdout] | -- borrow of `out.grad` occurs here [INFO] [stdout] 76 | self.grad += 1.0 * out.grad; [INFO] [stdout] | -------- borrow occurs due to use in closure [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ------------- coercion requires that `out.grad` is borrowed for `'static` [INFO] [stdout] 80 | [INFO] [stdout] 81 | return out; [INFO] [stdout] | ^^^ move out of `out` occurs here [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn FnMut() + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `out` because it is borrowed [INFO] [stdout] --> src/main.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 75 | let _backward = || { [INFO] [stdout] | -- borrow of `out.grad` occurs here [INFO] [stdout] 76 | self.grad += 1.0 * out.grad; [INFO] [stdout] | -------- borrow occurs due to use in closure [INFO] [stdout] ... [INFO] [stdout] 79 | out._backward = Box::new(_backward); [INFO] [stdout] | ------------- coercion requires that `out.grad` is borrowed for `'static` [INFO] [stdout] 80 | [INFO] [stdout] 81 | return out; [INFO] [stdout] | ^^^ move out of `out` occurs here [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn FnMut() + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0505, E0507, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0505, E0507, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_ml` (bin "rust_ml") due to 6 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_ml` (bin "rust_ml" test) due to 6 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "598892ab5a7ca452cef4be46a2180ebdec068bf46ec4b9f3c113df09df2f6cc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "598892ab5a7ca452cef4be46a2180ebdec068bf46ec4b9f3c113df09df2f6cc2", kill_on_drop: false }` [INFO] [stdout] 598892ab5a7ca452cef4be46a2180ebdec068bf46ec4b9f3c113df09df2f6cc2