[INFO] fetching crate restate-sdk 0.3.0... [INFO] checking restate-sdk-0.3.0 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate restate-sdk 0.3.0 into /workspace/builds/worker-7-tc2/source [INFO] validating manifest of crates.io crate restate-sdk 0.3.0 on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-7-tc2/source/rust-toolchain.toml [INFO] started tweaking crates.io crate restate-sdk 0.3.0 [INFO] removed 0 missing examples [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate restate-sdk 0.3.0 [INFO] tweaked toml for crates.io crate restate-sdk 0.3.0 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate crates.io crate restate-sdk 0.3.0 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1498ab386d0320be46b04866eb744ff83407515c2499f03f1f8095e6b1c4effa [INFO] running `Command { std: "docker" "start" "-a" "1498ab386d0320be46b04866eb744ff83407515c2499f03f1f8095e6b1c4effa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1498ab386d0320be46b04866eb744ff83407515c2499f03f1f8095e6b1c4effa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1498ab386d0320be46b04866eb744ff83407515c2499f03f1f8095e6b1c4effa", kill_on_drop: false }` [INFO] [stdout] 1498ab386d0320be46b04866eb744ff83407515c2499f03f1f8095e6b1c4effa [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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b75cf884909bf14be366075d87b868574347e634bb5cf3dfe9fafb0740e9947b [INFO] running `Command { std: "docker" "start" "-a" "b75cf884909bf14be366075d87b868574347e634bb5cf3dfe9fafb0740e9947b", 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 (4 fixes) [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling cc v1.1.6 [INFO] [stderr] Checking itoa v1.0.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling tokio v1.29.1 [INFO] [stderr] Checking slab v0.4.6 [INFO] [stderr] Checking socket2 v0.4.10 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_json v1.0.120 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling serde_derive_internals v0.29.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling schemars v0.8.21 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling dyn-clone v1.0.17 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling either v1.7.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling anyhow v1.0.59 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Compiling itertools v0.10.3 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling schemars_derive v0.8.21 [INFO] [stderr] Compiling regress v0.9.1 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling prettyplease v0.2.20 [INFO] [stderr] Checking hybrid-array v0.2.0-rc.9 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking untrusted v0.9.0 [INFO] [stderr] Checking const-oid v0.10.0-pre.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking pem v3.0.4 [INFO] [stderr] Checking crypto-common v0.2.0-pre.5 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Checking winnow v0.6.16 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking bytes-utils v0.1.4 [INFO] [stderr] Compiling prost-derive v0.13.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rustls-pki-types v1.8.0 [INFO] [stderr] Compiling trybuild v1.0.98 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking bs58 v0.5.1 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rustls-pemfile v2.1.3 [INFO] [stderr] Checking regress v0.10.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Compiling restate-sdk-macros v0.3.0 [INFO] [stderr] Checking block-buffer v0.11.0-pre.5 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking digest v0.11.0-pre.8 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking sha2 v0.11.0-pre.3 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking futures-executor v0.3.21 [INFO] [stderr] Checking futures v0.3.21 [INFO] [stderr] Checking prost v0.13.1 [INFO] [stderr] Checking simple_asn1 v0.6.2 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.4.5 [INFO] [stderr] Compiling ambassador v0.4.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking toml_datetime v0.6.7 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking toml_edit v0.22.17 [INFO] [stderr] Compiling serde_tokenstream v0.2.1 [INFO] [stderr] Checking jsonwebtoken v9.3.0 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking restate-sdk-shared-core v0.1.0 [INFO] [stderr] Compiling jsonptr v0.5.1 [INFO] [stderr] Checking toml v0.8.16 [INFO] [stderr] Compiling typify-impl v0.1.0 [INFO] [stderr] Checking hyper-util v0.1.7 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking reqwest v0.12.5 [INFO] [stderr] Compiling typify-macro v0.1.0 [INFO] [stderr] Compiling typify v0.1.0 [INFO] [stderr] Compiling restate-sdk v0.3.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `restate_sdk` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/endpoint/context.rs [INFO] [stderr] * src/endpoint/futures/async_result_poll.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endpoint/context.rs:92:6 [INFO] [stderr] | [INFO] [stderr] 92 | ($mutex:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endpoint/futures/async_result_poll.rs:46:6 [INFO] [stderr] | [INFO] [stderr] 46 | ($mutex:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endpoint/context.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | ($mutex:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 92 | ($mutex:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endpoint/futures/async_result_poll.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | ($mutex:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($mutex:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn input(&self) -> impl Future { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn input(&self) -> impl Future { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 136 | pub fn input(&self) -> impl Future + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, TerminalError>> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> impl Future, TerminalError>> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 199 | key: &str, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 200 | ) -> impl Future, TerminalError>> + Send + Sync + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, TerminalError>> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:226:10 [INFO] [stdout] | [INFO] [stdout] 226 | ) -> impl Future, TerminalError>> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 226 | ) -> impl Future, TerminalError>> + Send + Sync + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | ) -> impl Future> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 276 | ) -> impl Future> + Send + Sync + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:305:10 [INFO] [stdout] | [INFO] [stdout] 305 | ) -> impl Future> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 305 | ) -> impl Future> + Send + Sync + use { [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | impl Future> + Send + Sync, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 380 | impl Future> + Send + Sync + use, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:450:10 [INFO] [stdout] | [INFO] [stdout] 450 | ) -> impl Future> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:448:9 [INFO] [stdout] | [INFO] [stdout] 448 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 449 | name: &str, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 450 | ) -> impl Future> + Send + Sync + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, TerminalError>> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:480:10 [INFO] [stdout] | [INFO] [stdout] 480 | ) -> impl Future, TerminalError>> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 479 | name: &str, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 480 | ) -> impl Future, TerminalError>> + Send + Sync + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:581:12 [INFO] [stdout] | [INFO] [stdout] 581 | if let TakeOutputResult::Buffer(b) = out { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 581 ~ match out { TakeOutputResult::Buffer(b) => { [INFO] [stdout] 582 | if !inner_lock.write.send(b) { [INFO] [stdout] 583 | // Nothing we can do anymore here [INFO] [stdout] 584 | } [INFO] [stdout] 585 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/endpoint/handler_state.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | if let Some(tx) = self.tx.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/endpoint/handler_state.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 15 ~ match self.tx.take() { Some(tx) => { [INFO] [stdout] 16 | let _ = tx.send(err); [INFO] [stdout] 17 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/context/request.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn call(self) -> impl Future> + Send [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/context/request.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | impl<'a, Req, Res> Request<'a, Req, Res> { [INFO] [stdout] | ^^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 90 | pub fn call(self) -> impl Future> + Send + use [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/http_server.rs:69:28 [INFO] [stdout] | [INFO] [stdout] 69 | if let Err(e) = fut.await { [INFO] [stdout] | ^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/http_server.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match fut.await { Err(e) => { [INFO] [stdout] 70 | warn!("Error serving connection {remote}: {:?}", e); [INFO] [stdout] 71 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hyper.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | if let Some(out) = ready!(self.output_rx.poll_recv(cx)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hyper.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | } else { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/greeter.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `restate_sdk` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/endpoint/context.rs [INFO] [stderr] * src/endpoint/futures/async_result_poll.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endpoint/context.rs:92:6 [INFO] [stderr] | [INFO] [stderr] 92 | ($mutex:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/endpoint/futures/async_result_poll.rs:46:6 [INFO] [stderr] | [INFO] [stderr] 46 | ($mutex:expr_2021) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endpoint/context.rs:92:13 [INFO] [stdout] | [INFO] [stdout] 92 | ($mutex:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 92 | ($mutex:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/endpoint/futures/async_result_poll.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | ($mutex:expr) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($mutex:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:136:44 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn input(&self) -> impl Future { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:136:34 [INFO] [stdout] | [INFO] [stdout] 136 | pub fn input(&self) -> impl Future { [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] = note: `--force-warn impl-trait-overcaptures` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 136 | pub fn input(&self) -> impl Future + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, TerminalError>> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:200:10 [INFO] [stdout] | [INFO] [stdout] 200 | ) -> impl Future, TerminalError>> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 199 | key: &str, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 200 | ) -> impl Future, TerminalError>> + Send + Sync + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, TerminalError>> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:226:10 [INFO] [stdout] | [INFO] [stdout] 226 | ) -> impl Future, TerminalError>> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 226 | ) -> impl Future, TerminalError>> + Send + Sync + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 276 | ) -> impl Future> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:274:9 [INFO] [stdout] | [INFO] [stdout] 274 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 276 | ) -> impl Future> + Send + Sync + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:305:10 [INFO] [stdout] | [INFO] [stdout] 305 | ) -> impl Future> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 305 | ) -> impl Future> + Send + Sync + use { [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:380:9 [INFO] [stdout] | [INFO] [stdout] 380 | impl Future> + Send + Sync, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | &self, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 380 | impl Future> + Send + Sync + use, [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:450:10 [INFO] [stdout] | [INFO] [stdout] 450 | ) -> impl Future> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:448:9 [INFO] [stdout] | [INFO] [stdout] 448 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 449 | name: &str, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 450 | ) -> impl Future> + Send + Sync + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future, TerminalError>> + std::marker::Send + Sync` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:480:10 [INFO] [stdout] | [INFO] [stdout] 480 | ) -> impl Future, TerminalError>> + Send + Sync { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/endpoint/context.rs:478:9 [INFO] [stdout] | [INFO] [stdout] 478 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 479 | name: &str, [INFO] [stdout] | ^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 480 | ) -> impl Future, TerminalError>> + Send + Sync + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:581:12 [INFO] [stdout] | [INFO] [stdout] 581 | if let TakeOutputResult::Buffer(b) = out { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^--- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/endpoint/context.rs:585:9 [INFO] [stdout] | [INFO] [stdout] 585 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 581 ~ match out { TakeOutputResult::Buffer(b) => { [INFO] [stdout] 582 | if !inner_lock.write.send(b) { [INFO] [stdout] 583 | // Nothing we can do anymore here [INFO] [stdout] 584 | } [INFO] [stdout] 585 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/endpoint/handler_state.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | if let Some(tx) = self.tx.take() { [INFO] [stdout] | ^^^^^^^^^^^^^^^-------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/endpoint/handler_state.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 15 ~ match self.tx.take() { Some(tx) => { [INFO] [stdout] 16 | let _ = tx.send(err); [INFO] [stdout] 17 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + std::marker::Send` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/context/request.rs:90:26 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn call(self) -> impl Future> + Send [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see [INFO] [stdout] note: specifically, this lifetime is in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/context/request.rs:79:6 [INFO] [stdout] | [INFO] [stdout] 79 | impl<'a, Req, Res> Request<'a, Req, Res> { [INFO] [stdout] | ^^ [INFO] [stdout] = note: all lifetimes in scope will be captured by `impl Trait`s in edition 2024 [INFO] [stdout] help: use the precise capturing `use<...>` syntax to make the captures explicit [INFO] [stdout] | [INFO] [stdout] 90 | pub fn call(self) -> impl Future> + Send + use [INFO] [stdout] | +++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/http_server.rs:69:28 [INFO] [stdout] | [INFO] [stdout] 69 | if let Err(e) = fut.await { [INFO] [stdout] | ^^^^^^^^^^^^^--------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/http_server.rs:71:25 [INFO] [stdout] | [INFO] [stdout] 71 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 69 ~ match fut.await { Err(e) => { [INFO] [stdout] 70 | warn!("Error serving connection {remote}: {:?}", e); [INFO] [stdout] 71 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/hyper.rs:129:12 [INFO] [stdout] | [INFO] [stdout] 129 | if let Some(out) = ready!(self.output_rx.poll_recv(cx)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^------------------------------------ [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/hyper.rs:131:9 [INFO] [stdout] | [INFO] [stdout] 131 | } else { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/failures.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/compiletest.rs from 2021 edition to 2024 [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> examples/failures.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | async fn do_run(&self, context: Context<'_>) -> Result<(), TerminalError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #123748 [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: Serialize` will fail [INFO] [stdout] --> examples/failures.rs:19:14 [INFO] [stdout] | [INFO] [stdout] 19 | .run(|| async move { [INFO] [stdout] | ^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/run.rs from 2021 edition to 2024 [INFO] [stderr] Migrating examples/counter.rs from 2021 edition to 2024 [INFO] [stderr] Migrating tests/service.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 21.28s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling restate-sdk v0.3.0 (/tmp/fixit) [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `key` [INFO] [stdout] --> src/context/mod.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 416 | key: &str, [INFO] [stdout] | ---- help: add explicit lifetime `'ctx` to the type of `key`: `&'ctx str` [INFO] [stdout] 417 | ) -> impl Future, TerminalError>> + 'ctx { [INFO] [stdout] 418 | self.inner_context().get(key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'ctx` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `key` [INFO] [stdout] --> src/context/mod.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 466 | key: &str, [INFO] [stdout] | ---- help: add explicit lifetime `'ctx` to the type of `key`: `&'ctx str` [INFO] [stdout] 467 | ) -> impl Future> + 'ctx { [INFO] [stdout] 468 | self.inner_context().promise(key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'ctx` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `key` [INFO] [stdout] --> src/context/mod.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 474 | key: &str, [INFO] [stdout] | ---- help: add explicit lifetime `'ctx` to the type of `key`: `&'ctx str` [INFO] [stdout] 475 | ) -> impl Future, TerminalError>> + 'ctx { [INFO] [stdout] 476 | self.inner_context().peek_promise(key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'ctx` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `key` [INFO] [stdout] --> src/context/mod.rs:418:9 [INFO] [stdout] | [INFO] [stdout] 416 | key: &str, [INFO] [stdout] | ---- help: add explicit lifetime `'ctx` to the type of `key`: `&'ctx str` [INFO] [stdout] 417 | ) -> impl Future, TerminalError>> + 'ctx { [INFO] [stdout] 418 | self.inner_context().get(key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'ctx` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `key` [INFO] [stdout] --> src/context/mod.rs:468:9 [INFO] [stdout] | [INFO] [stdout] 466 | key: &str, [INFO] [stdout] | ---- help: add explicit lifetime `'ctx` to the type of `key`: `&'ctx str` [INFO] [stdout] 467 | ) -> impl Future> + 'ctx { [INFO] [stdout] 468 | self.inner_context().promise(key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'ctx` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0621]: explicit lifetime required in the type of `key` [INFO] [stdout] --> src/context/mod.rs:476:9 [INFO] [stdout] | [INFO] [stdout] 474 | key: &str, [INFO] [stdout] | ---- help: add explicit lifetime `'ctx` to the type of `key`: `&'ctx str` [INFO] [stdout] 475 | ) -> impl Future, TerminalError>> + 'ctx { [INFO] [stdout] 476 | self.inner_context().peek_promise(key) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime `'ctx` required [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0621`. [INFO] [stdout] [INFO] [stderr] error: could not compile `restate-sdk` (lib) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0621`. [INFO] [stdout] [INFO] [stderr] error: could not compile `restate-sdk` (lib test) due to 4 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" "b75cf884909bf14be366075d87b868574347e634bb5cf3dfe9fafb0740e9947b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b75cf884909bf14be366075d87b868574347e634bb5cf3dfe9fafb0740e9947b", kill_on_drop: false }` [INFO] [stdout] b75cf884909bf14be366075d87b868574347e634bb5cf3dfe9fafb0740e9947b