[INFO] cloning repository https://github.com/aziznal/rust-todo-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aziznal/rust-todo-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faziznal%2Frust-todo-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faziznal%2Frust-todo-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] edafa91a8d53413e8e10186141f5a272b3d08fbb [INFO] checking aziznal/rust-todo-api against master#e9182f195b8505c87c4bd055b9f6e114ccda0981 for pr-144098 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faziznal%2Frust-todo-api" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/aziznal/rust-todo-api [INFO] finished tweaking git repo https://github.com/aziznal/rust-todo-api [INFO] tweaked toml for git repo https://github.com/aziznal/rust-todo-api written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/aziznal/rust-todo-api on toolchain e9182f195b8505c87c4bd055b9f6e114ccda0981 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/aziznal/rust-todo-api 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" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa1d23aaec5b498fa650ba625e1bb419f9bd2424cef042d9b891cd4f76e6fd52 [INFO] running `Command { std: "docker" "start" "-a" "fa1d23aaec5b498fa650ba625e1bb419f9bd2424cef042d9b891cd4f76e6fd52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa1d23aaec5b498fa650ba625e1bb419f9bd2424cef042d9b891cd4f76e6fd52", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa1d23aaec5b498fa650ba625e1bb419f9bd2424cef042d9b891cd4f76e6fd52", kill_on_drop: false }` [INFO] [stdout] fa1d23aaec5b498fa650ba625e1bb419f9bd2424cef042d9b891cd4f76e6fd52 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+e9182f195b8505c87c4bd055b9f6e114ccda0981" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9be131f0e2f21fd8d7edbd58309a0346e262259f70db14db07e4add43669c24d [INFO] running `Command { std: "docker" "start" "-a" "9be131f0e2f21fd8d7edbd58309a0346e262259f70db14db07e4add43669c24d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Compiling futures-core v0.3.28 [INFO] [stderr] Checking pin-project-lite v0.2.13 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking bytes v1.5.0 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling futures-task v0.3.28 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Checking once_cell v1.18.0 [INFO] [stderr] Compiling futures-util v0.3.28 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking tracing-core v0.1.31 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking percent-encoding v2.3.0 [INFO] [stderr] Checking tinyvec v1.6.0 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking http v0.2.9 [INFO] [stderr] Compiling futures-channel v0.3.28 [INFO] [stderr] Checking form_urlencoded v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking futures-sink v0.3.28 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Compiling regex-syntax v0.8.1 [INFO] [stderr] Checking tracing v0.1.37 [INFO] [stderr] Checking tower-layer v0.3.2 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Checking try-lock v0.2.4 [INFO] [stderr] Checking unicode-bidi v0.3.13 [INFO] [stderr] Checking http-body v0.4.5 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking unicode-normalization v0.1.22 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking socket2 v0.5.4 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking mio v0.8.8 [INFO] [stderr] Checking socket2 v0.4.9 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking idna v0.4.0 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking url v2.4.1 [INFO] [stderr] Compiling regex-automata v0.4.1 [INFO] [stderr] Compiling validator_types v0.16.0 [INFO] [stderr] Checking regex v1.10.0 [INFO] [stderr] Compiling serde_derive v1.0.189 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Checking tokio v1.33.0 [INFO] [stderr] Checking pin-project v1.1.3 [INFO] [stderr] Compiling validator_derive v0.16.0 [INFO] [stderr] Checking tokio-util v0.7.9 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking serde_path_to_error v0.1.14 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking envy v0.4.2 [INFO] [stderr] Checking h2 v0.3.21 [INFO] [stderr] Checking validator v0.16.1 [INFO] [stderr] Checking hyper v0.14.27 [INFO] [stderr] Checking rust-todo-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn get_all_todos(State(state): State) -> impl IntoResponse { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/api/todo/handlers.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | Path(todo_id): Path, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn create_todo(State(state): State) -> impl IntoResponse { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/api/todo/handlers.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | Path(todo_id): Path, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/api/todo/handlers.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | Path(todo_id): Path, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn get_all_todos(State(state): State) -> impl IntoResponse { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/api/todo/handlers.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 34 | Path(todo_id): Path, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 41 | pub async fn create_todo(State(state): State) -> impl IntoResponse { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/api/todo/handlers.rs:49:10 [INFO] [stdout] | [INFO] [stdout] 49 | Path(todo_id): Path, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/api/todo/handlers.rs:57:11 [INFO] [stdout] | [INFO] [stdout] 57 | State(state): State, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `todo_id` [INFO] [stdout] --> src/api/todo/handlers.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 58 | Path(todo_id): Path, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_todo_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TodoResponse` is never constructed [INFO] [stdout] --> src/api/todo/handlers.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct TodoResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTodoDto` is never constructed [INFO] [stdout] --> src/api/todo/handlers.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct CreateTodoDto { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateTodoDto` is never constructed [INFO] [stdout] --> src/api/todo/handlers.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct UpdateTodoDto { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TodoResponse` is never constructed [INFO] [stdout] --> src/api/todo/handlers.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | struct TodoResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateTodoDto` is never constructed [INFO] [stdout] --> src/api/todo/handlers.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct CreateTodoDto { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateTodoDto` is never constructed [INFO] [stdout] --> src/api/todo/handlers.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct UpdateTodoDto { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 43.26s [INFO] running `Command { std: "docker" "inspect" "9be131f0e2f21fd8d7edbd58309a0346e262259f70db14db07e4add43669c24d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9be131f0e2f21fd8d7edbd58309a0346e262259f70db14db07e4add43669c24d", kill_on_drop: false }` [INFO] [stdout] 9be131f0e2f21fd8d7edbd58309a0346e262259f70db14db07e4add43669c24d