[INFO] fetching crate teloxide-core 0.10.1... [INFO] checking teloxide-core-0.10.1 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate teloxide-core 0.10.1 into /workspace/builds/worker-6-tc2/source [INFO] validating manifest of crates.io crate teloxide-core 0.10.1 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] started tweaking crates.io crate teloxide-core 0.10.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate teloxide-core 0.10.1 [INFO] tweaked toml for crates.io crate teloxide-core 0.10.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate crates.io crate teloxide-core 0.10.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] e2f14b61575497231f3a3728c9d12d5001864577ba3ea4ba7908f935de0d536e [INFO] running `Command { std: "docker" "start" "-a" "e2f14b61575497231f3a3728c9d12d5001864577ba3ea4ba7908f935de0d536e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e2f14b61575497231f3a3728c9d12d5001864577ba3ea4ba7908f935de0d536e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e2f14b61575497231f3a3728c9d12d5001864577ba3ea4ba7908f935de0d536e", kill_on_drop: false }` [INFO] [stdout] e2f14b61575497231f3a3728c9d12d5001864577ba3ea4ba7908f935de0d536e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 3e451ebc28ad986fd52dfd1808eb3c9ebf623a7c755757d119649b7786e65902 [INFO] running `Command { std: "docker" "start" "-a" "3e451ebc28ad986fd52dfd1808eb3c9ebf623a7c755757d119649b7786e65902", 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 (1 fix) [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Compiling serde v1.0.206 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Checking bitflags v2.4.2 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Checking indexmap v2.2.5 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling erasable v1.2.1 [INFO] [stderr] Compiling serde_json v1.0.124 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Checking rc-box v1.2.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking takecell v0.1.1 [INFO] [stderr] Checking take_mut v0.2.2 [INFO] [stderr] Compiling xshell-macros v0.2.6 [INFO] [stderr] Checking indent_write v2.2.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking cool_asserts v2.0.3 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking xshell v0.2.6 [INFO] [stderr] Compiling darling_core v0.13.4 [INFO] [stderr] Compiling serde_derive v1.0.206 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling darling_macro v0.13.4 [INFO] [stderr] Compiling darling v0.13.4 [INFO] [stderr] Compiling serde_with_macros v1.5.2 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking serde_with v1.14.0 [INFO] [stderr] Checking ron v0.7.1 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking teloxide-core v0.10.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `teloxide_core` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/errors.rs [INFO] [stderr] * src/local_macros.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/local_macros.rs:77:21 [INFO] [stderr] | [INFO] [stderr] 77 | #[doc = $doc: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/local_macros.rs:347:20 [INFO] [stderr] | [INFO] [stderr] 347 | (@convert_map ($e:expr_2021) [into]) => { [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/local_macros.rs:350:20 [INFO] [stderr] | [INFO] [stderr] 350 | (@convert_map ($e:expr_2021) [collect]) => { [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/local_macros.rs:353:20 [INFO] [stderr] | [INFO] [stderr] 353 | (@convert_map ($e: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/local_macros.rs:375:37 [INFO] [stderr] | [INFO] [stderr] 375 | ($T:ident $S:ty {$this:ident => $inner: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/errors.rs:97:84 [INFO] [stderr] | [INFO] [stderr] 97 | $var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: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/errors.rs:146:70 [INFO] [stderr] | [INFO] [stderr] 146 | (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block: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/errors.rs:153:54 [INFO] [stderr] | [INFO] [stderr] 153 | (@de $value:ident, $variant:ident, $val:literal, $block: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 8 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/local_macros.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | #[doc = $doc: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] 77 | #[doc = $doc: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/local_macros.rs:347:23 [INFO] [stdout] | [INFO] [stdout] 347 | (@convert_map ($e:expr) [into]) => { [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] 347 | (@convert_map ($e:expr_2021) [into]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/local_macros.rs:350:23 [INFO] [stdout] | [INFO] [stdout] 350 | (@convert_map ($e:expr) [collect]) => { [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] 350 | (@convert_map ($e:expr_2021) [collect]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/local_macros.rs:353:23 [INFO] [stdout] | [INFO] [stdout] 353 | (@convert_map ($e: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] 353 | (@convert_map ($e: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/local_macros.rs:375:44 [INFO] [stdout] | [INFO] [stdout] 375 | ($T:ident $S:ty {$this:ident => $inner: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] 375 | ($T:ident $S:ty {$this:ident => $inner: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/errors.rs:97:96 [INFO] [stdout] | [INFO] [stdout] 97 | $var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: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] 97 | $var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: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/errors.rs:146:77 [INFO] [stdout] | [INFO] [stdout] 146 | (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block: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] 146 | (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block: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/errors.rs:153:61 [INFO] [stdout] | [INFO] [stdout] 153 | (@de $value:ident, $variant:ident, $val:literal, $block: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] 153 | (@de $value:ident, $variant:ident, $val:literal, $block:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + 'o` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/net/download.rs:95:6 [INFO] [stdout] | [INFO] [stdout] 95 | ) -> impl Future> + 'o [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/net/download.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | client: &Client, [INFO] [stdout] | ^ [INFO] [stdout] 91 | api_url: Url, [INFO] [stdout] 92 | token: &str, [INFO] [stdout] | ^ [INFO] [stdout] 93 | path: &str, [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] 95 | ) -> impl Future> + 'o + use<'o, D> [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/download.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | while let Some(chunk) = res.chunk().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/net/download.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Stream> + 'static` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/net/download.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | ) -> impl Stream> + 'static { [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/net/download.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | client: &Client, [INFO] [stdout] | ^ [INFO] [stdout] 117 | api_url: Url, [INFO] [stdout] 118 | token: &str, [INFO] [stdout] | ^ [INFO] [stdout] 119 | path: &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] 120 | ) -> impl Stream> + 'static + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/request.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | if let TelegramResponse::Ok { response, .. } = &mut response { [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/net/request.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 138 ~ match &mut response { TelegramResponse::Ok { response, .. } => { [INFO] [stdout] 139 | if let Some(updates) = [INFO] [stdout] ... [INFO] [stdout] 153 | } [INFO] [stdout] 154 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/request.rs:145:32 [INFO] [stdout] | [INFO] [stdout] 145 | ... if let Ok(TelegramResponse::Ok { response: values, .. }) = re_parsed { [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/net/request.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 145 ~ match re_parsed { Ok(TelegramResponse::Ok { response: values, .. }) => { [INFO] [stdout] 146 | for (update, value) in zip::<_, Vec<_>>(updates, values) { [INFO] [stdout] ... [INFO] [stdout] 150 | } [INFO] [stdout] 151 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/request.rs:147:40 [INFO] [stdout] | [INFO] [stdout] 147 | ... if let UpdateKind::Error(dest) = &mut update.kind { [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/net/request.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 147 ~ match &mut update.kind { UpdateKind::Error(dest) => { [INFO] [stdout] 148 | *dest = value; [INFO] [stdout] 149 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future::Output, RequestError>> + 'static` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bot.rs:206:10 [INFO] [stdout] | [INFO] [stdout] 206 | ) -> impl Future> + 'static [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/bot.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 205 | payload: &P, [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] 206 | ) -> impl Future> + 'static + use

[INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future::Output, RequestError>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bot.rs:237:10 [INFO] [stdout] | [INFO] [stdout] 237 | ) -> 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, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bot.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 236 | payload: &mut P, [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] 237 | ) -> impl Future> + use

[INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future::Output, RequestError>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bot.rs:267:10 [INFO] [stdout] | [INFO] [stdout] 267 | ) -> 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, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bot.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 266 | payload: &P, [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] 267 | ) -> impl Future> + use

[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/serde_multipart/mod.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn to_form(val: &mut T) -> Result, Error> [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/serde_multipart/mod.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn to_form(val: &mut T) -> Result, Error> [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] 28 | pub(crate) fn to_form(val: &mut T) -> Result + use, Error> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/serde_multipart/mod.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(part) = file.into_part() { [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/serde_multipart/mod.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 42 ~ match file.into_part() { Some(part) => { [INFO] [stdout] 43 | form = form.part(id, part.await); [INFO] [stdout] 44 ~ } _ => {}} [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/serde_multipart/mod.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn to_form_ref(val: &T) -> Result, Error> [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/serde_multipart/mod.rs:57:43 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn to_form_ref(val: &T) -> Result, Error> [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] 57 | pub(crate) fn to_form_ref(val: &T) -> Result + use, Error> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/serde_multipart/mod.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | if let Some(part) = file.into_part() { [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/serde_multipart/mod.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 71 ~ match file.into_part() { Some(part) => { [INFO] [stdout] 72 | form = form.part(id, part.await); [INFO] [stdout] 73 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/patch.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | if let Some(link) = self.md_links.get_mut(*name) { [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/codegen/patch.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | } else if key.is_exact() { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 187 ~ match self.md_links.get_mut(*name) { Some(link) => { [INFO] [stdout] 188 | link.clear(); [INFO] [stdout] 189 | *link += *value; [INFO] [stdout] 190 ~ } _ => if key.is_exact() { [INFO] [stdout] 191 | panic!("Patch error: {key:?} doesn't have link {name}"); [INFO] [stdout] 192 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/patch.rs:238:12 [INFO] [stdout] | [INFO] [stdout] 238 | if let Some(value) = doc.md_links.remove(repl.as_str()) { [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/codegen/patch.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 238 ~ match doc.md_links.remove(repl.as_str()) { Some(value) => { [INFO] [stdout] 239 | doc.md = doc.md.replace(format!("[{repl}]").as_str(), &format!("[`{repl}`]")); [INFO] [stdout] 240 | doc.md_links.insert(format!("`{repl}`"), value); [INFO] [stdout] 241 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/codegen/patch.rs:245:12 [INFO] [stdout] | [INFO] [stdout] 245 | if let Some(value) = doc.md_links.remove(repl.as_str()) { [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/codegen/patch.rs:249:9 [INFO] [stdout] | [INFO] [stdout] 249 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 245 ~ match doc.md_links.remove(repl.as_str()) { Some(value) => { [INFO] [stdout] 246 | let repln = to_uppercase(&repl); [INFO] [stdout] 247 | doc.md = doc.md.replace(format!("[{repl}]").as_str(), &format!("[`{repln}`]")); [INFO] [stdout] 248 | doc.md_links.insert(format!("`{repln}`"), value); [INFO] [stdout] 249 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `teloxide_core` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/errors.rs [INFO] [stderr] * src/local_macros.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/local_macros.rs:77:21 [INFO] [stderr] | [INFO] [stderr] 77 | #[doc = $doc: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/local_macros.rs:347:20 [INFO] [stderr] | [INFO] [stderr] 347 | (@convert_map ($e:expr_2021) [into]) => { [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/local_macros.rs:350:20 [INFO] [stderr] | [INFO] [stderr] 350 | (@convert_map ($e:expr_2021) [collect]) => { [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/local_macros.rs:353:20 [INFO] [stderr] | [INFO] [stderr] 353 | (@convert_map ($e: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/local_macros.rs:375:37 [INFO] [stderr] | [INFO] [stderr] 375 | ($T:ident $S:ty {$this:ident => $inner: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/errors.rs:97:84 [INFO] [stderr] | [INFO] [stderr] 97 | $var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: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/errors.rs:146:70 [INFO] [stderr] | [INFO] [stderr] 146 | (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block: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/errors.rs:153:54 [INFO] [stderr] | [INFO] [stderr] 153 | (@de $value:ident, $variant:ident, $val:literal, $block: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 8 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/local_macros.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | #[doc = $doc: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] 77 | #[doc = $doc: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/local_macros.rs:347:23 [INFO] [stdout] | [INFO] [stdout] 347 | (@convert_map ($e:expr) [into]) => { [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] 347 | (@convert_map ($e:expr_2021) [into]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/local_macros.rs:350:23 [INFO] [stdout] | [INFO] [stdout] 350 | (@convert_map ($e:expr) [collect]) => { [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] 350 | (@convert_map ($e:expr_2021) [collect]) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/local_macros.rs:353:23 [INFO] [stdout] | [INFO] [stdout] 353 | (@convert_map ($e: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] 353 | (@convert_map ($e: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/local_macros.rs:375:44 [INFO] [stdout] | [INFO] [stdout] 375 | ($T:ident $S:ty {$this:ident => $inner: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] 375 | ($T:ident $S:ty {$this:ident => $inner: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/errors.rs:97:96 [INFO] [stdout] | [INFO] [stdout] 97 | $var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: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] 97 | $var_name:ident $( ($var_inner:ty) )? = $var_string:literal $(with $var_parser: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/errors.rs:146:77 [INFO] [stdout] | [INFO] [stdout] 146 | (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block: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] 146 | (@de $value:ident, $variant:ident ($var_inner:ty), $val:literal, $block: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/errors.rs:153:61 [INFO] [stdout] | [INFO] [stdout] 153 | (@de $value:ident, $variant:ident, $val:literal, $block: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] 153 | (@de $value:ident, $variant:ident, $val:literal, $block:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future> + 'o` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/net/download.rs:95:6 [INFO] [stdout] | [INFO] [stdout] 95 | ) -> impl Future> + 'o [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/net/download.rs:90:13 [INFO] [stdout] | [INFO] [stdout] 90 | client: &Client, [INFO] [stdout] | ^ [INFO] [stdout] 91 | api_url: Url, [INFO] [stdout] 92 | token: &str, [INFO] [stdout] | ^ [INFO] [stdout] 93 | path: &str, [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] 95 | ) -> impl Future> + 'o + use<'o, D> [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/download.rs:102:15 [INFO] [stdout] | [INFO] [stdout] 102 | while let Some(chunk) = res.chunk().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/net/download.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | } [INFO] [stdout] | ^ [INFO] [stdout] = note: `--force-warn if-let-rescope` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl Stream> + 'static` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/net/download.rs:120:6 [INFO] [stdout] | [INFO] [stdout] 120 | ) -> impl Stream> + 'static { [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/net/download.rs:116:13 [INFO] [stdout] | [INFO] [stdout] 116 | client: &Client, [INFO] [stdout] | ^ [INFO] [stdout] 117 | api_url: Url, [INFO] [stdout] 118 | token: &str, [INFO] [stdout] | ^ [INFO] [stdout] 119 | path: &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] 120 | ) -> impl Stream> + 'static + use<> { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/request.rs:138:20 [INFO] [stdout] | [INFO] [stdout] 138 | if let TelegramResponse::Ok { response, .. } = &mut response { [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/net/request.rs:154:17 [INFO] [stdout] | [INFO] [stdout] 154 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 138 ~ match &mut response { TelegramResponse::Ok { response, .. } => { [INFO] [stdout] 139 | if let Some(updates) = [INFO] [stdout] ... [INFO] [stdout] 153 | } [INFO] [stdout] 154 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/request.rs:145:32 [INFO] [stdout] | [INFO] [stdout] 145 | ... if let Ok(TelegramResponse::Ok { response: values, .. }) = re_parsed { [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/net/request.rs:151:29 [INFO] [stdout] | [INFO] [stdout] 151 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 145 ~ match re_parsed { Ok(TelegramResponse::Ok { response: values, .. }) => { [INFO] [stdout] 146 | for (update, value) in zip::<_, Vec<_>>(updates, values) { [INFO] [stdout] ... [INFO] [stdout] 150 | } [INFO] [stdout] 151 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/net/request.rs:147:40 [INFO] [stdout] | [INFO] [stdout] 147 | ... if let UpdateKind::Error(dest) = &mut update.kind { [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/net/request.rs:149:37 [INFO] [stdout] | [INFO] [stdout] 149 | ... } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 147 ~ match &mut update.kind { UpdateKind::Error(dest) => { [INFO] [stdout] 148 | *dest = value; [INFO] [stdout] 149 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future::Output, RequestError>> + 'static` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bot.rs:206:10 [INFO] [stdout] | [INFO] [stdout] 206 | ) -> impl Future> + 'static [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/bot.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 205 | payload: &P, [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] 206 | ) -> impl Future> + 'static + use

[INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future::Output, RequestError>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bot.rs:237:10 [INFO] [stdout] | [INFO] [stdout] 237 | ) -> 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, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bot.rs:235:9 [INFO] [stdout] | [INFO] [stdout] 235 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 236 | payload: &mut P, [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] 237 | ) -> impl Future> + use

[INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl futures::Future::Output, RequestError>>` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/bot.rs:267:10 [INFO] [stdout] | [INFO] [stdout] 267 | ) -> 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, these lifetimes are in scope but not mentioned in the type's bounds [INFO] [stdout] --> src/bot.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | &self, [INFO] [stdout] | ^ [INFO] [stdout] 266 | payload: &P, [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] 267 | ) -> impl Future> + use

[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/serde_multipart/mod.rs:28:49 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn to_form(val: &mut T) -> Result, Error> [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/serde_multipart/mod.rs:28:31 [INFO] [stdout] | [INFO] [stdout] 28 | pub(crate) fn to_form(val: &mut T) -> Result, Error> [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] 28 | pub(crate) fn to_form(val: &mut T) -> Result + use, Error> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/serde_multipart/mod.rs:42:20 [INFO] [stdout] | [INFO] [stdout] 42 | if let Some(part) = file.into_part() { [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/serde_multipart/mod.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 42 ~ match file.into_part() { Some(part) => { [INFO] [stdout] 43 | form = form.part(id, part.await); [INFO] [stdout] 44 ~ } _ => {}} [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/serde_multipart/mod.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn to_form_ref(val: &T) -> Result, Error> [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/serde_multipart/mod.rs:57:43 [INFO] [stdout] | [INFO] [stdout] 57 | pub(crate) fn to_form_ref(val: &T) -> Result, Error> [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] 57 | pub(crate) fn to_form_ref(val: &T) -> Result + use, Error> [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/serde_multipart/mod.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 71 | if let Some(part) = file.into_part() { [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/serde_multipart/mod.rs:73:17 [INFO] [stdout] | [INFO] [stdout] 73 | } [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 71 ~ match file.into_part() { Some(part) => { [INFO] [stdout] 72 | form = form.part(id, part.await); [INFO] [stdout] 73 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating examples/self_info.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 40.92s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking teloxide-core v0.10.1 (/tmp/fixit) [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/local_macros.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Box::pin($body) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] ::: src/requests/multipart.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | / req_future! { [INFO] [stdout] 109 | | def: |it: MultipartRequest| { [INFO] [stdout] 110 | | it.bot.execute_multipart(&mut {it.payload}) [INFO] [stdout] | | ------------ temporary value created here [INFO] [stdout] 111 | | } [INFO] [stdout] ... | [INFO] [stdout] 116 | | U::Output: DeserializeOwned, [INFO] [stdout] 117 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `it.bot` [INFO] [stdout] --> src/local_macros.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Box::pin($body) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] ::: src/requests/multipart.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | / req_future! { [INFO] [stdout] 109 | | def: |it: MultipartRequest| { [INFO] [stdout] 110 | | it.bot.execute_multipart(&mut {it.payload}) [INFO] [stdout] | | ------ `it.bot` is borrowed here [INFO] [stdout] 111 | | } [INFO] [stdout] ... | [INFO] [stdout] 116 | | U::Output: DeserializeOwned, [INFO] [stdout] 117 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/local_macros.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Box::pin($body) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] ::: src/requests/multipart.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 119 | / req_future! { [INFO] [stdout] 120 | | def: |it: &MultipartRequest| { [INFO] [stdout] | | - let's call the lifetime of this reference `'1` [INFO] [stdout] 121 | | it.bot.execute_multipart_ref(&it.payload) [INFO] [stdout] 122 | | } [INFO] [stdout] ... | [INFO] [stdout] 127 | | U::Output: DeserializeOwned, [INFO] [stdout] 128 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: to declare that the trait object captures data from argument `it`, you can add a lifetime parameter `'a` in the type alias [INFO] [stdout] | [INFO] [stdout] 46 ~ pub(crate) type $i<$T><'a> [INFO] [stdout] 47 ~ $(where $($wh)*)? = ::core::pin::Pin + ::core::marker::Send + 'a>>; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/local_macros.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Box::pin($body) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] ::: src/requests/multipart.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | / req_future! { [INFO] [stdout] 109 | | def: |it: MultipartRequest| { [INFO] [stdout] 110 | | it.bot.execute_multipart(&mut {it.payload}) [INFO] [stdout] | | ------------ temporary value created here [INFO] [stdout] 111 | | } [INFO] [stdout] ... | [INFO] [stdout] 116 | | U::Output: DeserializeOwned, [INFO] [stdout] 117 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing local data `it.bot` [INFO] [stdout] --> src/local_macros.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Box::pin($body) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] ::: src/requests/multipart.rs:108:1 [INFO] [stdout] | [INFO] [stdout] 108 | / req_future! { [INFO] [stdout] 109 | | def: |it: MultipartRequest| { [INFO] [stdout] 110 | | it.bot.execute_multipart(&mut {it.payload}) [INFO] [stdout] | | ------ `it.bot` is borrowed here [INFO] [stdout] 111 | | } [INFO] [stdout] ... | [INFO] [stdout] 116 | | U::Output: DeserializeOwned, [INFO] [stdout] 117 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/local_macros.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | Box::pin($body) [INFO] [stdout] | ^^^^^^^^^^^^^^^ returning this value requires that `'1` must outlive `'static` [INFO] [stdout] | [INFO] [stdout] ::: src/requests/multipart.rs:119:1 [INFO] [stdout] | [INFO] [stdout] 119 | / req_future! { [INFO] [stdout] 120 | | def: |it: &MultipartRequest| { [INFO] [stdout] | | - let's call the lifetime of this reference `'1` [INFO] [stdout] 121 | | it.bot.execute_multipart_ref(&it.payload) [INFO] [stdout] 122 | | } [INFO] [stdout] ... | [INFO] [stdout] 127 | | U::Output: DeserializeOwned, [INFO] [stdout] 128 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: to declare that the trait object captures data from argument `it`, you can add a lifetime parameter `'a` in the type alias [INFO] [stdout] | [INFO] [stdout] 46 ~ pub(crate) type $i<$T><'a> [INFO] [stdout] 47 ~ $(where $($wh)*)? = ::core::pin::Pin + ::core::marker::Send + 'a>>; [INFO] [stdout] | [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 E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `teloxide-core` (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 E0515`. [INFO] [stdout] [INFO] [stderr] error: could not compile `teloxide-core` (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" "3e451ebc28ad986fd52dfd1808eb3c9ebf623a7c755757d119649b7786e65902", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e451ebc28ad986fd52dfd1808eb3c9ebf623a7c755757d119649b7786e65902", kill_on_drop: false }` [INFO] [stdout] 3e451ebc28ad986fd52dfd1808eb3c9ebf623a7c755757d119649b7786e65902