[INFO] fetching crate zksync_concurrency 0.6.0... [INFO] checking zksync_concurrency-0.6.0 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate zksync_concurrency 0.6.0 into /workspace/builds/worker-3-tc2/source [INFO] validating manifest of crates.io crate zksync_concurrency 0.6.0 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate zksync_concurrency 0.6.0 [INFO] finished tweaking crates.io crate zksync_concurrency 0.6.0 [INFO] tweaked toml for crates.io crate zksync_concurrency 0.6.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 104 packages to latest compatible versions [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 29343596ce385f2513ee22abff411703614cdbf59574e76c97a75b8adb9fdcc6 [INFO] running `Command { std: "docker" "start" "-a" "29343596ce385f2513ee22abff411703614cdbf59574e76c97a75b8adb9fdcc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29343596ce385f2513ee22abff411703614cdbf59574e76c97a75b8adb9fdcc6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29343596ce385f2513ee22abff411703614cdbf59574e76c97a75b8adb9fdcc6", kill_on_drop: false }` [INFO] [stdout] 29343596ce385f2513ee22abff411703614cdbf59574e76c97a75b8adb9fdcc6 [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=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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce97fe572b134454dd4795881d10b0f9b9e21f5797b383c2bd6de169a9fc0115 [INFO] running `Command { std: "docker" "start" "-a" "ce97fe572b134454dd4795881d10b0f9b9e21f5797b383c2bd6de169a9fc0115", 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] Compiling prometheus-client v0.22.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking dtoa v1.0.9 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling syn v2.0.89 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking compile-fmt v0.1.0 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking elsa v1.10.0 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling prometheus-client-derive-encode v0.4.2 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling ctor v0.2.9 [INFO] [stderr] Compiling vise-macros v0.2.0 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling pin-project-internal v1.1.7 [INFO] [stderr] Checking tokio v1.41.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking vise v0.2.0 [INFO] [stderr] Checking pin-project v1.1.7 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking zksync_concurrency v0.6.0 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/scope/mod.rs (3 fixes) [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 18 | ($ctx:expr_2021, $f:expr_2021) => {{ [INFO] [stdout] | ________________________________________- [INFO] [stdout] 19 | | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 20 | | }}; [INFO] [stdout] | | - [INFO] [stdout] | | | [INFO] [stdout] | |_____`__awaitee` calls a custom destructor [INFO] [stdout] | `__awaitee` will be dropped later as of Edition 2024 [INFO] [stdout] | [INFO] [stdout] ::: src/net/tcp/testonly.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 30 | | let mut listener = addr.bind()?; [INFO] [stdout] 31 | | let s1 = s.spawn(async { connect(ctx, *addr).await.unwrap() }); [INFO] [stdout] 32 | | let s2 = accept(ctx, &mut listener).await.unwrap()?; [INFO] [stdout] 33 | | Ok((s1.join(ctx).await.unwrap(), s2)) [INFO] [stdout] 34 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 35 | .await [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] 36 | .unwrap() [INFO] [stdout] 37 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/65132f36b923285d5da381c2fbafee6ce899e841/library/alloc/src/sync.rs:3171:1 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /rustc/65132f36b923285d5da381c2fbafee6ce899e841/library/alloc/src/sync.rs:3171:1 [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> src/ctx/mod.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | / impl Drop for Inner { [INFO] [stdout] 52 | | fn drop(&mut self) { [INFO] [stdout] 53 | | // Automatically cancel the context when State is dropped. [INFO] [stdout] 54 | | // This wakes the task awaiting parent cancellation, so that it doesn't leak. [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `__awaitee` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/io/poll_evented.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | impl Drop for PollEvented { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `__awaitee` invokes this custom destructor [INFO] [stdout] --> src/ctx/mod.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | / impl Drop for Inner { [INFO] [stdout] 52 | | fn drop(&mut self) { [INFO] [stdout] 53 | | // Automatically cancel the context when State is dropped. [INFO] [stdout] 54 | | // This wakes the task awaiting parent cancellation, so that it doesn't leak. [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `__awaitee` invokes this custom destructor [INFO] [stdout] --> src/scope/state.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | / impl Drop for CancelGuard { [INFO] [stdout] 99 | | fn drop(&mut self) { [INFO] [stdout] 100 | | self.terminate_guard().state().ctx.cancel(); [INFO] [stdout] 101 | | } [INFO] [stdout] 102 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `__awaitee` invokes this custom destructor [INFO] [stdout] --> src/scope/must_complete.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / impl Drop for Guard { [INFO] [stdout] 24 | | fn drop(&mut self) { [INFO] [stdout] 25 | | // We always abort here, no matter if compiled with panic=abort or panic=unwind. [INFO] [stdout] 26 | | eprintln!("dropped a non-abortable future before completion"); [INFO] [stdout] ... | [INFO] [stdout] 29 | | } [INFO] [stdout] 30 | | } [INFO] [stdout] | |_^ [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/io/poll_evented.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | impl Drop for PollEvented { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/ctx/rng.rs (1 fix) [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/net/tcp/testonly.rs:33:26 [INFO] [stdout] | [INFO] [stdout] 30 | let mut listener = addr.bind()?; [INFO] [stdout] | ------------ [INFO] [stdout] | | [INFO] [stdout] | `listener` calls a custom destructor [INFO] [stdout] | `listener` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 33 | Ok((s1.join(ctx).await.unwrap(), s2)) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 34 | }) [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `listener` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.41.1/src/io/poll_evented.rs:298:1 [INFO] [stdout] | [INFO] [stdout] 298 | impl Drop for PollEvented { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/scope/task.rs (1 fix) [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/scope/mod.rs:299:15 [INFO] [stdout] | [INFO] [stdout] 283 | let state = guard.terminate_guard().state().clone(); [INFO] [stdout] | ----- [INFO] [stdout] | | [INFO] [stdout] | `state` calls a custom destructor [INFO] [stdout] | `state` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 291 | let root_task_result = root_task.join_raw().await; [INFO] [stdout] | ---------------- [INFO] [stdout] | | [INFO] [stdout] | `root_task_result` calls a custom destructor [INFO] [stdout] | `root_task_result` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 299 | match state.take_err() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 309 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `state` invokes this custom destructor [INFO] [stdout] --> src/ctx/mod.rs:51:1 [INFO] [stdout] | [INFO] [stdout] 51 | / impl Drop for Inner { [INFO] [stdout] 52 | | fn drop(&mut self) { [INFO] [stdout] 53 | | // Automatically cancel the context when State is dropped. [INFO] [stdout] 54 | | // This wakes the task awaiting parent cancellation, so that it doesn't leak. [INFO] [stdout] ... | [INFO] [stdout] 58 | | } [INFO] [stdout] 59 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/sync/mod.rs (1 fix) [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/sync/mod.rs:166:15 [INFO] [stdout] | [INFO] [stdout] 166 | match pred(&*changed(ctx, recv).await?) { Some(v) => { [INFO] [stdout] | ^^^^^^^-------------------------^ [INFO] [stdout] | | | | [INFO] [stdout] | | | this value will be stored in a temporary; let us call it `#5` [INFO] [stdout] | | | up until Edition 2021 `#5` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | | | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | | | `#1` will be dropped later as of Edition 2024 [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#3` [INFO] [stdout] | | up until Edition 2021 `#3` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#4` [INFO] [stdout] | | up until Edition 2021 `#4` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | | `__awaitee` calls a custom destructor [INFO] [stdout] | | `__awaitee` will be dropped later as of Edition 2024 [INFO] [stdout] | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] 167 | return Ok(v); [INFO] [stdout] 168 | } _ => {}} [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#3` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/lock_api-0.4.12/src/rwlock.rs:1370:1 [INFO] [stdout] | [INFO] [stdout] 1370 | impl<'a, R: RawRwLock + 'a, T: ?Sized + 'a> Drop for RwLockReadGuard<'a, R, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `#4` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/lock_api-0.4.12/src/rwlock.rs:1370:1 [INFO] [stdout] | [INFO] [stdout] 1370 | impl<'a, R: RawRwLock + 'a, T: ?Sized + 'a> Drop for RwLockReadGuard<'a, R, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/lock_api-0.4.12/src/rwlock.rs:1370:1 [INFO] [stdout] | [INFO] [stdout] 1370 | impl<'a, R: RawRwLock + 'a, T: ?Sized + 'a> Drop for RwLockReadGuard<'a, R, T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/testonly.rs (1 fix) [INFO] [stderr] Fixed src/scope/macros.rs (4 fixes) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.04s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking zksync_concurrency v0.6.0 (/tmp/fixit) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/net/tcp/testonly.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 30 | | let mut listener = addr.bind()?; [INFO] [stdout] 31 | | let s1 = s.spawn(async { connect(ctx, *addr).await.unwrap() }); [INFO] [stdout] 32 | | let s2 = accept(ctx, &mut listener).await.unwrap()?; [INFO] [stdout] 33 | | Ok((s1.join(ctx).await.unwrap(), s2)) [INFO] [stdout] 34 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 35 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/net/tcp/testonly.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 30 | | let mut listener = addr.bind()?; [INFO] [stdout] 31 | | let s1 = s.spawn(async { connect(ctx, *addr).await.unwrap() }); [INFO] [stdout] 32 | | let s2 = accept(ctx, &mut listener).await.unwrap()?; [INFO] [stdout] 33 | | Ok((s1.join(ctx).await.unwrap(), s2)) [INFO] [stdout] 34 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 35 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zksync_concurrency` (lib) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/ctx/tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 10 | | s.cancel(); [INFO] [stdout] 11 | | assert!(!ctx.is_active()); [INFO] [stdout] 12 | | std::result::Result::Ok::<(), ()>(()) [INFO] [stdout] 13 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 14 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/ctx/tests.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | _______________- [INFO] [stdout] 42 | | s.spawn(async { [INFO] [stdout] 43 | | ctx.sleep_until(t).await.unwrap(); [INFO] [stdout] 44 | | tracing::info!("subtask terminating"); [INFO] [stdout] ... | [INFO] [stdout] 49 | | std::result::Result::Ok(()) [INFO] [stdout] 50 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 51 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/ctx/tests.rs:55:15 [INFO] [stdout] | [INFO] [stdout] 55 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | _______________- [INFO] [stdout] 56 | | s.spawn(async { [INFO] [stdout] 57 | | assert!(ctx.sleep_until(t).await.is_err()); [INFO] [stdout] 58 | | std::result::Result::Ok(()) [INFO] [stdout] ... | [INFO] [stdout] 61 | | R::Err(1) [INFO] [stdout] 62 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 63 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/ctx/tests.rs:75:15 [INFO] [stdout] | [INFO] [stdout] 75 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | _______________- [INFO] [stdout] 76 | | s.cancel(); [INFO] [stdout] 77 | | recv.recv(ctx).await [INFO] [stdout] 78 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 79 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/limiter/tests.rs:125:5 [INFO] [stdout] | [INFO] [stdout] 125 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 126 | | let now = ctx.now(); [INFO] [stdout] 127 | | s.spawn(async { [INFO] [stdout] 128 | | for _ in 0..n { [INFO] [stdout] ... | [INFO] [stdout] 139 | | ctx::OrCanceled::Ok(()) [INFO] [stdout] 140 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 141 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/limiter/tests.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 100 | | s.spawn(async { [INFO] [stdout] 101 | | // Drop permits after a delay. [INFO] [stdout] 102 | | ctx.sleep(delay).await?; [INFO] [stdout] ... | [INFO] [stdout] 111 | | ctx::OrCanceled::Ok(()) [INFO] [stdout] 112 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 113 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | ___________________- [INFO] [stdout] 32 | | s.spawn_blocking(|| R::Err(7)); [INFO] [stdout] 33 | | ctx.canceled().await; [INFO] [stdout] 34 | | s.spawn_blocking(|| R::Err(3)); [INFO] [stdout] 35 | | Ok(()) [INFO] [stdout] 36 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 37 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:47:19 [INFO] [stdout] | [INFO] [stdout] 47 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | ___________________- [INFO] [stdout] 48 | | s.spawn_blocking(|| { [INFO] [stdout] 49 | | scope::run_blocking!(ctx, move |ctx, s| { [INFO] [stdout] 50 | | s.spawn_blocking(|| scope::run_blocking!(ctx, |_, _| { R::Err(8) })); [INFO] [stdout] ... | [INFO] [stdout] 54 | | Ok(()) [INFO] [stdout] 55 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 56 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 71 | | s.spawn_blocking(|| { [INFO] [stdout] 72 | | ctx.canceled().block(); [INFO] [stdout] 73 | | R::Err(4) [INFO] [stdout] 74 | | }); [INFO] [stdout] 75 | | Ok(()) [INFO] [stdout] 76 | | }) [INFO] [stdout] | |______________- in this macro invocation [INFO] [stdout] 77 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:66:19 [INFO] [stdout] | [INFO] [stdout] 66 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | ___________________- [INFO] [stdout] 67 | | s.cancel(); [INFO] [stdout] 68 | | // scope::run! should start a task, [INFO] [stdout] 69 | | // even though the task has been already canceled. [INFO] [stdout] ... | [INFO] [stdout] 77 | | .await [INFO] [stdout] 78 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 79 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:93:19 [INFO] [stdout] | [INFO] [stdout] 93 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | ___________________- [INFO] [stdout] 94 | | s.spawn_bg_blocking(|| { [INFO] [stdout] 95 | | ctx.canceled().block(); [INFO] [stdout] 96 | | s.spawn_blocking(|| { [INFO] [stdout] ... | [INFO] [stdout] 102 | | Ok(()) [INFO] [stdout] 103 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 104 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:115:19 [INFO] [stdout] | [INFO] [stdout] 115 | let res = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | ___________________- [INFO] [stdout] 116 | | assert_eq!(Ok(5), s.spawn(async { Ok(5) }).join(ctx).await); [INFO] [stdout] 117 | | assert_eq!(Ok(9), s.spawn_blocking(|| { Ok(9) }).join(ctx).await); [INFO] [stdout] 118 | | assert_eq!( [INFO] [stdout] ... | [INFO] [stdout] 123 | | Ok(1) [INFO] [stdout] 124 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 125 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 138 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 139 | | s.spawn_blocking(|| { [INFO] [stdout] 140 | | scope::run_blocking!(ctx, |_ctx, s| { [INFO] [stdout] 141 | | s.spawn_blocking(|| { [INFO] [stdout] ... | [INFO] [stdout] 163 | | R::Ok(()) [INFO] [stdout] 164 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 165 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | / scope::run!(ctx, |ctx, s| async { [INFO] [stdout] 214 | | for _ in 0..N { [INFO] [stdout] 215 | | s.spawn(async { [INFO] [stdout] 216 | | ctx.canceled().await; [INFO] [stdout] ... | [INFO] [stdout] 231 | | anyhow::Ok(()) [INFO] [stdout] 232 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 233 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/scope/tests.rs:244:39 [INFO] [stdout] | [INFO] [stdout] 244 | let res: anyhow::Result<()> = scope::run!(ctx, |ctx, s| async { [INFO] [stdout] | _______________________________________- [INFO] [stdout] 245 | | s.spawn::<()>(async { [INFO] [stdout] 246 | | anyhow::bail!("simple error"); [INFO] [stdout] 247 | | }); [INFO] [stdout] 248 | | ctx.canceled().await; [INFO] [stdout] 249 | | panic!("overriding the error") [INFO] [stdout] 250 | | }) [INFO] [stdout] | |__________- in this macro invocation [INFO] [stdout] 251 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/sync/prunable_mpsc/tests.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | let res: Result<(), ctx::Canceled> = crate::scope::run!(&ctx, |ctx, s| async move { [INFO] [stdout] | __________________________________________- [INFO] [stdout] 29 | | // Pre-send sets 0 and 1, 1000 values each. [INFO] [stdout] 30 | | // Set 0 is expected to be pruned and dropped. [INFO] [stdout] 31 | | let values = (0..2000).map(|i| ValueType(i / 1000, i % 1000)); [INFO] [stdout] ... | [INFO] [stdout] 69 | | Ok(()) [INFO] [stdout] 70 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 71 | .await; [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `crate::scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/scope/macros.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | $crate::scope::Scope::new($ctx).run($f) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary value which is freed while still in use [INFO] [stdout] | [INFO] [stdout] ::: src/sync/tests.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | / scope::run!(ctx, |ctx, s| async move { [INFO] [stdout] 20 | | let (mut lock, lock_receiver) = ExclusiveLock::new("Hello".to_owned()); [INFO] [stdout] 21 | | s.spawn(async move { [INFO] [stdout] 22 | | lock.push_str(", world"); [INFO] [stdout] ... | [INFO] [stdout] 30 | | ctx::OrCanceled::Ok(()) [INFO] [stdout] 31 | | }) [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] 32 | .await [INFO] [stdout] | ----- borrow later used by call [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] = note: this error originates in the macro `scope::run` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zksync_concurrency` (lib test) due to 18 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" "ce97fe572b134454dd4795881d10b0f9b9e21f5797b383c2bd6de169a9fc0115", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce97fe572b134454dd4795881d10b0f9b9e21f5797b383c2bd6de169a9fc0115", kill_on_drop: false }` [INFO] [stdout] ce97fe572b134454dd4795881d10b0f9b9e21f5797b383c2bd6de169a9fc0115