[INFO] cloning repository https://github.com/sudeepdino008/rust-webserver [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sudeepdino008/rust-webserver" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa6f325fbdd0bc251cc88bd080d0e473c61e7e18 [INFO] testing sudeepdino008/rust-webserver against master#61223975d46f794466efa832bc7562b9707ecc46+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sudeepdino008/rust-webserver on toolchain 61223975d46f794466efa832bc7562b9707ecc46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+61223975d46f794466efa832bc7562b9707ecc46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sudeepdino008/rust-webserver [INFO] finished tweaking git repo https://github.com/sudeepdino008/rust-webserver [INFO] tweaked toml for git repo https://github.com/sudeepdino008/rust-webserver written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/sudeepdino008/rust-webserver 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" "+61223975d46f794466efa832bc7562b9707ecc46" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing sudeepdino008/rust-webserver against try#d073071d77ce0f93b4fd8cc567a1e2b9e1b22126+rustflags=-Copt-level=3 for pr-121282 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver" "/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/sudeepdino008/rust-webserver on toolchain d073071d77ce0f93b4fd8cc567a1e2b9e1b22126 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sudeepdino008/rust-webserver [INFO] finished tweaking git repo https://github.com/sudeepdino008/rust-webserver [INFO] tweaked toml for git repo https://github.com/sudeepdino008/rust-webserver written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sudeepdino008/rust-webserver 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" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 44cef680c6e185c57b9121533b81df298dc245fb3f632141b2a38bdd13a4bf34 [INFO] running `Command { std: "docker" "start" "-a" "44cef680c6e185c57b9121533b81df298dc245fb3f632141b2a38bdd13a4bf34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "44cef680c6e185c57b9121533b81df298dc245fb3f632141b2a38bdd13a4bf34", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "44cef680c6e185c57b9121533b81df298dc245fb3f632141b2a38bdd13a4bf34", kill_on_drop: false }` [INFO] [stdout] 44cef680c6e185c57b9121533b81df298dc245fb3f632141b2a38bdd13a4bf34 [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 -Copt-level=3" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+d073071d77ce0f93b4fd8cc567a1e2b9e1b22126" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04c01f7374c9e618034bc79e87ae8e146989c87b273761d66e2f1bbd6bc09913 [INFO] running `Command { std: "docker" "start" "-a" "04c01f7374c9e618034bc79e87ae8e146989c87b273761d66e2f1bbd6bc09913", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling signal-hook v0.1.17 [INFO] [stderr] Compiling webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::VecDeque`, `mem`, `rc::Rc` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | collections::VecDeque, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 5 | mem, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | net::{TcpListener, TcpStream}, [INFO] [stdout] 7 | rc::Rc, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `pool` does not live long enough [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | reg_for_sigs(Box::new(|| { [INFO] [stdout] | - -- value captured here [INFO] [stdout] | __________________| [INFO] [stdout] | | [INFO] [stdout] 19 | | pool.shutdown(); [INFO] [stdout] | | ^^^^ borrowed value does not live long enough [INFO] [stdout] 20 | | })); [INFO] [stdout] | |______- cast requires that `pool` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 29 | } [INFO] [stdout] | - `pool` dropped here while still borrowed [INFO] [stdout] | [INFO] [stdout] = note: due to object lifetime defaults, `Box` actually means `Box<(dyn Fn() + Send + Sync + 'static)>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `func`, a captured variable in an `Fn` closure [INFO] [stdout] --> src/main.rs:32:70 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn reg_for_sigs(func: Box () + Send + Sync>) { [INFO] [stdout] | ---- captured outer variable [INFO] [stdout] 32 | unsafe { signal_hook::register(signal_hook::SIGINT, || on_sigint(func)) } [INFO] [stdout] | -- ^^^^ move occurs because `func` has type `Box`, which does not implement the `Copy` trait [INFO] [stdout] | | [INFO] [stdout] | captured by this `Fn` closure [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.workers` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:128:9 [INFO] [stdout] | [INFO] [stdout] 128 | self.workers.iter_mut().for_each(|worker| { [INFO] [stdout] | ^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 121 | pub fn shutdown(&mut self) { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0596, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `webserver` (bin "webserver") due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "04c01f7374c9e618034bc79e87ae8e146989c87b273761d66e2f1bbd6bc09913", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04c01f7374c9e618034bc79e87ae8e146989c87b273761d66e2f1bbd6bc09913", kill_on_drop: false }` [INFO] [stdout] 04c01f7374c9e618034bc79e87ae8e146989c87b273761d66e2f1bbd6bc09913