[INFO] cloning repository https://github.com/sozu-proxy/keepalive-bench [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sozu-proxy/keepalive-bench" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsozu-proxy%2Fkeepalive-bench", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsozu-proxy%2Fkeepalive-bench'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae1d1e142865e4b4c83f4f9a1def2470ef81e518 [INFO] checking sozu-proxy/keepalive-bench against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsozu-proxy%2Fkeepalive-bench" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sozu-proxy/keepalive-bench on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sozu-proxy/keepalive-bench [INFO] finished tweaking git repo https://github.com/sozu-proxy/keepalive-bench [INFO] tweaked toml for git repo https://github.com/sozu-proxy/keepalive-bench written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/sozu-proxy/keepalive-bench 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f973772dc06f8870f79fe0c5777d7d5bbd26b4c46eadac6f4f4a28e9f0d012c5 [INFO] running `Command { std: "docker" "start" "-a" "f973772dc06f8870f79fe0c5777d7d5bbd26b4c46eadac6f4f4a28e9f0d012c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f973772dc06f8870f79fe0c5777d7d5bbd26b4c46eadac6f4f4a28e9f0d012c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f973772dc06f8870f79fe0c5777d7d5bbd26b4c46eadac6f4f4a28e9f0d012c5", kill_on_drop: false }` [INFO] [stdout] f973772dc06f8870f79fe0c5777d7d5bbd26b4c46eadac6f4f4a28e9f0d012c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8184bb0537cf934f0cd6f5be43d62ac05cb3e096a610d0473f1a4d36306f95f4 [INFO] running `Command { std: "docker" "start" "-a" "8184bb0537cf934f0cd6f5be43d62ac05cb3e096a610d0473f1a4d36306f95f4", kill_on_drop: false }` [INFO] [stderr] Checking libc v0.2.33 [INFO] [stderr] Checking log v0.3.8 [INFO] [stderr] Checking futures v0.1.17 [INFO] [stderr] Checking byteorder v1.1.0 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking slab v0.3.0 [INFO] [stderr] Checking lazycell v0.5.1 [INFO] [stderr] Checking lazy_static v0.2.9 [INFO] [stderr] Checking regex-syntax v0.4.1 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking slab v0.4.0 [INFO] [stderr] Checking scoped-tls v0.1.0 [INFO] [stderr] Checking safemem v0.2.0 [INFO] [stderr] Checking take v0.1.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking smallvec v0.2.1 [INFO] [stderr] Checking percent-encoding v1.0.0 [INFO] [stderr] Checking serde v1.0.19 [INFO] [stderr] Checking httparse v1.2.3 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Checking ansi_term v0.9.0 [INFO] [stderr] Checking thread_local v0.3.4 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Checking base64 v0.6.0 [INFO] [stderr] Compiling unicase v2.0.0 [INFO] [stderr] Checking iovec v0.1.1 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking net2 v0.2.31 [INFO] [stderr] Checking num_cpus v1.7.0 [INFO] [stderr] Checking rand v0.3.17 [INFO] [stderr] Checking time v0.1.38 [INFO] [stderr] Checking bytes v0.4.5 [INFO] [stderr] Checking aho-corasick v0.6.3 [INFO] [stderr] Checking csv-core v0.1.3 [INFO] [stderr] Checking mio v0.6.11 [INFO] [stderr] Checking mime v0.3.5 [INFO] [stderr] Checking regex v0.2.2 [INFO] [stderr] Checking tokio-io v0.1.3 [INFO] [stderr] Checking tokio-service v0.1.0 [INFO] [stderr] Checking relay v0.1.0 [INFO] [stderr] Checking futures-cpupool v0.1.7 [INFO] [stderr] Checking tokio-core v0.1.10 [INFO] [stderr] Checking env_logger v0.4.3 [INFO] [stderr] Checking pretty_env_logger v0.1.1 [INFO] [stderr] Checking tokio-proto v0.1.1 [INFO] [stderr] Checking hyper v0.11.6 (https://github.com/hyperium/hyper#d3b19112) [INFO] [stderr] Checking csv v1.0.0-beta.5 [INFO] [stderr] Checking proxy-benchmark v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `header` [INFO] [stdout] --> src/main.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | use hyper::{Client, Uri, Error, header}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `header` [INFO] [stdout] --> src/main.rs:20:33 [INFO] [stdout] | [INFO] [stdout] 20 | use hyper::{Client, Uri, Error, header}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `conservative_impl_trait` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(conservative_impl_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `conservative_impl_trait` has been stable since 1.26.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(conservative_impl_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | type Future = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 235 | type Future = Box>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:235:21 [INFO] [stdout] | [INFO] [stdout] 235 | type Future = Box>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 235 | type Future = Box>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:194:27 [INFO] [stdout] | [INFO] [stdout] 194 | if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `port` [INFO] [stdout] --> src/main.rs:194:27 [INFO] [stdout] | [INFO] [stdout] 194 | if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_port` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:136:39 [INFO] [stdout] | [INFO] [stdout] 136 | let port_number = if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:136:39 [INFO] [stdout] | [INFO] [stdout] 136 | let port_number = if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | let port_number = if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:173:39 [INFO] [stdout] | [INFO] [stdout] 173 | let port_number = if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:194:23 [INFO] [stdout] | [INFO] [stdout] 194 | if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:194:23 [INFO] [stdout] | [INFO] [stdout] 194 | if let Ok(mut port) = frontend_port.try_lock() { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 51 | let client = HttpClient::new(&handle, id, shared_wtr.clone(), start.clone(), shared_status.clone()); [INFO] [stdout] | ------ variable defined here [INFO] [stdout] ... [INFO] [stdout] 56 | stream.for_each(move |_| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] 57 | client.call(&u) [INFO] [stdout] | ------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a closure that contains a reference to a captured variable, which then escapes the closure body [INFO] [stdout] | variable captured here [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: captured variable cannot escape `FnMut` closure body [INFO] [stdout] --> src/main.rs:57:9 [INFO] [stdout] | [INFO] [stdout] 51 | let client = HttpClient::new(&handle, id, shared_wtr.clone(), start.clone(), shared_status.clone()); [INFO] [stdout] | ------ variable defined here [INFO] [stdout] ... [INFO] [stdout] 56 | stream.for_each(move |_| { [INFO] [stdout] | - inferred to be a `FnMut` closure [INFO] [stdout] 57 | client.call(&u) [INFO] [stdout] | ------^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a closure that contains a reference to a captured variable, which then escapes the closure body [INFO] [stdout] | variable captured here [INFO] [stdout] | [INFO] [stdout] = note: `FnMut` closures only have access to their captured variables while they are executing... [INFO] [stdout] = note: ...therefore, they cannot allow references to captured variables to escape [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `proxy-benchmark` (bin "proxy-benchmark") due to 2 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `proxy-benchmark` (bin "proxy-benchmark" test) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8184bb0537cf934f0cd6f5be43d62ac05cb3e096a610d0473f1a4d36306f95f4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8184bb0537cf934f0cd6f5be43d62ac05cb3e096a610d0473f1a4d36306f95f4", kill_on_drop: false }` [INFO] [stdout] 8184bb0537cf934f0cd6f5be43d62ac05cb3e096a610d0473f1a4d36306f95f4