[INFO] cloning repository https://github.com/MASANORI-M/rust-demo [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MASANORI-M/rust-demo" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMASANORI-M%2Frust-demo", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMASANORI-M%2Frust-demo'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 087e96a43145f47358e233d9ca463e907b96ef49 [INFO] checking MASANORI-M/rust-demo/087e96a43145f47358e233d9ca463e907b96ef49 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMASANORI-M%2Frust-demo" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MASANORI-M/rust-demo on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MASANORI-M/rust-demo [INFO] finished tweaking git repo https://github.com/MASANORI-M/rust-demo [INFO] tweaked toml for git repo https://github.com/MASANORI-M/rust-demo written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/MASANORI-M/rust-demo 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" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9e034a013d4a22950c46eec4570ad5699f9e69333b04af70189a00b6e2b7657 [INFO] running `Command { std: "docker" "start" "-a" "d9e034a013d4a22950c46eec4570ad5699f9e69333b04af70189a00b6e2b7657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9e034a013d4a22950c46eec4570ad5699f9e69333b04af70189a00b6e2b7657", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9e034a013d4a22950c46eec4570ad5699f9e69333b04af70189a00b6e2b7657", kill_on_drop: false }` [INFO] [stdout] d9e034a013d4a22950c46eec4570ad5699f9e69333b04af70189a00b6e2b7657 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f499ccf7e580563e94058e793677b0a268fc60fd7a0a5184b05b1d2b521376c [INFO] running `Command { std: "docker" "start" "-a" "8f499ccf7e580563e94058e793677b0a268fc60fd7a0a5184b05b1d2b521376c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.66 [INFO] [stderr] Compiling unicode-ident v1.0.11 [INFO] [stderr] Checking pin-project-lite v0.2.12 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling serde v1.0.183 [INFO] [stderr] Compiling serde_derive v1.0.183 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking socket2 v0.5.3 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Checking regex-syntax v0.7.4 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.104 [INFO] [stderr] Checking regex-syntax v0.6.29 [INFO] [stderr] Compiling anyhow v1.0.72 [INFO] [stderr] Compiling thiserror v1.0.44 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking http-range-header v0.3.1 [INFO] [stderr] Checking httpdate v1.0.2 [INFO] [stderr] Checking sharded-slab v0.1.4 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking thread_local v1.1.7 [INFO] [stderr] Checking matchit v0.4.6 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking tracing-log v0.1.3 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling quote v1.0.32 [INFO] [stderr] Compiling syn v2.0.28 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex-automata v0.3.6 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking regex v1.9.3 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Compiling tracing-attributes v0.1.26 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.44 [INFO] [stderr] Checking tokio v1.31.0 [INFO] [stderr] Checking axum-core v0.1.2 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Checking tracing-subscriber v0.3.17 [INFO] [stderr] Checking tokio-util v0.7.8 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking h2 v0.3.20 [INFO] [stderr] Checking tower-http v0.2.5 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking axum v0.4.8 [INFO] [stderr] Checking rust-demo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anyhow::Context` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anyhow::Context; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | fn create(&self, payload: CreateTodo) -> Todo { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | fn find(&self, id: i32) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | fn update(&self, id: i32, payload: UpdateTodo) -> anyhow::Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | fn update(&self, id: i32, payload: UpdateTodo) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:92:22 [INFO] [stdout] | [INFO] [stdout] 92 | fn delete(&self, id: i32) -> anyhow::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:76:22 [INFO] [stdout] | [INFO] [stdout] 76 | fn create(&self, payload: CreateTodo) -> Todo { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | fn find(&self, id: i32) -> Option { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | fn update(&self, id: i32, payload: UpdateTodo) -> anyhow::Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `payload` [INFO] [stdout] --> src/main.rs:88:31 [INFO] [stdout] | [INFO] [stdout] 88 | fn update(&self, id: i32, payload: UpdateTodo) -> anyhow::Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_payload` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/main.rs:92:22 [INFO] [stdout] | [INFO] [stdout] 92 | fn delete(&self, id: i32) -> anyhow::Result<()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RepositoryError` is never used [INFO] [stdout] --> src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum RepositoryError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `store` is never read [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct TodoRepositoryForMemory { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 64 | store: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TodoRepositoryForMemory` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 115 | fn create_app(repository: T) -> Router { [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 116 | / Router::new() [INFO] [stdout] 117 | | .route("/", get(root)) [INFO] [stdout] 118 | | .route("/todos", post(create_todo::)) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 115 | fn create_app(repository: T) -> Router { [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 119 | .layer(Extension(Arc::new(repository))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-demo` (bin "rust-demo") due to 3 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: enum `RepositoryError` is never used [INFO] [stdout] --> src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum RepositoryError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `store` is never read [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 63 | pub struct TodoRepositoryForMemory { [INFO] [stdout] | ----------------------- field in this struct [INFO] [stdout] 64 | store: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TodoRepositoryForMemory` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 115 | fn create_app(repository: T) -> Router { [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 116 | / Router::new() [INFO] [stdout] 117 | | .route("/", get(root)) [INFO] [stdout] 118 | | .route("/todos", post(create_todo::)) [INFO] [stdout] | |________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/main.rs:119:16 [INFO] [stdout] | [INFO] [stdout] 115 | fn create_app(repository: T) -> Router { [INFO] [stdout] | ------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 119 | .layer(Extension(Arc::new(repository))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-demo` (bin "rust-demo" test) due to 3 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8f499ccf7e580563e94058e793677b0a268fc60fd7a0a5184b05b1d2b521376c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f499ccf7e580563e94058e793677b0a268fc60fd7a0a5184b05b1d2b521376c", kill_on_drop: false }` [INFO] [stdout] 8f499ccf7e580563e94058e793677b0a268fc60fd7a0a5184b05b1d2b521376c