[INFO] fetching crate stream_throttle 0.5.1... [INFO] checking stream_throttle-0.5.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate stream_throttle 0.5.1 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate stream_throttle 0.5.1 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 stream_throttle 0.5.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate stream_throttle 0.5.1 [INFO] tweaked toml for crates.io crate stream_throttle 0.5.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate crates.io crate stream_throttle 0.5.1 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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] c099c0576c7b73315d5b95b75aea91e970c0103c9617c17a6bb4e66286d835cf [INFO] running `Command { std: "docker" "start" "-a" "c099c0576c7b73315d5b95b75aea91e970c0103c9617c17a6bb4e66286d835cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c099c0576c7b73315d5b95b75aea91e970c0103c9617c17a6bb4e66286d835cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c099c0576c7b73315d5b95b75aea91e970c0103c9617c17a6bb4e66286d835cf", kill_on_drop: false }` [INFO] [stdout] c099c0576c7b73315d5b95b75aea91e970c0103c9617c17a6bb4e66286d835cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 1fb270fee54777b2dcabefe971feb23b407180451bbe8b8a4d8b790846dbf5cd [INFO] running `Command { std: "docker" "start" "-a" "1fb270fee54777b2dcabefe971feb23b407180451bbe8b8a4d8b790846dbf5cd", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking value-bag v1.4.1 [INFO] [stderr] Checking fastrand v1.9.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking parking v2.1.0 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Checking futures-channel v0.3.28 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking parking_lot_core v0.9.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Checking async-std v1.12.0 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking futures-util v0.3.28 [INFO] [stderr] Checking futures-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking stream_throttle v0.5.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0597]: `self` does not live long enough [INFO] [stdout] --> src/stream.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 59 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll> { [INFO] [stdout] | -------- binding `self` declared here [INFO] [stdout] ... [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ^^^^ borrowed value does not live long enough [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - `self` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ^^^^^^^^^^^^^ ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/stream.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 59 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ^^^^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] 66 | [INFO] [stdout] 67 | *self.as_mut().state_unpinned() = State::Slot; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 72 | let _ = ready!(self [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 73 | | .as_mut() [INFO] [stdout] | |_________________________________^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 80 | self.as_mut().slot_pinned().set(None); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 82 | *self.as_mut().state_unpinned() = State::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 87 | if let Some(item) = ready!(self.as_mut().stream_pinned().poll_next(cx)) { [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 89 | *self.as_mut().state_unpinned() = State::None; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 97 | *self.as_mut().state_unpinned() = State::Done; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `self` does not live long enough [INFO] [stdout] --> src/stream.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 59 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll> { [INFO] [stdout] | -------- binding `self` declared here [INFO] [stdout] ... [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ^^^^ borrowed value does not live long enough [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 104 | } [INFO] [stdout] | - `self` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:65:6 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ^^^^^^^^^^^^^ ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] | | [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/stream.rs:65:43 [INFO] [stdout] | [INFO] [stdout] 59 | fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context) -> Poll> { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ^^^^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:67:7 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] 66 | [INFO] [stdout] 67 | *self.as_mut().state_unpinned() = State::Slot; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:72:21 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 72 | let _ = ready!(self [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 73 | | .as_mut() [INFO] [stdout] | |_________________________________^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:80:6 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 80 | self.as_mut().slot_pinned().set(None); [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 82 | *self.as_mut().state_unpinned() = State::Stream; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:87:33 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 87 | if let Some(item) = ready!(self.as_mut().stream_pinned().poll_next(cx)) { [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 89 | *self.as_mut().state_unpinned() = State::None; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/stream.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 64 | let slot = self.pool.queue().boxed(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 65 | self.as_mut().slot_pinned().set(Some(slot)); [INFO] [stdout] | ---- cast requires that `self` is borrowed for `'static` [INFO] [stdout] ... [INFO] [stdout] 97 | *self.as_mut().state_unpinned() = State::Done; [INFO] [stdout] | ^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `stream_throttle` (lib test) due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stream_throttle` (lib) due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "1fb270fee54777b2dcabefe971feb23b407180451bbe8b8a4d8b790846dbf5cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1fb270fee54777b2dcabefe971feb23b407180451bbe8b8a4d8b790846dbf5cd", kill_on_drop: false }` [INFO] [stdout] 1fb270fee54777b2dcabefe971feb23b407180451bbe8b8a4d8b790846dbf5cd