[INFO] fetching crate axum 0.7.5... [INFO] checking axum-0.7.5 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] extracting crate axum 0.7.5 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate axum 0.7.5 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 axum 0.7.5 [INFO] finished tweaking crates.io crate axum 0.7.5 [INFO] tweaked toml for crates.io crate axum 0.7.5 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 195 packages to latest compatible versions [INFO] [stderr] Adding base64 v0.21.7 (available: v0.22.1) [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.6.0) [INFO] [stderr] Adding core-foundation v0.9.4 (available: v0.10.0) [INFO] [stderr] Adding env_logger v0.8.4 (available: v0.11.5) [INFO] [stderr] Adding generic-array v0.14.7 (available: v1.1.0) [INFO] [stderr] Adding h2 v0.3.26 (available: v0.4.6) [INFO] [stderr] Adding hashbrown v0.12.3 (available: v0.14.5) [INFO] [stderr] Adding hermit-abi v0.3.9 (available: v0.4.0) [INFO] [stderr] Adding http v0.2.12 (available: v1.1.0) [INFO] [stderr] Adding http-body v0.4.6 (available: v1.0.1) [INFO] [stderr] Adding hyper v0.14.30 (available: v1.4.1) [INFO] [stderr] Adding idna v0.5.0 (available: v1.0.2) [INFO] [stderr] Adding indexmap v1.9.3 (available: v2.5.0) [INFO] [stderr] Adding matchit v0.7.3 (available: v0.8.4) [INFO] [stderr] Adding nu-ansi-term v0.46.0 (available: v0.50.1) [INFO] [stderr] Adding reqwest v0.11.27 (available: v0.12.7) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.77) [INFO] [stderr] Adding sync_wrapper v0.1.2 (available: v1.0.1) [INFO] [stderr] Adding system-configuration v0.5.1 (available: v0.6.1) [INFO] [stderr] Adding system-configuration-sys v0.5.0 (available: v0.6.0) [INFO] [stderr] Adding tokio-tungstenite v0.21.0 (available: v0.24.0) [INFO] [stderr] Adding tower v0.4.13 (available: v0.5.1) [INFO] [stderr] Adding tower-http v0.5.2 (available: v0.6.1) [INFO] [stderr] Adding tungstenite v0.21.0 (available: v0.24.0) [INFO] [stderr] Adding wasi v0.11.0+wasi-snapshot-preview1 (available: v0.13.2+wasi-0.2.1) [INFO] [stderr] Adding windows-sys v0.48.0 (available: v0.59.0) [INFO] [stderr] Adding windows-sys v0.52.0 (available: v0.59.0) [INFO] [stderr] Adding windows-targets v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_aarch64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_i686_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnu v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_gnullvm v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding windows_x86_64_msvc v0.48.5 (available: v0.52.6) [INFO] [stderr] Adding winreg v0.50.0 (available: v0.52.0) [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-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 595fc693a9ad79dd615f3e8ad10e0581c21c3d4e549fc209c2e9e376de7c7448 [INFO] running `Command { std: "docker" "start" "-a" "595fc693a9ad79dd615f3e8ad10e0581c21c3d4e549fc209c2e9e376de7c7448", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "595fc693a9ad79dd615f3e8ad10e0581c21c3d4e549fc209c2e9e376de7c7448", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "595fc693a9ad79dd615f3e8ad10e0581c21c3d4e549fc209c2e9e376de7c7448", kill_on_drop: false }` [INFO] [stdout] 595fc693a9ad79dd615f3e8ad10e0581c21c3d4e549fc209c2e9e376de7c7448 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 13a7ac2d6216b1cf69f9920e7c11613c8d20d5edec0642129850996d0a5b3e23 [INFO] running `Command { std: "docker" "start" "-a" "13a7ac2d6216b1cf69f9920e7c11613c8d20d5edec0642129850996d0a5b3e23", 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] Checking bytes v1.7.2 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling unicase v2.7.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Checking alloc-no-stdlib v2.0.4 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking alloc-stdlib v0.2.2 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Checking indexmap v2.5.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking http v1.1.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling axum v0.7.5 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking flate2 v1.0.33 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Checking tokio v1.40.0 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking data-encoding v2.6.0 [INFO] [stderr] Checking sync_wrapper v1.0.1 [INFO] [stderr] Checking deranged v0.3.11 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Checking uuid v1.10.0 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking tracing-serde v0.1.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Checking ipnet v2.10.0 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking http-range-header v0.4.1 [INFO] [stderr] Checking num-conv v0.1.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking iri-string v0.7.5 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking time-core v0.1.2 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Compiling axum-macros v0.4.2 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Checking regex v1.10.6 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking tungstenite v0.21.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking axum-core v0.4.4 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking hyper v1.4.1 [INFO] [stderr] Checking async-compression v0.4.12 [INFO] [stderr] Checking tokio-tungstenite v0.21.0 [INFO] [stderr] Checking tokio-stream v0.1.16 [INFO] [stderr] Compiling quickcheck_macros v1.0.0 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking hyper-util v0.1.9 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `axum` [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly_error_messages` [INFO] [stdout] --> src/handler/mod.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | nightly_error_messages, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly_error_messages)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly_error_messages)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/routing/method_routing.rs:1028:22 [INFO] [stdout] | [INFO] [stdout] 1028 | $req: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] 1028 | $req:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/routing/method_routing.rs:1029:25 [INFO] [stdout] | [INFO] [stdout] 1029 | $method: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] 1029 | $method:expr_2021, [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/routing/method_routing.rs:1031:22 [INFO] [stdout] | [INFO] [stdout] 1031 | $svc: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] 1031 | $svc:expr_2021 [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/handler/mod.rs [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/routing/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | ($expr: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] 49 | ($expr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/routing/method_routing.rs [INFO] [stdout] warning: struct `MakeErasedRouter` is never constructed [INFO] [stdout] --> src/boxed.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) struct MakeErasedRouter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] * src/routing/mod.rs [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/json.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | let content_type = if let Some(content_type) = headers.get(header::CONTENT_TYPE) { [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/json.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | } else { [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] 114 ~ let content_type = match headers.get(header::CONTENT_TYPE) { Some(content_type) => { [INFO] [stdout] 115 | content_type [INFO] [stdout] 116 ~ } _ => { [INFO] [stdout] 117 | return false; [INFO] [stdout] 118 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | if let Some(k) = ::downcast_mut::>(&mut k) { [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/util.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 52 ~ match ::downcast_mut::>(&mut k) { Some(k) => { [INFO] [stdout] 53 | Ok(k.take().unwrap()) [INFO] [stdout] 54 ~ } _ => { [INFO] [stdout] 55 | Err(k.unwrap()) [INFO] [stdout] 56 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/mod.rs:83:27 [INFO] [stdout] | [INFO] [stdout] 83 | let content_type = if let Some(content_type) = headers.get(header::CONTENT_TYPE) { [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/extract/mod.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 83 ~ let content_type = match headers.get(header::CONTENT_TYPE) { Some(content_type) => { [INFO] [stdout] 84 | content_type [INFO] [stdout] 85 ~ } _ => { [INFO] [stdout] 86 | return false; [INFO] [stdout] 87 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 340 | parse_value!(deserialize_bool, visit_bool, "bool"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 340 | parse_value!(deserialize_bool, visit_bool, "bool"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 341 | parse_value!(deserialize_i8, visit_i8, "i8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 341 | parse_value!(deserialize_i8, visit_i8, "i8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 342 | parse_value!(deserialize_i16, visit_i16, "i16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 342 | parse_value!(deserialize_i16, visit_i16, "i16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 343 | parse_value!(deserialize_i32, visit_i32, "i32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 343 | parse_value!(deserialize_i32, visit_i32, "i32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 344 | parse_value!(deserialize_i64, visit_i64, "i64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 344 | parse_value!(deserialize_i64, visit_i64, "i64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 345 | parse_value!(deserialize_i128, visit_i128, "i128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 345 | parse_value!(deserialize_i128, visit_i128, "i128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 346 | parse_value!(deserialize_u8, visit_u8, "u8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 346 | parse_value!(deserialize_u8, visit_u8, "u8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 347 | parse_value!(deserialize_u16, visit_u16, "u16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 347 | parse_value!(deserialize_u16, visit_u16, "u16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] The following errors were reported: [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 348 | parse_value!(deserialize_u32, visit_u32, "u32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 348 | parse_value!(deserialize_u32, visit_u32, "u32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 349 | parse_value!(deserialize_u64, visit_u64, "u64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 349 | parse_value!(deserialize_u64, visit_u64, "u64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/routing/method_routing.rs:1028:17 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 350 | parse_value!(deserialize_u128, visit_u128, "u128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 350 | parse_value!(deserialize_u128, visit_u128, "u128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 351 | parse_value!(deserialize_f32, visit_f32, "f32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 351 | parse_value!(deserialize_f32, visit_f32, "f32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 1028 | $req:expr_2021, [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 352 | parse_value!(deserialize_f64, visit_f64, "f64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 352 | parse_value!(deserialize_f64, visit_f64, "f64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 353 | parse_value!(deserialize_string, visit_string, "String"); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 353 | parse_value!(deserialize_string, visit_string, "String"); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 354 | parse_value!(deserialize_byte_buf, visit_string, "String"); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 354 | parse_value!(deserialize_byte_buf, visit_string, "String"); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 355 | parse_value!(deserialize_char, visit_char, "char"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 355 | parse_value!(deserialize_char, visit_char, "char"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: `impl Layer> + Clone` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/extract/nested_path.rs:72:40 [INFO] [stdout] | [INFO] [stdout] 72 | pub(crate) fn layer(path: &str) -> impl Layer + Clone { [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/extract/nested_path.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | pub(crate) fn layer(path: &str) -> impl Layer + Clone { [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] 72 | pub(crate) fn layer(path: &str) -> impl Layer + Clone + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/nested_path.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(prev) = req.extensions_mut().get_mut::() { [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/extract/nested_path.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 95 ~ match req.extensions_mut().get_mut::() { Some(prev) => { [INFO] [stdout] 96 | let new_path = if prev.as_str() == "/" { [INFO] [stdout] ... [INFO] [stdout] 101 | prev.0 = new_path; [INFO] [stdout] 102 ~ } _ => { [INFO] [stdout] 103 | req.extensions_mut() [INFO] [stdout] 104 | .insert(NestedPath(Arc::clone(&self.path))); [INFO] [stdout] 105 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/routing/path_router.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | let endpoint = if let Some((route_id, Endpoint::MethodRouter(prev_method_router))) = self [INFO] [stdout] | ____________________________^ - [INFO] [stdout] | | ______________________________________________________________________________________________| [INFO] [stdout] 57 | || .node [INFO] [stdout] 58 | || .path_to_route_id [INFO] [stdout] | ||_____________________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 59 | | .get(path) [INFO] [stdout] 60 | | .and_then(|route_id| self.routes.get(route_id).map(|svc| (*route_id, svc))) [INFO] [stdout] | |________________________________________________________________________________________^ [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/routing/path_router.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 56 ~ let endpoint = match self [INFO] [stdout] 57 | .node [INFO] [stdout] ... [INFO] [stdout] 60 | .and_then(|route_id| self.routes.get(route_id).map(|svc| (*route_id, svc))) [INFO] [stdout] 61 ~ { Some((route_id, Endpoint::MethodRouter(prev_method_router))) => { [INFO] [stdout] 62 | // if we're adding a new `MethodRouter` to a route that already has one just [INFO] [stdout] ... [INFO] [stdout] 70 | return Ok(()); [INFO] [stdout] 71 ~ } _ => { [INFO] [stdout] 72 | Endpoint::MethodRouter(method_router) [INFO] [stdout] 73 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: `impl Layer> + Clone` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/routing/strip_prefix.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) fn layer(prefix: &str) -> impl Layer + Clone { [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/routing/strip_prefix.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) fn layer(prefix: &str) -> impl Layer + Clone { [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] 17 | pub(super) fn layer(prefix: &str) -> impl Layer + Clone + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/routing/method_routing.rs:1029:17 [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/routing/url_params.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | if let Some(decoded) = PercentDecodedStr::new(v) { [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/routing/url_params.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 25 ~ match PercentDecodedStr::new(v) { Some(decoded) => { [INFO] [stdout] 26 | Ok((Arc::from(k), decoded)) [INFO] [stdout] 27 ~ } _ => { [INFO] [stdout] 28 | Err(Arc::from(k)) [INFO] [stdout] 29 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 1029 | $method: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/routing/method_routing.rs:1031:17 [INFO] [stderr] | [INFO] [stderr] 1031 | $svc: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/routing/mod.rs:49:6 [INFO] [stderr] | [INFO] [stderr] 49 | ($expr: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] warning: unexpected `cfg` condition name: `nightly_error_messages` [INFO] [stderr] --> src/handler/mod.rs:129:5 [INFO] [stderr] | [INFO] [stderr] 129 | nightly_error_messages, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly_error_messages)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly_error_messages)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Migrating benches/benches.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `axum` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/extract/path/de.rs [INFO] [stderr] * src/handler/mod.rs [INFO] [stderr] * src/routing/method_routing.rs [INFO] [stderr] * src/routing/mod.rs [INFO] [stderr] * src/routing/strip_prefix.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/extract/path/de.rs:653:38 [INFO] [stderr] | [INFO] [stderr] 653 | ($ty:ty, $value_str:literal, $value: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/extract/path/de.rs:812:13 [INFO] [stderr] | [INFO] [stderr] 812 | $params: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/extract/path/de.rs:814:13 [INFO] [stderr] | [INFO] [stderr] 814 | $expected_error_kind: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/routing/method_routing.rs:1028:17 [INFO] [stderr] | [INFO] [stderr] 1028 | $req: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/routing/method_routing.rs:1029:17 [INFO] [stderr] | [INFO] [stderr] 1029 | $method: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/routing/method_routing.rs:1031:17 [INFO] [stderr] | [INFO] [stderr] 1031 | $svc: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/routing/strip_prefix.rs:170:24 [INFO] [stderr] | [INFO] [stderr] 170 | expected = $expected: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/routing/mod.rs:49:6 [INFO] [stderr] | [INFO] [stderr] 49 | ($expr: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] warning: unexpected `cfg` condition name: `nightly_error_messages` [INFO] [stderr] --> src/handler/mod.rs:129:5 [INFO] [stderr] | [INFO] [stderr] 129 | nightly_error_messages, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stderr] = help: consider using a Cargo feature instead [INFO] [stderr] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stderr] [lints.rust] [INFO] [stderr] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly_error_messages)'] } [INFO] [stderr] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly_error_messages)");` to the top of the `build.rs` [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] error: aborting due to 8 previous errors; 1 warning emitted [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/extract/path/de.rs:653:45 [INFO] [stdout] | [INFO] [stdout] 653 | ($ty:ty, $value_str:literal, $value: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] 653 | ($ty:ty, $value_str:literal, $value: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/extract/path/de.rs:812:21 [INFO] [stdout] | [INFO] [stdout] 812 | $params: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] 812 | $params: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/extract/path/de.rs:814:34 [INFO] [stdout] | [INFO] [stdout] 814 | $expected_error_kind: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] 814 | $expected_error_kind:expr_2021 $(,)? [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly_error_messages` [INFO] [stdout] --> src/handler/mod.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | nightly_error_messages, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly_error_messages)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly_error_messages)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/routing/method_routing.rs:1028:22 [INFO] [stdout] | [INFO] [stdout] 1028 | $req: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] 1028 | $req: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/routing/method_routing.rs:1029:25 [INFO] [stdout] | [INFO] [stdout] 1029 | $method: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] 1029 | $method: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/routing/method_routing.rs:1031:22 [INFO] [stdout] | [INFO] [stdout] 1031 | $svc: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] 1031 | $svc: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/routing/strip_prefix.rs:170:34 [INFO] [stdout] | [INFO] [stdout] 170 | expected = $expected: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] 170 | expected = $expected: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/routing/mod.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | ($expr: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] 49 | ($expr:expr_2021) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MakeErasedRouter` is never constructed [INFO] [stdout] --> src/boxed.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 106 | pub(crate) struct MakeErasedRouter { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/json.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | let content_type = if let Some(content_type) = headers.get(header::CONTENT_TYPE) { [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/json.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | } else { [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] 114 ~ let content_type = match headers.get(header::CONTENT_TYPE) { Some(content_type) => { [INFO] [stdout] 115 | content_type [INFO] [stdout] 116 ~ } _ => { [INFO] [stdout] 117 | return false; [INFO] [stdout] 118 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/util.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | if let Some(k) = ::downcast_mut::>(&mut k) { [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/util.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 52 ~ match ::downcast_mut::>(&mut k) { Some(k) => { [INFO] [stdout] 53 | Ok(k.take().unwrap()) [INFO] [stdout] 54 ~ } _ => { [INFO] [stdout] 55 | Err(k.unwrap()) [INFO] [stdout] 56 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/mod.rs:83:27 [INFO] [stdout] | [INFO] [stdout] 83 | let content_type = if let Some(content_type) = headers.get(header::CONTENT_TYPE) { [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/extract/mod.rs:85:5 [INFO] [stdout] | [INFO] [stdout] 85 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 83 ~ let content_type = match headers.get(header::CONTENT_TYPE) { Some(content_type) => { [INFO] [stdout] 84 | content_type [INFO] [stdout] 85 ~ } _ => { [INFO] [stdout] 86 | return false; [INFO] [stdout] 87 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 340 | parse_value!(deserialize_bool, visit_bool, "bool"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 340 | parse_value!(deserialize_bool, visit_bool, "bool"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 341 | parse_value!(deserialize_i8, visit_i8, "i8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 341 | parse_value!(deserialize_i8, visit_i8, "i8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 342 | parse_value!(deserialize_i16, visit_i16, "i16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 342 | parse_value!(deserialize_i16, visit_i16, "i16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 343 | parse_value!(deserialize_i32, visit_i32, "i32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 343 | parse_value!(deserialize_i32, visit_i32, "i32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 344 | parse_value!(deserialize_i64, visit_i64, "i64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 344 | parse_value!(deserialize_i64, visit_i64, "i64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 345 | parse_value!(deserialize_i128, visit_i128, "i128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 345 | parse_value!(deserialize_i128, visit_i128, "i128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 346 | parse_value!(deserialize_u8, visit_u8, "u8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 346 | parse_value!(deserialize_u8, visit_u8, "u8"); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 347 | parse_value!(deserialize_u16, visit_u16, "u16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 347 | parse_value!(deserialize_u16, visit_u16, "u16"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 348 | parse_value!(deserialize_u32, visit_u32, "u32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 348 | parse_value!(deserialize_u32, visit_u32, "u32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 349 | parse_value!(deserialize_u64, visit_u64, "u64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 349 | parse_value!(deserialize_u64, visit_u64, "u64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 350 | parse_value!(deserialize_u128, visit_u128, "u128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 350 | parse_value!(deserialize_u128, visit_u128, "u128"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 351 | parse_value!(deserialize_f32, visit_f32, "f32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 351 | parse_value!(deserialize_f32, visit_f32, "f32"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 352 | parse_value!(deserialize_f64, visit_f64, "f64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 352 | parse_value!(deserialize_f64, visit_f64, "f64"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 353 | parse_value!(deserialize_string, visit_string, "String"); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 353 | parse_value!(deserialize_string, visit_string, "String"); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 354 | parse_value!(deserialize_byte_buf, visit_string, "String"); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 354 | parse_value!(deserialize_byte_buf, visit_string, "String"); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/path/de.rs:302:20 [INFO] [stdout] | [INFO] [stdout] 302 | if let Some(key) = self.key.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] 355 | parse_value!(deserialize_char, visit_char, "char"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [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/extract/path/de.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 316 | } else { [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 355 | parse_value!(deserialize_char, visit_char, "char"); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] = note: this warning originates in the macro `parse_value` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl tower::Layer> + Clone` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/extract/nested_path.rs:72:40 [INFO] [stdout] | [INFO] [stdout] 72 | pub(crate) fn layer(path: &str) -> impl Layer + Clone { [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/extract/nested_path.rs:72:31 [INFO] [stdout] | [INFO] [stdout] 72 | pub(crate) fn layer(path: &str) -> impl Layer + Clone { [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] 72 | pub(crate) fn layer(path: &str) -> impl Layer + Clone + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/extract/nested_path.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | if let Some(prev) = req.extensions_mut().get_mut::() { [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/extract/nested_path.rs:102:9 [INFO] [stdout] | [INFO] [stdout] 102 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 95 ~ match req.extensions_mut().get_mut::() { Some(prev) => { [INFO] [stdout] 96 | let new_path = if prev.as_str() == "/" { [INFO] [stdout] ... [INFO] [stdout] 101 | prev.0 = new_path; [INFO] [stdout] 102 ~ } _ => { [INFO] [stdout] 103 | req.extensions_mut() [INFO] [stdout] 104 | .insert(NestedPath(Arc::clone(&self.path))); [INFO] [stdout] 105 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/routing/path_router.rs:56:27 [INFO] [stdout] | [INFO] [stdout] 56 | let endpoint = if let Some((route_id, Endpoint::MethodRouter(prev_method_router))) = self [INFO] [stdout] | ____________________________^ - [INFO] [stdout] | | ______________________________________________________________________________________________| [INFO] [stdout] 57 | || .node [INFO] [stdout] 58 | || .path_to_route_id [INFO] [stdout] | ||_____________________________- this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] 59 | | .get(path) [INFO] [stdout] 60 | | .and_then(|route_id| self.routes.get(route_id).map(|svc| (*route_id, svc))) [INFO] [stdout] | |________________________________________________________________________________________^ [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/routing/path_router.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 56 ~ let endpoint = match self [INFO] [stdout] 57 | .node [INFO] [stdout] ... [INFO] [stdout] 60 | .and_then(|route_id| self.routes.get(route_id).map(|svc| (*route_id, svc))) [INFO] [stdout] 61 ~ { Some((route_id, Endpoint::MethodRouter(prev_method_router))) => { [INFO] [stdout] 62 | // if we're adding a new `MethodRouter` to a route that already has one just [INFO] [stdout] ... [INFO] [stdout] 70 | return Ok(()); [INFO] [stdout] 71 ~ } _ => { [INFO] [stdout] 72 | Endpoint::MethodRouter(method_router) [INFO] [stdout] 73 ~ }}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `impl tower::Layer> + Clone` will capture more lifetimes than possibly intended in edition 2024 [INFO] [stdout] --> src/routing/strip_prefix.rs:17:42 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) fn layer(prefix: &str) -> impl Layer + Clone { [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/routing/strip_prefix.rs:17:33 [INFO] [stdout] | [INFO] [stdout] 17 | pub(super) fn layer(prefix: &str) -> impl Layer + Clone { [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] 17 | pub(super) fn layer(prefix: &str) -> impl Layer + Clone + use { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/routing/url_params.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 25 | if let Some(decoded) = PercentDecodedStr::new(v) { [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/routing/url_params.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | } else { [INFO] [stdout] | ^ [INFO] [stdout] help: a `match` with a single arm can preserve the drop order up to Edition 2021 [INFO] [stdout] | [INFO] [stdout] 25 ~ match PercentDecodedStr::new(v) { Some(decoded) => { [INFO] [stdout] 26 | Ok((Arc::from(k), decoded)) [INFO] [stdout] 27 ~ } _ => { [INFO] [stdout] 28 | Err(Arc::from(k)) [INFO] [stdout] 29 ~ }} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 33.66s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling axum v0.7.5 (/tmp/fixit) [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly_error_messages` [INFO] [stdout] --> src/handler/mod.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | nightly_error_messages, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly_error_messages)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly_error_messages)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `nightly_error_messages` [INFO] [stdout] --> src/handler/mod.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 129 | nightly_error_messages, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows` [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(nightly_error_messages)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(nightly_error_messages)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/routing/path_router.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 165 | path_to_nest_at: &str, [INFO] [stdout] | --------------- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `path_to_nest_at` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 186 | SetNestedPath::layer(path_to_nest_at), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `path_to_nest_at` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `axum` (lib) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0521]: borrowed data escapes outside of method [INFO] [stdout] --> src/routing/path_router.rs:186:17 [INFO] [stdout] | [INFO] [stdout] 165 | path_to_nest_at: &str, [INFO] [stdout] | --------------- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | `path_to_nest_at` is a reference that is only valid in the method body [INFO] [stdout] ... [INFO] [stdout] 186 | SetNestedPath::layer(path_to_nest_at), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `path_to_nest_at` escapes the method body here [INFO] [stdout] | argument requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0521`. [INFO] [stdout] [INFO] [stderr] error: could not compile `axum` (lib test) due to 2 previous errors; 1 warning emitted [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" "13a7ac2d6216b1cf69f9920e7c11613c8d20d5edec0642129850996d0a5b3e23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "13a7ac2d6216b1cf69f9920e7c11613c8d20d5edec0642129850996d0a5b3e23", kill_on_drop: false }` [INFO] [stdout] 13a7ac2d6216b1cf69f9920e7c11613c8d20d5edec0642129850996d0a5b3e23