[INFO] cloning repository https://github.com/RiversJin/kv [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RiversJin/kv" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRiversJin%2Fkv", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRiversJin%2Fkv'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 058a147f3ca1c299bf0e332b5d6e6619939f360e [INFO] checking RiversJin/kv/058a147f3ca1c299bf0e332b5d6e6619939f360e against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRiversJin%2Fkv" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RiversJin/kv on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RiversJin/kv [INFO] finished tweaking git repo https://github.com/RiversJin/kv [INFO] tweaked toml for git repo https://github.com/RiversJin/kv written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RiversJin/kv already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 873b1db36aea31820a8d3d07ab9c370a3b559fa7842ec3c7c2ba31f26e719c90 [INFO] running `Command { std: "docker" "start" "-a" "873b1db36aea31820a8d3d07ab9c370a3b559fa7842ec3c7c2ba31f26e719c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "873b1db36aea31820a8d3d07ab9c370a3b559fa7842ec3c7c2ba31f26e719c90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "873b1db36aea31820a8d3d07ab9c370a3b559fa7842ec3c7c2ba31f26e719c90", kill_on_drop: false }` [INFO] [stdout] 873b1db36aea31820a8d3d07ab9c370a3b559fa7842ec3c7c2ba31f26e719c90 [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 92c18e50f0df167bc117d58f84c16e8b08c7426e679c4edf39f6148612c18dc8 [INFO] running `Command { std: "docker" "start" "-a" "92c18e50f0df167bc117d58f84c16e8b08c7426e679c4edf39f6148612c18dc8", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking gimli v0.31.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Compiling anyhow v1.0.92 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking rustc-demangle v0.1.24 [INFO] [stderr] Checking hashbrown v0.15.1 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking pin-project-lite v0.2.15 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking unsafe-libyaml v0.2.11 [INFO] [stderr] Checking object v0.36.5 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling syn v2.0.87 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling cc v1.1.34 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling libz-sys v1.1.20 [INFO] [stderr] Compiling libgit2-sys v0.17.0+1.8.1 [INFO] [stderr] Checking addr2line v0.24.2 [INFO] [stderr] Checking backtrace v0.3.74 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling linkme-impl v0.3.29 [INFO] [stderr] Compiling async-recursion v1.1.1 [INFO] [stderr] Compiling router-macro v0.0.0 (/tmp/fixit/router_macro) [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Checking linkme v0.3.29 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Compiling git2 v0.19.0 [INFO] [stderr] Compiling built v0.7.5 [INFO] [stderr] Compiling kv v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating build.rs from 2021 edition to 2024 [INFO] [stderr] Checking serde_yaml v0.9.34+deprecated [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `kv` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/command_table.rs [INFO] [stderr] * src/connection.rs [INFO] [stderr] * src/redis_types/mod.rs [INFO] [stderr] * src/redis_types/string.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: missing `fn` or `struct` for function or struct definition [INFO] [stderr] --> src/command_table.rs:6:1 [INFO] [stderr] | [INFO] [stderr] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if you meant to call a macro, try [INFO] [stderr] | [INFO] [stderr] 6 | rounsafe!(uter_macro::init_route_map!(ROUTER)); [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::command_table::RouteHandler`, `crate::command_table::ROUTE_MAP` [INFO] [stderr] --> src/redis_types/string.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::command_table::{RouteHandler, ROUTE_MAP}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^ no `ROUTE_MAP` in `command_table` [INFO] [stderr] | | [INFO] [stderr] | no `RouteHandler` in `command_table` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::command_table::RouteHandler`, `crate::command_table::ROUTE_MAP` [INFO] [stderr] --> src/redis_types/mod.rs:5:28 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::command_table::{RouteHandler, ROUTE_MAP}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^ no `ROUTE_MAP` in `command_table` [INFO] [stderr] | | [INFO] [stderr] | no `RouteHandler` in `command_table` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_handler` in module `crate::command_table` [INFO] [stderr] --> src/connection.rs:35:45 [INFO] [stderr] | [INFO] [stderr] 35 | let handler = crate::command_table::get_handler(command)?; [INFO] [stderr] | ^^^^^^^^^^^ not found in `crate::command_table` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[router_macro::route("SET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[router_macro::route("GET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[router_macro::route("PING")] [INFO] [stdout] | ------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[router_macro::route("VERSION")] [INFO] [stdout] | --------------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/connection.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | if let Err(e) = self.write_response(response).await { [INFO] [stdout] | ^^^^^^^^^^^^^----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/connection.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | } [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] 57 ~ match self.write_response(response).await { Err(e) => { [INFO] [stdout] 58 | eprintln!("Error writing response: {}", e); [INFO] [stdout] 59 | return; [INFO] [stdout] 60 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `kv` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/command_table.rs [INFO] [stderr] * src/connection.rs [INFO] [stderr] * src/redis_types/mod.rs [INFO] [stderr] * src/redis_types/string.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: missing `fn` or `struct` for function or struct definition [INFO] [stderr] --> src/command_table.rs:6:1 [INFO] [stderr] | [INFO] [stderr] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if you meant to call a macro, try [INFO] [stderr] | [INFO] [stderr] 6 | rounsafe!(uter_macro::init_route_map!(ROUTER)); [INFO] [stderr] | ~~~~~~~~~ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::command_table::RouteHandler`, `crate::command_table::ROUTE_MAP` [INFO] [stderr] --> src/redis_types/string.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::command_table::{RouteHandler, ROUTE_MAP}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^ no `ROUTE_MAP` in `command_table` [INFO] [stderr] | | [INFO] [stderr] | no `RouteHandler` in `command_table` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `crate::command_table::RouteHandler`, `crate::command_table::ROUTE_MAP` [INFO] [stderr] --> src/redis_types/mod.rs:5:28 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::command_table::{RouteHandler, ROUTE_MAP}; [INFO] [stderr] | ^^^^^^^^^^^^ ^^^^^^^^^ no `ROUTE_MAP` in `command_table` [INFO] [stderr] | | [INFO] [stderr] | no `RouteHandler` in `command_table` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `get_handler` in module `crate::command_table` [INFO] [stderr] --> src/connection.rs:35:45 [INFO] [stderr] | [INFO] [stderr] 35 | let handler = crate::command_table::get_handler(command)?; [INFO] [stderr] | ^^^^^^^^^^^ not found in `crate::command_table` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0425, E0432. [INFO] [stderr] For more information about an error, try `rustc --explain E0425`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[router_macro::route("SET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[router_macro::route("GET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[router_macro::route("PING")] [INFO] [stdout] | ------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[router_macro::route("VERSION")] [INFO] [stdout] | --------------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: this warning originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `if let` assigns a shorter lifetime since Edition 2024 [INFO] [stdout] --> src/connection.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | if let Err(e) = self.write_response(response).await { [INFO] [stdout] | ^^^^^^^^^^^^^----------------------------------- [INFO] [stdout] | | [INFO] [stdout] | this value has a significant drop implementation which may observe a major change in drop order and requires your discretion [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #124085 [INFO] [stdout] help: the value is now dropped here in Edition 2024 [INFO] [stdout] --> src/connection.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | } [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] 57 ~ match self.write_response(response).await { Err(e) => { [INFO] [stdout] 58 | eprintln!("Error writing response: {}", e); [INFO] [stdout] 59 | return; [INFO] [stdout] 60 ~ } _ => {}} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: relative drop order changing in Rust 2024 [INFO] [stdout] --> src/connection.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 50 | let result = self.process(context, req).await; [INFO] [stdout] | ------ [INFO] [stdout] | | [INFO] [stdout] | `result` calls a custom destructor [INFO] [stdout] | `result` will be dropped later as of Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 57 | if let Err(e) = self.write_response(response).await { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----- [INFO] [stdout] | | | [INFO] [stdout] | | this value will be stored in a temporary; let us call it `#2` [INFO] [stdout] | | up until Edition 2021 `#2` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] | this value will be stored in a temporary; let us call it `#1` [INFO] [stdout] | up until Edition 2021 `#1` is dropped last but will be dropped earlier in Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 61 | } [INFO] [stdout] | - now the temporary value is dropped here, before the local variables in the block or statement [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] note: `#1` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.92/src/error.rs:597:1 [INFO] [stdout] | [INFO] [stdout] 597 | impl Drop for Error { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `#2` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bytes-1.8.0/src/bytes.rs:590:1 [INFO] [stdout] | [INFO] [stdout] 590 | impl Drop for Bytes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `result` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/anyhow-1.0.92/src/error.rs:597:1 [INFO] [stdout] | [INFO] [stdout] 597 | impl Drop for Error { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: `result` invokes this custom destructor [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/bytes-1.8.0/src/bytes.rs:590:1 [INFO] [stdout] | [INFO] [stdout] 590 | impl Drop for Bytes { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: most of the time, changing drop order is harmless; inspect the `impl Drop`s for side effects like releasing locks or sending messages [INFO] [stdout] = note: `--force-warn tail-expr-drop-order` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.91s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Compiling kv v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[router_macro::route("SET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[router_macro::route("GET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[router_macro::route("PING")] [INFO] [stdout] | ------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[router_macro::route("VERSION")] [INFO] [stdout] | --------------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[router_macro::route("SET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/string.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | #[router_macro::route("GET")] [INFO] [stdout] | ----------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | #[router_macro::route("PING")] [INFO] [stdout] | ------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/command_table.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | router_macro::init_route_map!(ROUTER); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/redis_types/mod.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[router_macro::route("VERSION")] [INFO] [stdout] | --------------------------------- in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `ROUTE_MAP` which comes from the expansion of the attribute macro `router_macro::route` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 6 | rounsafe(uter_macro::init_route_map!(ROUTER)); [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `kv` (lib test) due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `kv` (lib) due to 4 previous errors [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "92c18e50f0df167bc117d58f84c16e8b08c7426e679c4edf39f6148612c18dc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92c18e50f0df167bc117d58f84c16e8b08c7426e679c4edf39f6148612c18dc8", kill_on_drop: false }` [INFO] [stdout] 92c18e50f0df167bc117d58f84c16e8b08c7426e679c4edf39f6148612c18dc8