[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] checking sudeepdino008/rust-webserver against master#b56aaec52bc0fa35591a872fb4aac81f606e265c for pr-122661-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [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-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/sudeepdino008/rust-webserver on toolchain b56aaec52bc0fa35591a872fb4aac81f606e265c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 77e34d13417c29750d8d30dd4ec33733941df37428b25b77da2beb3b48e0cc36 [INFO] running `Command { std: "docker" "start" "-a" "77e34d13417c29750d8d30dd4ec33733941df37428b25b77da2beb3b48e0cc36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "77e34d13417c29750d8d30dd4ec33733941df37428b25b77da2beb3b48e0cc36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77e34d13417c29750d8d30dd4ec33733941df37428b25b77da2beb3b48e0cc36", kill_on_drop: false }` [INFO] [stdout] 77e34d13417c29750d8d30dd4ec33733941df37428b25b77da2beb3b48e0cc36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+b56aaec52bc0fa35591a872fb4aac81f606e265c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92b81ce5eb9c374c63cbb255928b4738e7780137b70a68b8222a925720de0040 [INFO] running `Command { std: "docker" "start" "-a" "92b81ce5eb9c374c63cbb255928b4738e7780137b70a68b8222a925720de0040", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.95 [INFO] [stderr] Checking signal-hook-registry v1.3.0 [INFO] [stderr] Checking signal-hook v0.1.17 [INFO] [stderr] Checking webserver v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `collections::VecDeque`, `mem`, and `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] warning: unused imports: `collections::VecDeque`, `mem`, and `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] 16 | let pool = ThreadPool::new(5); [INFO] [stdout] | ---- binding `pool` declared here [INFO] [stdout] 17 | [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] | |______- coercion 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] 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 3 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0597]: `pool` does not live long enough [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 16 | let pool = ThreadPool::new(5); [INFO] [stdout] | ---- binding `pool` declared here [INFO] [stdout] 17 | [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] | |______- coercion 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] 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" test) due to 3 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "92b81ce5eb9c374c63cbb255928b4738e7780137b70a68b8222a925720de0040", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92b81ce5eb9c374c63cbb255928b4738e7780137b70a68b8222a925720de0040", kill_on_drop: false }` [INFO] [stdout] 92b81ce5eb9c374c63cbb255928b4738e7780137b70a68b8222a925720de0040