[INFO] cloning repository https://github.com/peepheak/rust-backend-solid [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/peepheak/rust-backend-solid" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeepheak%2Frust-backend-solid", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeepheak%2Frust-backend-solid'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 769601911eca2fba907e1495f875943a21670b4a [INFO] checking peepheak/rust-backend-solid against try#7b3da9103634dffd4f4365cfd8642427c781d99f+rustflags=-Dinherent-method-on-receiver for 152214-denied [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpeepheak%2Frust-backend-solid" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 56% (3340/5954) Updating files: 57% (3394/5954) Updating files: 58% (3454/5954) Updating files: 59% (3513/5954) Updating files: 60% (3573/5954) Updating files: 60% (3586/5954) Updating files: 61% (3632/5954) Updating files: 62% (3692/5954) Updating files: 63% (3752/5954) Updating files: 64% (3811/5954) Updating files: 65% (3871/5954) Updating files: 65% (3880/5954) Updating files: 66% (3930/5954) Updating files: 67% (3990/5954) Updating files: 67% (4016/5954) Updating files: 68% (4049/5954) Updating files: 69% (4109/5954) Updating files: 69% (4134/5954) Updating files: 70% (4168/5954) Updating files: 71% (4228/5954) Updating files: 72% (4287/5954) Updating files: 73% (4347/5954) Updating files: 74% (4406/5954) Updating files: 75% (4466/5954) Updating files: 76% (4526/5954) Updating files: 77% (4585/5954) Updating files: 78% (4645/5954) Updating files: 79% (4704/5954) Updating files: 80% (4764/5954) Updating files: 81% (4823/5954) Updating files: 82% (4883/5954) Updating files: 83% (4942/5954) Updating files: 84% (5002/5954) Updating files: 85% (5061/5954) Updating files: 85% (5093/5954) Updating files: 86% (5121/5954) Updating files: 87% (5180/5954) Updating files: 88% (5240/5954) Updating files: 89% (5300/5954) Updating files: 90% (5359/5954) Updating files: 91% (5419/5954) Updating files: 92% (5478/5954) Updating files: 93% (5538/5954) Updating files: 94% (5597/5954) Updating files: 95% (5657/5954) Updating files: 96% (5716/5954) Updating files: 97% (5776/5954) Updating files: 98% (5835/5954) Updating files: 99% (5895/5954) Updating files: 99% (5953/5954) Updating files: 100% (5954/5954) Updating files: 100% (5954/5954), done. [INFO] started tweaking git repo https://github.com/peepheak/rust-backend-solid [INFO] finished tweaking git repo https://github.com/peepheak/rust-backend-solid [INFO] tweaked toml for git repo https://github.com/peepheak/rust-backend-solid written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/peepheak/rust-backend-solid on toolchain 7b3da9103634dffd4f4365cfd8642427c781d99f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/peepheak/rust-backend-solid 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" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4877fa4ce0faa6af7824eac56f9df3fded0f4637d8a19fa98a98c6b586a1956b [INFO] running `Command { std: "docker" "start" "-a" "4877fa4ce0faa6af7824eac56f9df3fded0f4637d8a19fa98a98c6b586a1956b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4877fa4ce0faa6af7824eac56f9df3fded0f4637d8a19fa98a98c6b586a1956b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4877fa4ce0faa6af7824eac56f9df3fded0f4637d8a19fa98a98c6b586a1956b", kill_on_drop: false }` [INFO] [stdout] 4877fa4ce0faa6af7824eac56f9df3fded0f4637d8a19fa98a98c6b586a1956b [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 -Dinherent-method-on-receiver" "-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7b3da9103634dffd4f4365cfd8642427c781d99f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be3b74eeb2126b71d151196a069565c3cc94b9a8c35a1f3ccb8c1e40a8402d26 [INFO] running `Command { std: "docker" "start" "-a" "be3b74eeb2126b71d151196a069565c3cc94b9a8c35a1f3ccb8c1e40a8402d26", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.44 [INFO] [stderr] Compiling find-msvc-tools v0.1.8 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling zerocopy v0.8.34 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling libc v0.2.180 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Compiling zmij v1.0.17 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.2 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Checking getrandom v0.2.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.2.54 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking http v1.4.0 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bytes v1.11.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Checking crypto-common v0.1.7 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling chrono v0.4.43 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling rustix v1.1.3 [INFO] [stderr] Compiling syn v2.0.114 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.111 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling indexmap v2.13.0 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling uuid v1.20.0 [INFO] [stderr] Checking regex-syntax v0.8.8 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling tokio v1.49.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling openssl v0.10.75 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling num-conv v0.2.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Compiling time-core v0.1.8 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Checking deranged v0.5.5 [INFO] [stderr] Compiling time-macros v0.2.26 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking ryu v1.0.22 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling tempfile v3.24.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking time v0.3.46 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Checking zerovec v0.11.5 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Checking tracing-subscriber v0.3.22 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Compiling potential_utf v0.1.4 [INFO] [stderr] Compiling icu_locale_core v2.1.1 [INFO] [stderr] Compiling icu_collections v2.1.1 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling validator_derive v0.18.2 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling icu_provider v2.1.1 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking url v2.5.8 [INFO] [stderr] Checking validator v0.18.1 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking tokio-util v0.7.18 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking hyper-util v0.1.19 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking rust-backend-solid v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: methods `created_at`, `updated_at`, and `set_updated_at` are never used [INFO] [stdout] --> src/common/base_entity.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseEntity: [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 29 | fn created_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn updated_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn set_updated_at(&mut self, timestamp: DateTime); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ValidationResult` is never used [INFO] [stdout] --> src/common/result.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub type ValidationResult = Result<(), Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Validation`, `BusinessRule`, `Unauthorized`, and `Internal` are never constructed [INFO] [stdout] --> src/common/result.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum ServiceError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | Validation(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | BusinessRule(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Unauthorized(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | Internal(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationError` is never constructed [INFO] [stdout] --> src/common/result.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ValidationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/result.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl ValidationError { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 90 | pub fn new(field: impl Into, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/entities/user.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub trait Persistable: BaseEntity { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 69 | fn merge( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/interfaces/repositories/base_repository.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseRepository: Send + Sync { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 8 | /// Get all entities (SELECT * FROM table) [INFO] [stdout] 9 | async fn entities(&self) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | async fn create_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | async fn update(&self, entity: &mut T) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | async fn update_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | async fn delete_range(&self, ids: &[Uuid]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn count(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | async fn find_by_field(&self, field: &str, value: &str) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | async fn exists(&self, id: Uuid) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `commit`, `rollback`, and `close` are never used [INFO] [stdout] --> src/interfaces/repositories/unit_of_work.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait UnitOfWork: Send + Sync { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | async fn commit(&mut self) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn rollback(&mut self) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn close(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_user_by_email`, `user_exists`, and `verify_user_eligibility` are never used [INFO] [stdout] --> src/interfaces/services/user_service.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait UserService: Send + Sync { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | async fn get_user_by_email(&self, email: &str) -> ServiceResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn user_exists(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn verify_user_eligibility(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pool` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pool(&self) -> &Pool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 142 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] 143 | /// Execute custom query [INFO] [stdout] 144 | pub async fn query(&self, sql: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transaction` is never read [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UnitOfWorkImpl { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 18 | pool: Pool, [INFO] [stdout] 19 | transaction: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure_transaction` and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 23 | impl UnitOfWorkImpl { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | async fn ensure_transaction(&mut self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitOfWorkFactory` is never constructed [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct UnitOfWorkFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create`, and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl UnitOfWorkFactory { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 111 | /// Create a new factory [INFO] [stdout] 112 | pub fn new(pool: Pool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn create(&self) -> UnitOfWorkImpl { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `created_at`, `updated_at`, and `set_updated_at` are never used [INFO] [stdout] --> src/common/base_entity.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseEntity: [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 29 | fn created_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | fn updated_at(&self) -> DateTime; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn set_updated_at(&mut self, timestamp: DateTime); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `ValidationResult` is never used [INFO] [stdout] --> src/common/result.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub type ValidationResult = Result<(), Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Validation`, `BusinessRule`, `Unauthorized`, and `Internal` are never constructed [INFO] [stdout] --> src/common/result.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub enum ServiceError { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] ... [INFO] [stdout] 22 | Validation(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | BusinessRule(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Unauthorized(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | Internal(String), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ServiceError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ValidationError` is never constructed [INFO] [stdout] --> src/common/result.rs:84:12 [INFO] [stdout] | [INFO] [stdout] 84 | pub struct ValidationError { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/common/result.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 89 | impl ValidationError { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 90 | pub fn new(field: impl Into, message: impl Into) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `merge` is never used [INFO] [stdout] --> src/entities/user.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub trait Persistable: BaseEntity { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 69 | fn merge( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/interfaces/repositories/base_repository.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait BaseRepository: Send + Sync { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 8 | /// Get all entities (SELECT * FROM table) [INFO] [stdout] 9 | async fn entities(&self) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn get_all(&self) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | async fn create_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | async fn update(&self, entity: &mut T) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | async fn update_range(&self, entities: &mut [T]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | async fn delete(&self, id: Uuid) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | async fn delete_range(&self, ids: &[Uuid]) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | async fn count(&self) -> Result; [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | async fn find_by_field(&self, field: &str, value: &str) -> Result, sqlx::Error>; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | async fn exists(&self, id: Uuid) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `commit`, `rollback`, and `close` are never used [INFO] [stdout] --> src/interfaces/repositories/unit_of_work.rs:15:14 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait UnitOfWork: Send + Sync { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 15 | async fn commit(&mut self) -> Result; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn rollback(&mut self) -> Result<(), sqlx::Error>; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | fn close(&mut self); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_user_by_email`, `user_exists`, and `verify_user_eligibility` are never used [INFO] [stdout] --> src/interfaces/services/user_service.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait UserService: Send + Sync { [INFO] [stdout] | ----------- methods in this trait [INFO] [stdout] ... [INFO] [stdout] 12 | async fn get_user_by_email(&self, email: &str) -> ServiceResult>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 15 | async fn user_exists(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | async fn verify_user_eligibility(&self, user_id: Uuid) -> ServiceResult; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pool` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn pool(&self) -> &Pool { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `query` is never used [INFO] [stdout] --> src/repositories/base_repository_impl.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 142 | impl BaseRepositoryImpl { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] 143 | /// Execute custom query [INFO] [stdout] 144 | pub async fn query(&self, sql: &str) -> Result, sqlx::Error> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transaction` is never read [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct UnitOfWorkImpl { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 18 | pool: Pool, [INFO] [stdout] 19 | transaction: Arc>>>, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `ensure_transaction` and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:34:14 [INFO] [stdout] | [INFO] [stdout] 23 | impl UnitOfWorkImpl { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 34 | async fn ensure_transaction(&mut self) -> Result<(), sqlx::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitOfWorkFactory` is never constructed [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 106 | pub struct UnitOfWorkFactory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create`, and `execute` are never used [INFO] [stdout] --> src/repositories/unit_of_work_impl.rs:112:12 [INFO] [stdout] | [INFO] [stdout] 110 | impl UnitOfWorkFactory { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 111 | /// Create a new factory [INFO] [stdout] 112 | pub fn new(pool: Pool) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn create(&self) -> UnitOfWorkImpl { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub async fn execute(&self, work: F) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 19s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "be3b74eeb2126b71d151196a069565c3cc94b9a8c35a1f3ccb8c1e40a8402d26", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be3b74eeb2126b71d151196a069565c3cc94b9a8c35a1f3ccb8c1e40a8402d26", kill_on_drop: false }` [INFO] [stdout] be3b74eeb2126b71d151196a069565c3cc94b9a8c35a1f3ccb8c1e40a8402d26