[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#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sudeepdino008/rust-webserver on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "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-6-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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8301d2314bd629d174236cb69c0c5c537b4b3cee2172970dc65b1ec7999a4b56 [INFO] running `Command { std: "docker" "start" "-a" "8301d2314bd629d174236cb69c0c5c537b4b3cee2172970dc65b1ec7999a4b56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8301d2314bd629d174236cb69c0c5c537b4b3cee2172970dc65b1ec7999a4b56", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8301d2314bd629d174236cb69c0c5c537b4b3cee2172970dc65b1ec7999a4b56", kill_on_drop: false }` [INFO] [stdout] 8301d2314bd629d174236cb69c0c5c537b4b3cee2172970dc65b1ec7999a4b56 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebd3f62749902bcece418bd8a746b162f2e5f3df9e8636165292366be7515005 [INFO] running `Command { std: "docker" "start" "-a" "ebd3f62749902bcece418bd8a746b162f2e5f3df9e8636165292366be7515005", 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] 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] | |______- 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[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] | |______- 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[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[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 [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] [stdout] error: aborting due to 3 previous errors [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 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `webserver` (bin "webserver") due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "ebd3f62749902bcece418bd8a746b162f2e5f3df9e8636165292366be7515005", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebd3f62749902bcece418bd8a746b162f2e5f3df9e8636165292366be7515005", kill_on_drop: false }` [INFO] [stdout] ebd3f62749902bcece418bd8a746b162f2e5f3df9e8636165292366be7515005 [INFO] checking sudeepdino008/rust-webserver against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsudeepdino008%2Frust-webserver" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sudeepdino008/rust-webserver on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "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-6-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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cee7322a28a85e36d5fb8c6534a7333ea4e6d9230e7eb04ae58b1d1d1dbc697 [INFO] running `Command { std: "docker" "start" "-a" "3cee7322a28a85e36d5fb8c6534a7333ea4e6d9230e7eb04ae58b1d1d1dbc697", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cee7322a28a85e36d5fb8c6534a7333ea4e6d9230e7eb04ae58b1d1d1dbc697", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cee7322a28a85e36d5fb8c6534a7333ea4e6d9230e7eb04ae58b1d1d1dbc697", kill_on_drop: false }` [INFO] [stdout] 3cee7322a28a85e36d5fb8c6534a7333ea4e6d9230e7eb04ae58b1d1d1dbc697 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a20d31f6f7d0245edf3c5f156a3df36efbcf06ff7f45add064ff6c769019c2c [INFO] running `Command { std: "docker" "start" "-a" "5a20d31f6f7d0245edf3c5f156a3df36efbcf06ff7f45add064ff6c769019c2c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "5a20d31f6f7d0245edf3c5f156a3df36efbcf06ff7f45add064ff6c769019c2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a20d31f6f7d0245edf3c5f156a3df36efbcf06ff7f45add064ff6c769019c2c", kill_on_drop: false }` [INFO] [stdout] 5a20d31f6f7d0245edf3c5f156a3df36efbcf06ff7f45add064ff6c769019c2c