[INFO] fetching crate futures-rate 0.1.5... [INFO] checking futures-rate-0.1.5 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate futures-rate 0.1.5 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate futures-rate 0.1.5 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 crates.io crate futures-rate 0.1.5 [INFO] finished tweaking crates.io crate futures-rate 0.1.5 [INFO] tweaked toml for crates.io crate futures-rate 0.1.5 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate futures-rate 0.1.5 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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 7090908f7261785696df481f3c8b091ad13302da035a867670eae80cf66cf4dc [INFO] running `Command { std: "docker" "start" "-a" "7090908f7261785696df481f3c8b091ad13302da035a867670eae80cf66cf4dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7090908f7261785696df481f3c8b091ad13302da035a867670eae80cf66cf4dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7090908f7261785696df481f3c8b091ad13302da035a867670eae80cf66cf4dc", kill_on_drop: false }` [INFO] [stdout] 7090908f7261785696df481f3c8b091ad13302da035a867670eae80cf66cf4dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] 72b82b8e6b4709edc266be2e9f9170b830f740a6c263e5a3d914b7fb01aecfd7 [INFO] running `Command { std: "docker" "start" "-a" "72b82b8e6b4709edc266be2e9f9170b830f740a6c263e5a3d914b7fb01aecfd7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Checking futures-sink v0.3.1 [INFO] [stderr] Checking futures-core v0.3.1 [INFO] [stderr] Checking futures-io v0.3.1 [INFO] [stderr] Checking futures-channel v0.3.1 [INFO] [stderr] Checking futures-task v0.3.1 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Checking pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Checking num_cpus v1.11.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking crossbeam-queue v0.2.0 [INFO] [stderr] Checking futures-rate v0.1.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/gatekeeper.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | / ( [INFO] [stdout] 105 | | async move { [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | } [INFO] [stdout] | __________________^ [INFO] [stdout] 109 | | // Token {}, [INFO] [stdout] 110 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 ~ async move { [INFO] [stdout] 105 | ticket.await?; [INFO] [stdout] 106 | Ok(fut.await) [INFO] [stdout] 107 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Checking futures-util v0.3.1 [INFO] [stderr] Checking futures-executor v0.3.1 [INFO] [stderr] Checking futures v0.3.1 [INFO] [stdout] warning: unused imports: `GateKeeperConfig`, `TokenPolicy` [INFO] [stdout] --> examples/cooperative_mode.rs:5:32 [INFO] [stdout] | [INFO] [stdout] 5 | use futures_rate::{GateKeeper, GateKeeperConfig, TokenPolicy}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/gatekeeper.rs:104:13 [INFO] [stdout] | [INFO] [stdout] 104 | / ( [INFO] [stdout] 105 | | async move { [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 108 | } [INFO] [stdout] | __________________^ [INFO] [stdout] 109 | | // Token {}, [INFO] [stdout] 110 | | ), [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 104 ~ async move { [INFO] [stdout] 105 | ticket.await?; [INFO] [stdout] 106 | Ok(fut.await) [INFO] [stdout] 107 ~ }, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `tx` does not live long enough [INFO] [stdout] --> examples/with_thread_pool.rs:15:31 [INFO] [stdout] | [INFO] [stdout] 11 | let (tx, rx) = mpsc::unbounded::(); [INFO] [stdout] | -- binding `tx` declared here [INFO] [stdout] ... [INFO] [stdout] 15 | let fut_1 = build_fut(&tx, &gatekeeper); [INFO] [stdout] | ----------^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `tx` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 24 | }; [INFO] [stdout] | - `tx` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `tx` does not live long enough [INFO] [stdout] --> examples/with_thread_pool.rs:18:31 [INFO] [stdout] | [INFO] [stdout] 11 | let (tx, rx) = mpsc::unbounded::(); [INFO] [stdout] | -- binding `tx` declared here [INFO] [stdout] ... [INFO] [stdout] 18 | let fut_2 = build_fut(&tx, &gatekeeper); [INFO] [stdout] | ----------^^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `tx` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 24 | }; [INFO] [stdout] | - `tx` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `tx` does not live long enough [INFO] [stdout] --> examples/guard_resource.rs:25:34 [INFO] [stdout] | [INFO] [stdout] 24 | (0..count).for_each(|_| { [INFO] [stdout] | --- value captured here [INFO] [stdout] 25 | let fut = build_fut(&tx, &gatekeeper); [INFO] [stdout] | -----------^^-------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `tx` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 32 | }; [INFO] [stdout] | - `tx` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `tx` because it is borrowed [INFO] [stdout] --> examples/guard_resource.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 24 | (0..count).for_each(|_| { [INFO] [stdout] | --- borrow of `tx` occurs here [INFO] [stdout] 25 | let fut = build_fut(&tx, &gatekeeper); [INFO] [stdout] | --------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrow occurs due to use in closure [INFO] [stdout] | argument requires that `tx` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 29 | drop(tx); [INFO] [stdout] | ^^ move out of `tx` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `gatekeeper` does not live long enough [INFO] [stdout] --> examples/guard_resource.rs:25:39 [INFO] [stdout] | [INFO] [stdout] 23 | let fut_values = async { [INFO] [stdout] | ______________________- [INFO] [stdout] 24 | | (0..count).for_each(|_| { [INFO] [stdout] 25 | | let fut = build_fut(&tx, &gatekeeper); [INFO] [stdout] | | ----------------^^^^^^^^^^- [INFO] [stdout] | | | | [INFO] [stdout] | | | borrowed value does not live long enough [INFO] [stdout] | | argument requires that `gatekeeper` is borrowed for `'static` [INFO] [stdout] 26 | | pool.spawn_ok(fut); [INFO] [stdout] ... | [INFO] [stdout] 31 | | rx.map(|_| ()).collect::>().await [INFO] [stdout] 32 | | }; [INFO] [stdout] | |_____- value captured here by generator [INFO] [stdout] ... [INFO] [stdout] 41 | } [INFO] [stdout] | - `gatekeeper` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `tx` because it is borrowed [INFO] [stdout] --> examples/with_thread_pool.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 11 | let (tx, rx) = mpsc::unbounded::(); [INFO] [stdout] | -- binding `tx` declared here [INFO] [stdout] ... [INFO] [stdout] 15 | let fut_1 = build_fut(&tx, &gatekeeper); [INFO] [stdout] | --------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | borrow of `tx` occurs here [INFO] [stdout] | argument requires that `tx` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 21 | drop(tx); [INFO] [stdout] | ^^ move out of `tx` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `gatekeeper` does not live long enough [INFO] [stdout] --> examples/with_thread_pool.rs:15:37 [INFO] [stdout] | [INFO] [stdout] 14 | let fut_values = async { [INFO] [stdout] | ______________________- [INFO] [stdout] 15 | | let fut_1 = build_fut(&tx, &gatekeeper); [INFO] [stdout] | | ----------------^^^^^^^^^^- [INFO] [stdout] | | | | [INFO] [stdout] | | | borrowed value does not live long enough [INFO] [stdout] | | argument requires that `gatekeeper` is borrowed for `'static` [INFO] [stdout] 16 | | pool.spawn_ok(fut_1); [INFO] [stdout] 17 | | [INFO] [stdout] ... | [INFO] [stdout] 23 | | rx.map(|v| v * 2).collect().await [INFO] [stdout] 24 | | }; [INFO] [stdout] | |_____- value captured here by generator [INFO] [stdout] ... [INFO] [stdout] 31 | } [INFO] [stdout] | - `gatekeeper` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0505, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0505`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/cooperative_mode.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let mut keeper = GateKeeper::new(1); [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] error[E0597]: `keeper` does not live long enough [INFO] [stdout] --> examples/cooperative_mode.rs:28:23 [INFO] [stdout] | [INFO] [stdout] 23 | let fut_main = async { [INFO] [stdout] | ____________________- [INFO] [stdout] 24 | | (0..fut_count).for_each(|id| { [INFO] [stdout] 25 | | let mut path = PathBuf::new(); [INFO] [stdout] 26 | | path.push("./README.md"); [INFO] [stdout] 27 | | [INFO] [stdout] 28 | | let fut = keeper.issue(file_reader_fut(id + 1, path, &tx)).unwrap(); [INFO] [stdout] | | ^^^^^^------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | | argument requires that `keeper` is borrowed for `'static` [INFO] [stdout] ... | [INFO] [stdout] 35 | | rx.map(|count| count).collect().await [INFO] [stdout] 36 | | }; [INFO] [stdout] | |_____- value captured here by generator [INFO] [stdout] ... [INFO] [stdout] 40 | } [INFO] [stdout] | - `keeper` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `futures-rate` (example "with_thread_pool") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0597`. [INFO] [stdout] [INFO] [stderr] error: could not compile `futures-rate` (example "guard_resource") due to 4 previous errors [INFO] [stderr] error: could not compile `futures-rate` (example "cooperative_mode") due to 2 previous errors; 2 warnings emitted [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "72b82b8e6b4709edc266be2e9f9170b830f740a6c263e5a3d914b7fb01aecfd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72b82b8e6b4709edc266be2e9f9170b830f740a6c263e5a3d914b7fb01aecfd7", kill_on_drop: false }` [INFO] [stdout] 72b82b8e6b4709edc266be2e9f9170b830f740a6c263e5a3d914b7fb01aecfd7