[INFO] fetching crate stream_throttle 0.5.1... [INFO] checking stream_throttle-0.5.1 against master#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] extracting crate stream_throttle 0.5.1 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate stream_throttle 0.5.1 on toolchain 91c0823ee63e793d990bb9fed898dc95b5d6db51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "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-7-tc1/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" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded socket2 v0.5.3 [INFO] [stderr] Downloaded async-global-executor v2.3.1 [INFO] [stderr] Downloaded value-bag v1.4.1 [INFO] [stderr] Downloaded rustix v0.37.23 [INFO] [stderr] Downloaded syn v2.0.31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f6ac2bfb3b0e3897a2993214133c699c082585b2104b4e26c1bc14e02e3329b [INFO] running `Command { std: "docker" "start" "-a" "1f6ac2bfb3b0e3897a2993214133c699c082585b2104b4e26c1bc14e02e3329b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f6ac2bfb3b0e3897a2993214133c699c082585b2104b4e26c1bc14e02e3329b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f6ac2bfb3b0e3897a2993214133c699c082585b2104b4e26c1bc14e02e3329b", kill_on_drop: false }` [INFO] [stdout] 1f6ac2bfb3b0e3897a2993214133c699c082585b2104b4e26c1bc14e02e3329b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d1be31ad6281af9aa9597445af4f2e7b78d90fad7bd528c21ed7d27f598d31a [INFO] running `Command { std: "docker" "start" "-a" "9d1be31ad6281af9aa9597445af4f2e7b78d90fad7bd528c21ed7d27f598d31a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking value-bag v1.4.1 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking parking v2.1.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling futures-util 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] Checking smallvec v1.11.0 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking async-global-executor v2.3.1 [INFO] [stderr] Compiling futures-macro v0.3.28 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Checking tokio v1.32.0 [INFO] [stderr] Checking async-std v1.12.0 [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.13s [INFO] running `Command { std: "docker" "inspect" "9d1be31ad6281af9aa9597445af4f2e7b78d90fad7bd528c21ed7d27f598d31a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d1be31ad6281af9aa9597445af4f2e7b78d90fad7bd528c21ed7d27f598d31a", kill_on_drop: false }` [INFO] [stdout] 9d1be31ad6281af9aa9597445af4f2e7b78d90fad7bd528c21ed7d27f598d31a [INFO] checking stream_throttle-0.5.1 against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] extracting crate stream_throttle 0.5.1 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate stream_throttle 0.5.1 on toolchain 519d6e23a6cb73c4d0f295f71ad37db8e95c54ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "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-7-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" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 97281727c7266074bb17e08540fa44a609eafc9b449b5f010400dc769aac064d [INFO] running `Command { std: "docker" "start" "-a" "97281727c7266074bb17e08540fa44a609eafc9b449b5f010400dc769aac064d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "97281727c7266074bb17e08540fa44a609eafc9b449b5f010400dc769aac064d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97281727c7266074bb17e08540fa44a609eafc9b449b5f010400dc769aac064d", kill_on_drop: false }` [INFO] [stdout] 97281727c7266074bb17e08540fa44a609eafc9b449b5f010400dc769aac064d [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=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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e30a95fec68f9f2290e3a673614a2dcdc9fdf879cf017f8c30df55feb0573097 [INFO] running `Command { std: "docker" "start" "-a" "e30a95fec68f9f2290e3a673614a2dcdc9fdf879cf017f8c30df55feb0573097", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (2 fixes) [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking futures-io v0.3.28 [INFO] [stderr] Checking memchr v2.6.3 [INFO] [stderr] Compiling crossbeam-utils v0.8.16 [INFO] [stderr] Checking value-bag v1.4.1 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Checking parking v2.1.0 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking async-lock v2.8.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling rustix v0.37.23 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Checking smallvec v1.11.0 [INFO] [stderr] Checking async-task v4.4.0 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking atomic-waker v1.1.1 [INFO] [stderr] Checking bytes v1.4.0 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Checking concurrent-queue v2.2.0 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking futures-lite v1.13.0 [INFO] [stderr] Checking async-channel v1.9.0 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.31 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking blocking v1.3.1 [INFO] [stderr] Checking async-executor v1.5.1 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Checking async-global-executor v2.3.1 [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-executor v0.3.28 [INFO] [stderr] Checking futures v0.3.28 [INFO] [stderr] Checking stream_throttle v0.5.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/hold_tokio.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/multi_stream_tokio.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.52s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking stream_throttle v0.5.1 (/tmp/fixit) [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: 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[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: 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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `stream_throttle` (lib test) due to 11 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "e30a95fec68f9f2290e3a673614a2dcdc9fdf879cf017f8c30df55feb0573097", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e30a95fec68f9f2290e3a673614a2dcdc9fdf879cf017f8c30df55feb0573097", kill_on_drop: false }` [INFO] [stdout] e30a95fec68f9f2290e3a673614a2dcdc9fdf879cf017f8c30df55feb0573097