[INFO] cloning repository https://github.com/senzenn/rust-rest-api-axum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/senzenn/rust-rest-api-axum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsenzenn%2Frust-rest-api-axum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsenzenn%2Frust-rest-api-axum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] eedb6ef7de3c1604e57f835b78e0e9a1f635c863 [INFO] checking senzenn/rust-rest-api-axum against try#e90f1ff63e694965281f833819a486da29772bdf for pr-146167 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsenzenn%2Frust-rest-api-axum" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/senzenn/rust-rest-api-axum [INFO] finished tweaking git repo https://github.com/senzenn/rust-rest-api-axum [INFO] tweaked toml for git repo https://github.com/senzenn/rust-rest-api-axum written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/senzenn/rust-rest-api-axum on toolchain e90f1ff63e694965281f833819a486da29772bdf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/senzenn/rust-rest-api-axum 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" "+e90f1ff63e694965281f833819a486da29772bdf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 175117dfebff0d37b5b61531c14fb424de05c069c2cac74c49a45e75414ae5fc [INFO] running `Command { std: "docker" "start" "-a" "175117dfebff0d37b5b61531c14fb424de05c069c2cac74c49a45e75414ae5fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "175117dfebff0d37b5b61531c14fb424de05c069c2cac74c49a45e75414ae5fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "175117dfebff0d37b5b61531c14fb424de05c069c2cac74c49a45e75414ae5fc", kill_on_drop: false }` [INFO] [stdout] 175117dfebff0d37b5b61531c14fb424de05c069c2cac74c49a45e75414ae5fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+e90f1ff63e694965281f833819a486da29772bdf" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d0aaac50502a43aeb7625998bc2b2f0582c9534f8a1ab84e86fa5c77ca4ecde [INFO] running `Command { std: "docker" "start" "-a" "9d0aaac50502a43aeb7625998bc2b2f0582c9534f8a1ab84e86fa5c77ca4ecde", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.23 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking tokio v1.45.0 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling macro_magic_core_macros v0.5.1 [INFO] [stderr] Compiling derive-syn-parse v0.2.0 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling libsqlite3-sys v0.27.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Checking uuid v1.16.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling macro_magic_core v0.5.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling flume v0.11.1 [INFO] [stderr] Compiling macro_magic_macros v0.5.1 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling urlencoding v2.1.3 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling enum-as-inner v0.6.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Compiling serde_with_macros v3.12.0 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking sct v0.7.1 [INFO] [stderr] Checking rustls-webpki v0.101.7 [INFO] [stderr] Compiling macro_magic v0.5.1 [INFO] [stderr] Checking serde_bytes v0.11.17 [INFO] [stderr] Checking hickory-proto v0.24.4 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Checking bson v2.15.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking hyper-util v0.1.12 [INFO] [stderr] Compiling mongodb-internal-macros v3.2.3 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking serde_with v3.12.0 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking sha-1 v0.10.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Compiling derive-where v1.4.0 [INFO] [stderr] Checking thread_local v1.1.8 [INFO] [stderr] Checking tower-http v0.6.4 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-rustls v0.24.1 [INFO] [stderr] Compiling typed-builder v0.10.0 [INFO] [stderr] Checking hickory-resolver v0.24.4 [INFO] [stderr] Checking mongodb v3.2.3 [INFO] [stderr] Checking sqlx-sqlite v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking api-rustone v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `get_client` is never used [INFO] [stdout] --> src/db/db.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn get_client() -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_connection` is never used [INFO] [stdout] --> src/db/db.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn test_connection() -> mongodb::error::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRepository` is never constructed [INFO] [stdout] --> src/db/repositories/user_repo.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UserRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_user`, `find_by_id`, `find_by_email`, `update_user`, and `delete_user` are never used [INFO] [stdout] --> src/db/repositories/user_repo.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UserRepository { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(db: &Database) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn create_user(&self, user: User) -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn find_by_id(&self, id: u64) -> mongodb::error::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn find_by_email(&self, email: &str) -> mongodb::error::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn update_user(&self, user: User) -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn delete_user(&self, id: u64) -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_user` and `get_all_users` are never used [INFO] [stdout] --> src/db/repositories/sql_user_repo.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl SqlUserRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub async fn delete_user(&self, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub async fn get_all_users(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_client` is never used [INFO] [stdout] --> src/db/db.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn get_client() -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_connection` is never used [INFO] [stdout] --> src/db/db.rs:14:14 [INFO] [stdout] | [INFO] [stdout] 14 | pub async fn test_connection() -> mongodb::error::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserRepository` is never constructed [INFO] [stdout] --> src/db/repositories/user_repo.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct UserRepository { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_user`, `find_by_id`, `find_by_email`, `update_user`, and `delete_user` are never used [INFO] [stdout] --> src/db/repositories/user_repo.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl UserRepository { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(db: &Database) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub async fn create_user(&self, user: User) -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub async fn find_by_id(&self, id: u64) -> mongodb::error::Result> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub async fn find_by_email(&self, email: &str) -> mongodb::error::Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | pub async fn update_user(&self, user: User) -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | pub async fn delete_user(&self, id: u64) -> mongodb::error::Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `delete_user` and `get_all_users` are never used [INFO] [stdout] --> src/db/repositories/sql_user_repo.rs:169:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl SqlUserRepository { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 169 | pub async fn delete_user(&self, id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 191 | pub async fn get_all_users(&self) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 04s [INFO] running `Command { std: "docker" "inspect" "9d0aaac50502a43aeb7625998bc2b2f0582c9534f8a1ab84e86fa5c77ca4ecde", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d0aaac50502a43aeb7625998bc2b2f0582c9534f8a1ab84e86fa5c77ca4ecde", kill_on_drop: false }` [INFO] [stdout] 9d0aaac50502a43aeb7625998bc2b2f0582c9534f8a1ab84e86fa5c77ca4ecde