[INFO] cloning repository https://github.com/nguyencuong1005/todo-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nguyencuong1005/todo-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnguyencuong1005%2Ftodo-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnguyencuong1005%2Ftodo-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f7e539b8f61061470c5d08625ab2aa2bfe02ecc [INFO] checking nguyencuong1005/todo-backend against master#f21fbac535ab2c3bc50db20547f4d48477357103 for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnguyencuong1005%2Ftodo-backend" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/nguyencuong1005/todo-backend [INFO] finished tweaking git repo https://github.com/nguyencuong1005/todo-backend [INFO] tweaked toml for git repo https://github.com/nguyencuong1005/todo-backend written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nguyencuong1005/todo-backend on toolchain f21fbac535ab2c3bc50db20547f4d48477357103 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/nguyencuong1005/todo-backend 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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ca643b864395083b978b9ab8cd6c4233addc8ad240733ceac3027352cdbf2e8 [INFO] running `Command { std: "docker" "start" "-a" "2ca643b864395083b978b9ab8cd6c4233addc8ad240733ceac3027352cdbf2e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ca643b864395083b978b9ab8cd6c4233addc8ad240733ceac3027352cdbf2e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ca643b864395083b978b9ab8cd6c4233addc8ad240733ceac3027352cdbf2e8", kill_on_drop: false }` [INFO] [stdout] 2ca643b864395083b978b9ab8cd6c4233addc8ad240733ceac3027352cdbf2e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+f21fbac535ab2c3bc50db20547f4d48477357103" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 888b7511e93c3606142831f8d93b64b836c6748c101f588a996f05505d6aef54 [INFO] running `Command { std: "docker" "start" "-a" "888b7511e93c3606142831f8d93b64b836c6748c101f588a996f05505d6aef54", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking whoami v1.6.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.9 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking postgres-protocol v0.6.8 [INFO] [stderr] Checking postgres-types v0.2.9 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tokio v1.44.2 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-postgres v0.7.13 [INFO] [stderr] Checking hyper-util v0.1.11 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking postgres v0.19.10 [INFO] [stderr] Checking todo-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | routing::{get, post}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `post` [INFO] [stdout] --> src/main.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | routing::{get, post}, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut client = Client::connect("postgresql://postgres:53r45331@localhost:5432/todo", NoTls); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | let mut client = Client::connect("postgresql://postgres:53r45331@localhost:5432/todo", NoTls); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let db = tokio::task::spawn_blocking(|| db_connect()) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db` [INFO] [stdout] --> src/main.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let db = tokio::task::spawn_blocking(|| db_connect()) [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_db` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / client.unwrap().execute( [INFO] [stdout] 50 | | "INSERT INTO tasks (id, title, completed) VALUES ($1, $2, $3)", [INFO] [stdout] 51 | | &[&&id, &title, &completed_status], [INFO] [stdout] 52 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = client.unwrap().execute( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / client.unwrap().execute( [INFO] [stdout] 50 | | "INSERT INTO tasks (id, title, completed) VALUES ($1, $2, $3)", [INFO] [stdout] 51 | | &[&&id, &title, &completed_status], [INFO] [stdout] 52 | | ); [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 49 | let _ = client.unwrap().execute( [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.28s [INFO] running `Command { std: "docker" "inspect" "888b7511e93c3606142831f8d93b64b836c6748c101f588a996f05505d6aef54", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "888b7511e93c3606142831f8d93b64b836c6748c101f588a996f05505d6aef54", kill_on_drop: false }` [INFO] [stdout] 888b7511e93c3606142831f8d93b64b836c6748c101f588a996f05505d6aef54