[INFO] cloning repository https://github.com/awalnur/basic-auth-rs
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/awalnur/basic-auth-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawalnur%2Fbasic-auth-rs", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawalnur%2Fbasic-auth-rs'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] dabf370c8f5defa29aca992fb5625650522ecd10
[INFO] testing awalnur/basic-auth-rs against beta-2026-03-05 for beta-1.95-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fawalnur%2Fbasic-auth-rs" "/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/awalnur/basic-auth-rs
[INFO] finished tweaking git repo https://github.com/awalnur/basic-auth-rs
[INFO] tweaked toml for git repo https://github.com/awalnur/basic-auth-rs written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/awalnur/basic-auth-rs on toolchain beta-2026-03-05
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2026-03-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/awalnur/basic-auth-rs 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" "+beta-2026-03-05" "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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f478ac094162d290a030e973de33b5f231f7188e93f86e54ee16a3a160d7220a
[INFO] running `Command { std: "docker" "start" "-a" "f478ac094162d290a030e973de33b5f231f7188e93f86e54ee16a3a160d7220a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f478ac094162d290a030e973de33b5f231f7188e93f86e54ee16a3a160d7220a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f478ac094162d290a030e973de33b5f231f7188e93f86e54ee16a3a160d7220a", kill_on_drop: false }`
[INFO] [stdout] f478ac094162d290a030e973de33b5f231f7188e93f86e54ee16a3a160d7220a
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 65ccd0c882eb6ffaea0a93e00125f3f91ff5a5f3408993bf74c273032e5ca3db
[INFO] running `Command { std: "docker" "start" "-a" "65ccd0c882eb6ffaea0a93e00125f3f91ff5a5f3408993bf74c273032e5ca3db", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling libc v0.2.174
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]    Compiling zerocopy v0.8.26
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling regex-automata v0.4.9
[INFO] [stderr]    Compiling time-core v0.1.4
[INFO] [stderr]    Compiling deranged v0.4.0
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]    Compiling slab v0.4.10
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling regex-lite v0.1.6
[INFO] [stderr]    Compiling bitflags v2.9.1
[INFO] [stderr]    Compiling aho-corasick v1.1.3
[INFO] [stderr]    Compiling time-macros v0.2.22
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling bytestring v1.4.0
[INFO] [stderr]    Compiling crc32fast v1.4.2
[INFO] [stderr]    Compiling tinyvec v1.9.0
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling brotli v8.0.1
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling flate2 v1.1.2
[INFO] [stderr]    Compiling utf8parse v0.2.2
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling pq-sys v0.7.2
[INFO] [stderr]    Compiling anstyle-parse v0.2.7
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling jobserver v0.1.33
[INFO] [stderr]    Compiling parking_lot_core v0.9.11
[INFO] [stderr]    Compiling mio v1.0.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.5
[INFO] [stderr]    Compiling syn v2.0.104
[INFO] [stderr]    Compiling cc v1.2.29
[INFO] [stderr]    Compiling socket2 v0.5.10
[INFO] [stderr]    Compiling getrandom v0.3.3
[INFO] [stderr]    Compiling parking_lot v0.12.4
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling time v0.3.41
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling scheduled-thread-pool v0.2.7
[INFO] [stderr]    Compiling num-bigint v0.4.6
[INFO] [stderr]    Compiling unicode-normalization v0.1.24
[INFO] [stderr]    Compiling anstyle v1.0.11
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling colorchoice v1.0.4
[INFO] [stderr]    Compiling is_terminal_polyfill v1.70.1
[INFO] [stderr]    Compiling anstyle-query v1.1.3
[INFO] [stderr]    Compiling if_chain v1.0.2
[INFO] [stderr]    Compiling unicode-bidi v0.3.18
[INFO] [stderr]    Compiling base64ct v1.8.0
[INFO] [stderr]    Compiling env_filter v0.1.3
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling password-hash v0.4.2
[INFO] [stderr]    Compiling anstream v0.6.19
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling idna v0.4.0
[INFO] [stderr]    Compiling r2d2 v0.8.10
[INFO] [stderr]    Compiling zstd-sys v2.0.15+zstd.1.5.7
[INFO] [stderr]    Compiling ring v0.16.20
[INFO] [stderr]    Compiling pem v1.1.1
[INFO] [stderr]    Compiling rand v0.9.1
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling actix-router v0.5.3
[INFO] [stderr]    Compiling cookie v0.16.2
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling blake2 v0.10.6
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling jiff v0.2.15
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling json v0.12.4
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling argon2 v0.4.1
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling validator_types v0.16.0
[INFO] [stderr]    Compiling validator_derive v0.16.0
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling darling_core v0.20.11
[INFO] [stderr]    Compiling diesel_table_macro_syntax v0.2.0
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.1
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]    Compiling tokio-macros v2.5.0
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]    Compiling thiserror-impl v2.0.12
[INFO] [stderr]    Compiling actix-web-codegen v4.3.0
[INFO] [stderr]    Compiling actix-macros v0.2.4
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling async-trait v0.1.88
[INFO] [stderr]    Compiling tokio v1.46.1
[INFO] [stderr]    Compiling env_logger v0.11.8
[INFO] [stderr]    Compiling zstd-safe v7.2.4
[INFO] [stderr]    Compiling thiserror v2.0.12
[INFO] [stderr]    Compiling simple_asn1 v0.6.3
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling zstd v0.13.3
[INFO] [stderr]    Compiling yoke v0.8.0
[INFO] [stderr]    Compiling darling_macro v0.20.11
[INFO] [stderr]    Compiling zerovec v0.11.2
[INFO] [stderr]    Compiling zerotrie v0.2.2
[INFO] [stderr]    Compiling darling v0.20.11
[INFO] [stderr]    Compiling dsl_auto_type v0.1.3
[INFO] [stderr]    Compiling derive_more v2.0.1
[INFO] [stderr]    Compiling diesel_derives v2.2.6
[INFO] [stderr]    Compiling tinystr v0.8.1
[INFO] [stderr]    Compiling potential_utf v0.1.2
[INFO] [stderr]    Compiling icu_collections v2.0.0
[INFO] [stderr]    Compiling icu_locale_core v2.0.0
[INFO] [stderr]    Compiling icu_provider v2.0.0
[INFO] [stderr]    Compiling icu_normalizer v2.0.0
[INFO] [stderr]    Compiling icu_properties v2.0.1
[INFO] [stderr]    Compiling serde_json v1.0.140
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling uuid v1.17.0
[INFO] [stderr]    Compiling chrono v0.4.41
[INFO] [stderr]    Compiling tracing-serde v0.2.0
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling actix-rt v2.10.0
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling idna v1.0.3
[INFO] [stderr]    Compiling actix-server v2.6.0
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling actix-codec v0.5.2
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling jsonwebtoken v8.3.0
[INFO] [stderr]    Compiling tracing-subscriber v0.3.19
[INFO] [stderr]    Compiling validator v0.16.1
[INFO] [stderr]    Compiling diesel v2.2.11
[INFO] [stderr]    Compiling actix-http v3.11.0
[INFO] [stderr]    Compiling actix-web v4.11.0
[INFO] [stderr]    Compiling actix-web-httpauth v0.7.0
[INFO] [stderr]    Compiling basic-auth v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `RepositoryResult`
[INFO] [stdout]  --> src/domain/services/authentication_service.rs:5:68
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::domain::repositories::user_repository::{UserRepository, RepositoryResult};
[INFO] [stdout]   |                                                                    ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/domain/services/user_service.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::App;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/domain/services/user_service.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/application/dtos/auth_dto.rs:86:1
[INFO] [stdout]    |
[INFO] [stdout] 86 | / /// Regex for strong password validation
[INFO] [stdout] 87 | | ///
[INFO] [stdout] 88 | | /// Password must contain:
[INFO] [stdout] 89 | | /// - At least one uppercase letter
[INFO] [stdout] 90 | | /// - At least one lowercase letter
[INFO] [stdout] 91 | | /// - At least one number
[INFO] [stdout]    | |_------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/application/use_cases/auth/login_use_case.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::App;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::infrastructure::persistence::models::user_model::UserModel`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::infrastructure::persistence::models::user_model::UserModel;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/application/ports/token_port.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/infrastructure/persistence/models/user_model.rs:6:29
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{NaiveDateTime, DateTime, Utc};
[INFO] [stdout]   |                             ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::sql_types::Nullable`
[INFO] [stdout]  --> src/infrastructure/persistence/models/user_model.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use diesel::sql_types::Nullable;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `user_roles` and `users`
[INFO] [stdout]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:7:50
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::infrastructure::persistence::schema::{users, user_roles};
[INFO] [stdout]   |                                                  ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema`
[INFO] [stdout]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::schema;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/infrastructure/security/password_hasher.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]   --> src/infrastructure/security/password_hasher.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | use log::{debug, error};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/interfaces/api/controllers/auth_controller.rs:4:36
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, HttpResponse, Responder, HttpRequest, http::StatusCode};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::interfaces::api::routes::SafeJson`
[INFO] [stdout]   --> src/interfaces/api/controllers/auth_controller.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::interfaces::api::routes::SafeJson;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::StatusCode`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::http::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::json;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse` and `body::BoxBody`
[INFO] [stdout]  --> src/interfaces/api/middlewares/auth_middleware.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Error, HttpMessage, HttpResponse, Result, body::BoxBody,
[INFO] [stdout]   |                         ^^^^^^^^^^^^          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ApiErrorResponse`
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 15 | use crate::common::models::response::{ApiErrorResponse, ErrorToResponse};
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App`, `delete`, `put`, and `scope`
[INFO] [stdout]  --> src/interfaces/api/routes.rs:5:98
[INFO] [stdout]   |
[INFO] [stdout] 5 | use actix_web::{web, FromRequest, HttpResponse, Responder, dev::Payload, HttpRequest, get, post, put, delete, scope, App};
[INFO] [stdout]   |                                                                                                  ^^^  ^^^^^^  ^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AuthUserExtractor`
[INFO] [stdout]  --> src/interfaces/api/routes.rs:9:76
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::interfaces::api::middlewares::auth_middleware::{AuthMiddleware, AuthUserExtractor};
[INFO] [stdout]   |                                                                            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/common/models/response.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::{json, Value as JsonValue};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]    --> src/common/utils/mod.rs:771:17
[INFO] [stdout]     |
[INFO] [stdout] 771 |         base64::encode(bytes)
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead
[INFO] [stdout]    --> src/application/dtos/auth_dto.rs:107:41
[INFO] [stdout]     |
[INFO] [stdout] 107 |             created_at: user.created_at.timestamp(),
[INFO] [stdout]     |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/interfaces/api/routes.rs:92:21
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 Err(e) => {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |             AppError::Database(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:287:31
[INFO] [stdout]     |
[INFO] [stdout] 287 |             AppError::Network(msg) => ApiErrorResponse::new(503, "network_error", "Network communication error"),
[INFO] [stdout]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:288:39
[INFO] [stdout]     |
[INFO] [stdout] 288 | ...   AppError::ExternalService(msg) => ApiErrorResponse::new(502, "external_service_error", "Error communicating with external ser...
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:289:37
[INFO] [stdout]     |
[INFO] [stdout] 289 |             AppError::Configuration(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:290:37
[INFO] [stdout]     |
[INFO] [stdout] 290 |             AppError::Serialization(msg) => ApiErrorResponse::new(400, "serialization_error", "Invalid data format"),
[INFO] [stdout]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:293:32
[INFO] [stdout]     |
[INFO] [stdout] 293 |             AppError::Internal(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `TokenServiceArc` is never used
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:18:6
[INFO] [stdout]    |
[INFO] [stdout] 18 | type TokenServiceArc = Arc<dyn TokenService + Send + Sync>;
[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 `ServiceFuture` is never used
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:21:6
[INFO] [stdout]    |
[INFO] [stdout] 21 | type ServiceFuture<B> = LocalBoxFuture<'static, Result<ServiceResponse<B>, Error>>;
[INFO] [stdout]    |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `web`
[INFO] [stdout]  --> src/main.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, App, HttpServer, middleware::Logger};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s
[INFO] running `Command { std: "docker" "inspect" "65ccd0c882eb6ffaea0a93e00125f3f91ff5a5f3408993bf74c273032e5ca3db", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "65ccd0c882eb6ffaea0a93e00125f3f91ff5a5f3408993bf74c273032e5ca3db", kill_on_drop: false }`
[INFO] [stdout] 65ccd0c882eb6ffaea0a93e00125f3f91ff5a5f3408993bf74c273032e5ca3db
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9a866c30e7e4b7e4aeac668d57e5e1f4e21c075f61afcb839fe3277c2c2f93ed
[INFO] running `Command { std: "docker" "start" "-a" "9a866c30e7e4b7e4aeac668d57e5e1f4e21c075f61afcb839fe3277c2c2f93ed", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.46.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling url v2.5.4
[INFO] [stderr]    Compiling fastrand v1.9.0
[INFO] [stderr]    Compiling waker-fn v1.2.0
[INFO] [stderr]    Compiling predicates-core v1.0.9
[INFO] [stderr]    Compiling http-types v2.12.0
[INFO] [stderr]    Compiling itertools v0.10.5
[INFO] [stderr]    Compiling http-body v0.4.6
[INFO] [stderr]    Compiling float-cmp v0.9.0
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling test-case-core v3.3.1
[INFO] [stderr]    Compiling num_cpus v1.17.0
[INFO] [stderr]    Compiling difflib v0.4.0
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling futures-lite v1.13.0
[INFO] [stderr]    Compiling rand_chacha v0.2.2
[INFO] [stderr]    Compiling normalize-line-endings v0.3.0
[INFO] [stderr]    Compiling termtree v0.5.1
[INFO] [stderr]    Compiling retain_mut v0.1.9
[INFO] [stderr]    Compiling deadpool-runtime v0.1.4
[INFO] [stderr]    Compiling concurrent-queue v2.5.0
[INFO] [stderr]    Compiling infer v0.2.3
[INFO] [stderr]    Compiling rand v0.7.3
[INFO] [stderr]    Compiling predicates-tree v1.0.12
[INFO] [stderr]    Compiling async-channel v1.9.0
[INFO] [stderr]    Compiling assert-json-diff v2.0.2
[INFO] [stderr]    Compiling downcast v0.11.0
[INFO] [stderr]    Compiling fragile v2.0.1
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling diff v0.1.13
[INFO] [stderr]    Compiling pretty_assertions v1.4.1
[INFO] [stderr]    Compiling test-case-macros v3.3.1
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling serde_qs v0.8.5
[INFO] [stderr]    Compiling test-case v3.3.1
[INFO] [stderr]    Compiling predicates v2.1.5
[INFO] [stderr]    Compiling proc-macro-error v1.0.4
[INFO] [stderr]    Compiling validator_types v0.16.0
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling validator_derive v0.16.0
[INFO] [stderr]    Compiling mockall_derive v0.11.4
[INFO] [stderr]    Compiling validator v0.16.1
[INFO] [stderr]    Compiling tokio-util v0.7.15
[INFO] [stderr]    Compiling actix-rt v2.10.0
[INFO] [stderr]    Compiling deadpool v0.9.5
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling actix-server v2.6.0
[INFO] [stderr]    Compiling mockall v0.11.4
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling h2 v0.3.26
[INFO] [stderr]    Compiling actix-codec v0.5.2
[INFO] [stderr]    Compiling actix-http v3.11.0
[INFO] [stderr]    Compiling hyper v0.14.32
[INFO] [stderr]    Compiling actix-web v4.11.0
[INFO] [stderr]    Compiling wiremock v0.5.22
[INFO] [stderr]    Compiling actix-web-httpauth v0.7.0
[INFO] [stderr]    Compiling basic-auth v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `RepositoryResult`
[INFO] [stdout]  --> src/domain/services/authentication_service.rs:5:68
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::domain::repositories::user_repository::{UserRepository, RepositoryResult};
[INFO] [stdout]   |                                                                    ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/domain/services/user_service.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::App;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/domain/services/user_service.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/application/dtos/auth_dto.rs:86:1
[INFO] [stdout]    |
[INFO] [stdout] 86 | / /// Regex for strong password validation
[INFO] [stdout] 87 | | ///
[INFO] [stdout] 88 | | /// Password must contain:
[INFO] [stdout] 89 | | /// - At least one uppercase letter
[INFO] [stdout] 90 | | /// - At least one lowercase letter
[INFO] [stdout] 91 | | /// - At least one number
[INFO] [stdout]    | |_------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/application/use_cases/auth/login_use_case.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::App;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::infrastructure::persistence::models::user_model::UserModel`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::infrastructure::persistence::models::user_model::UserModel;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/application/ports/token_port.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/infrastructure/persistence/models/user_model.rs:6:29
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{NaiveDateTime, DateTime, Utc};
[INFO] [stdout]   |                             ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::sql_types::Nullable`
[INFO] [stdout]  --> src/infrastructure/persistence/models/user_model.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use diesel::sql_types::Nullable;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `user_roles` and `users`
[INFO] [stdout]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:7:50
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::infrastructure::persistence::schema::{users, user_roles};
[INFO] [stdout]   |                                                  ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema`
[INFO] [stdout]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::schema;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/infrastructure/security/password_hasher.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]   --> src/infrastructure/security/password_hasher.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | use log::{debug, error};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/interfaces/api/controllers/auth_controller.rs:4:36
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, HttpResponse, Responder, HttpRequest, http::StatusCode};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::interfaces::api::routes::SafeJson`
[INFO] [stdout]   --> src/interfaces/api/controllers/auth_controller.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::interfaces::api::routes::SafeJson;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::StatusCode`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::http::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::json;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse` and `body::BoxBody`
[INFO] [stdout]  --> src/interfaces/api/middlewares/auth_middleware.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Error, HttpMessage, HttpResponse, Result, body::BoxBody,
[INFO] [stdout]   |                         ^^^^^^^^^^^^          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ApiErrorResponse`
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 15 | use crate::common::models::response::{ApiErrorResponse, ErrorToResponse};
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App`, `delete`, `put`, and `scope`
[INFO] [stdout]  --> src/interfaces/api/routes.rs:5:98
[INFO] [stdout]   |
[INFO] [stdout] 5 | use actix_web::{web, FromRequest, HttpResponse, Responder, dev::Payload, HttpRequest, get, post, put, delete, scope, App};
[INFO] [stdout]   |                                                                                                  ^^^  ^^^^^^  ^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AuthUserExtractor`
[INFO] [stdout]  --> src/interfaces/api/routes.rs:9:76
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::interfaces::api::middlewares::auth_middleware::{AuthMiddleware, AuthUserExtractor};
[INFO] [stdout]   |                                                                            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/common/models/response.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::{json, Value as JsonValue};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]    --> src/common/utils/mod.rs:771:17
[INFO] [stdout]     |
[INFO] [stdout] 771 |         base64::encode(bytes)
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RepositoryResult`
[INFO] [stdout]  --> src/domain/services/authentication_service.rs:5:68
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::domain::repositories::user_repository::{UserRepository, RepositoryResult};
[INFO] [stdout]   |                                                                    ^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/domain/services/user_service.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::App;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/domain/services/user_service.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused doc comment
[INFO] [stdout]   --> src/application/dtos/auth_dto.rs:86:1
[INFO] [stdout]    |
[INFO] [stdout] 86 | / /// Regex for strong password validation
[INFO] [stdout] 87 | | ///
[INFO] [stdout] 88 | | /// Password must contain:
[INFO] [stdout] 89 | | /// - At least one uppercase letter
[INFO] [stdout] 90 | | /// - At least one lowercase letter
[INFO] [stdout] 91 | | /// - At least one number
[INFO] [stdout]    | |_------------------------^
[INFO] [stdout]    |   |
[INFO] [stdout]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stdout]    |
[INFO] [stdout]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stdout]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/application/use_cases/auth/login_use_case.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::App`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use actix_web::App;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::infrastructure::persistence::models::user_model::UserModel`
[INFO] [stdout]  --> src/application/use_cases/user/create_user_use_case.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::infrastructure::persistence::models::user_model::UserModel;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/application/ports/token_port.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DateTime` and `Utc`
[INFO] [stdout]  --> src/infrastructure/persistence/models/user_model.rs:6:29
[INFO] [stdout]   |
[INFO] [stdout] 6 | use chrono::{NaiveDateTime, DateTime, Utc};
[INFO] [stdout]   |                             ^^^^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `diesel::sql_types::Nullable`
[INFO] [stdout]  --> src/infrastructure/persistence/models/user_model.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use diesel::sql_types::Nullable;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `user_roles` and `users`
[INFO] [stdout]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:7:50
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::infrastructure::persistence::schema::{users, user_roles};
[INFO] [stdout]   |                                                  ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::schema`
[INFO] [stdout]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::schema;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env`
[INFO] [stdout]  --> src/infrastructure/security/password_hasher.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::env;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `debug`
[INFO] [stdout]   --> src/infrastructure/security/password_hasher.rs:14:11
[INFO] [stdout]    |
[INFO] [stdout] 14 | use log::{debug, error};
[INFO] [stdout]    |           ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Responder`
[INFO] [stdout]  --> src/interfaces/api/controllers/auth_controller.rs:4:36
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, HttpResponse, Responder, HttpRequest, http::StatusCode};
[INFO] [stdout]   |                                    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::interfaces::api::routes::SafeJson`
[INFO] [stdout]   --> src/interfaces/api/controllers/auth_controller.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::interfaces::api::routes::SafeJson;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::error::Error`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::error::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `actix_web::http::StatusCode`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::http::StatusCode;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `serde_json::json`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::json;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `thiserror::Error`
[INFO] [stdout]  --> src/interfaces/api/controllers/user_controller.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use thiserror::Error;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `HttpResponse` and `body::BoxBody`
[INFO] [stdout]  --> src/interfaces/api/middlewares/auth_middleware.rs:6:25
[INFO] [stdout]   |
[INFO] [stdout] 6 |     Error, HttpMessage, HttpResponse, Result, body::BoxBody,
[INFO] [stdout]   |                         ^^^^^^^^^^^^          ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ApiErrorResponse`
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 15 | use crate::common::models::response::{ApiErrorResponse, ErrorToResponse};
[INFO] [stdout]    |                                       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `App`, `delete`, `put`, and `scope`
[INFO] [stdout]  --> src/interfaces/api/routes.rs:5:98
[INFO] [stdout]   |
[INFO] [stdout] 5 | use actix_web::{web, FromRequest, HttpResponse, Responder, dev::Payload, HttpRequest, get, post, put, delete, scope, App};
[INFO] [stdout]   |                                                                                                  ^^^  ^^^^^^  ^^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `AuthUserExtractor`
[INFO] [stdout]  --> src/interfaces/api/routes.rs:9:76
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::interfaces::api::middlewares::auth_middleware::{AuthMiddleware, AuthUserExtractor};
[INFO] [stdout]   |                                                                            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/common/models/response.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | use serde_json::{json, Value as JsonValue};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stdout]    --> src/common/utils/mod.rs:771:17
[INFO] [stdout]     |
[INFO] [stdout] 771 |         base64::encode(bytes)
[INFO] [stdout]     |                 ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead
[INFO] [stdout]    --> src/application/dtos/auth_dto.rs:107:41
[INFO] [stdout]     |
[INFO] [stdout] 107 |             created_at: user.created_at.timestamp(),
[INFO] [stdout]     |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/interfaces/api/routes.rs:92:21
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 Err(e) => {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead
[INFO] [stdout]    --> src/application/dtos/auth_dto.rs:107:41
[INFO] [stdout]     |
[INFO] [stdout] 107 |             created_at: user.created_at.timestamp(),
[INFO] [stdout]     |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |             AppError::Database(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:287:31
[INFO] [stdout]     |
[INFO] [stdout] 287 |             AppError::Network(msg) => ApiErrorResponse::new(503, "network_error", "Network communication error"),
[INFO] [stdout]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:288:39
[INFO] [stdout]     |
[INFO] [stdout] 288 | ...   AppError::ExternalService(msg) => ApiErrorResponse::new(502, "external_service_error", "Error communicating with external ser...
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:289:37
[INFO] [stdout]     |
[INFO] [stdout] 289 |             AppError::Configuration(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:290:37
[INFO] [stdout]     |
[INFO] [stdout] 290 |             AppError::Serialization(msg) => ApiErrorResponse::new(400, "serialization_error", "Invalid data format"),
[INFO] [stdout]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:293:32
[INFO] [stdout]     |
[INFO] [stdout] 293 |             AppError::Internal(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `TokenServiceArc` is never used
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:18:6
[INFO] [stdout]    |
[INFO] [stdout] 18 | type TokenServiceArc = Arc<dyn TokenService + Send + Sync>;
[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 `ServiceFuture` is never used
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:21:6
[INFO] [stdout]    |
[INFO] [stdout] 21 | type ServiceFuture<B> = LocalBoxFuture<'static, Result<ServiceResponse<B>, Error>>;
[INFO] [stdout]    |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/interfaces/api/routes.rs:92:21
[INFO] [stdout]    |
[INFO] [stdout] 92 |                 Err(e) => {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:286:32
[INFO] [stdout]     |
[INFO] [stdout] 286 |             AppError::Database(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:287:31
[INFO] [stdout]     |
[INFO] [stdout] 287 |             AppError::Network(msg) => ApiErrorResponse::new(503, "network_error", "Network communication error"),
[INFO] [stdout]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:288:39
[INFO] [stdout]     |
[INFO] [stdout] 288 | ...   AppError::ExternalService(msg) => ApiErrorResponse::new(502, "external_service_error", "Error communicating with external ser...
[INFO] [stdout]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:289:37
[INFO] [stdout]     |
[INFO] [stdout] 289 |             AppError::Configuration(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:290:37
[INFO] [stdout]     |
[INFO] [stdout] 290 |             AppError::Serialization(msg) => ApiErrorResponse::new(400, "serialization_error", "Invalid data format"),
[INFO] [stdout]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `msg`
[INFO] [stdout]    --> src/common/models/response.rs:293:32
[INFO] [stdout]     |
[INFO] [stdout] 293 |             AppError::Internal(msg) => ApiErrorResponse::internal_error(),
[INFO] [stdout]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `TokenServiceArc` is never used
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:18:6
[INFO] [stdout]    |
[INFO] [stdout] 18 | type TokenServiceArc = Arc<dyn TokenService + Send + Sync>;
[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 `ServiceFuture` is never used
[INFO] [stdout]   --> src/interfaces/api/middlewares/auth_middleware.rs:21:6
[INFO] [stdout]    |
[INFO] [stdout] 21 | type ServiceFuture<B> = LocalBoxFuture<'static, Result<ServiceResponse<B>, Error>>;
[INFO] [stdout]    |      ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `web`
[INFO] [stdout]  --> src/main.rs:4:17
[INFO] [stdout]   |
[INFO] [stdout] 4 | use actix_web::{web, App, HttpServer, middleware::Logger};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 42.06s
[INFO] running `Command { std: "docker" "inspect" "9a866c30e7e4b7e4aeac668d57e5e1f4e21c075f61afcb839fe3277c2c2f93ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9a866c30e7e4b7e4aeac668d57e5e1f4e21c075f61afcb839fe3277c2c2f93ed", kill_on_drop: false }`
[INFO] [stdout] 9a866c30e7e4b7e4aeac668d57e5e1f4e21c075f61afcb839fe3277c2c2f93ed
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2026-03-05" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 37c3fbf2356f37767aa1d9f1e5951bbfa81f455c2323133886c529ecf3dce8c0
[INFO] running `Command { std: "docker" "start" "-a" "37c3fbf2356f37767aa1d9f1e5951bbfa81f455c2323133886c529ecf3dce8c0", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `RepositoryResult`
[INFO] [stderr]  --> src/domain/services/authentication_service.rs:5:68
[INFO] [stderr]   |
[INFO] [stderr] 5 | use crate::domain::repositories::user_repository::{UserRepository, RepositoryResult};
[INFO] [stderr]   |                                                                    ^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `actix_web::App`
[INFO] [stderr]  --> src/domain/services/user_service.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use actix_web::App;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `thiserror::Error`
[INFO] [stderr]  --> src/domain/services/user_service.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use thiserror::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused doc comment
[INFO] [stderr]   --> src/application/dtos/auth_dto.rs:86:1
[INFO] [stderr]    |
[INFO] [stderr] 86 | / /// Regex for strong password validation
[INFO] [stderr] 87 | | ///
[INFO] [stderr] 88 | | /// Password must contain:
[INFO] [stderr] 89 | | /// - At least one uppercase letter
[INFO] [stderr] 90 | | /// - At least one lowercase letter
[INFO] [stderr] 91 | | /// - At least one number
[INFO] [stderr]    | |_------------------------^
[INFO] [stderr]    |   |
[INFO] [stderr]    |   rustdoc does not generate documentation for macro invocations
[INFO] [stderr]    |
[INFO] [stderr]    = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion
[INFO] [stderr]    = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `thiserror::Error`
[INFO] [stderr]  --> src/application/use_cases/auth/login_use_case.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use thiserror::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `actix_web::App`
[INFO] [stderr]  --> src/application/use_cases/user/create_user_use_case.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use actix_web::App;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `thiserror::Error`
[INFO] [stderr]  --> src/application/use_cases/user/create_user_use_case.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use thiserror::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::infrastructure::persistence::models::user_model::UserModel`
[INFO] [stderr]  --> src/application/use_cases/user/create_user_use_case.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use crate::infrastructure::persistence::models::user_model::UserModel;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::error::Error`
[INFO] [stderr]  --> src/application/ports/token_port.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::error::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `DateTime` and `Utc`
[INFO] [stderr]  --> src/infrastructure/persistence/models/user_model.rs:6:29
[INFO] [stderr]   |
[INFO] [stderr] 6 | use chrono::{NaiveDateTime, DateTime, Utc};
[INFO] [stderr]   |                             ^^^^^^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `diesel::sql_types::Nullable`
[INFO] [stderr]  --> src/infrastructure/persistence/models/user_model.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | use diesel::sql_types::Nullable;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `user_roles` and `users`
[INFO] [stderr]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:7:50
[INFO] [stderr]   |
[INFO] [stderr] 7 | use crate::infrastructure::persistence::schema::{users, user_roles};
[INFO] [stderr]   |                                                  ^^^^^  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::schema`
[INFO] [stderr]  --> src/infrastructure/persistence/repositories/user_repository_impl.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | use crate::schema;
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::env`
[INFO] [stderr]  --> src/infrastructure/security/password_hasher.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::env;
[INFO] [stderr]   |     ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `debug`
[INFO] [stderr]   --> src/infrastructure/security/password_hasher.rs:14:11
[INFO] [stderr]    |
[INFO] [stderr] 14 | use log::{debug, error};
[INFO] [stderr]    |           ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Responder`
[INFO] [stderr]  --> src/interfaces/api/controllers/auth_controller.rs:4:36
[INFO] [stderr]   |
[INFO] [stderr] 4 | use actix_web::{web, HttpResponse, Responder, HttpRequest, http::StatusCode};
[INFO] [stderr]   |                                    ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::interfaces::api::routes::SafeJson`
[INFO] [stderr]   --> src/interfaces/api/controllers/auth_controller.rs:14:5
[INFO] [stderr]    |
[INFO] [stderr] 14 | use crate::interfaces::api::routes::SafeJson;
[INFO] [stderr]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::error::Error`
[INFO] [stderr]  --> src/interfaces/api/controllers/user_controller.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::error::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `actix_web::http::StatusCode`
[INFO] [stderr]  --> src/interfaces/api/controllers/user_controller.rs:4:5
[INFO] [stderr]   |
[INFO] [stderr] 4 | use actix_web::http::StatusCode;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `serde_json::json`
[INFO] [stderr]  --> src/interfaces/api/controllers/user_controller.rs:7:5
[INFO] [stderr]   |
[INFO] [stderr] 7 | use serde_json::json;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `thiserror::Error`
[INFO] [stderr]  --> src/interfaces/api/controllers/user_controller.rs:9:5
[INFO] [stderr]   |
[INFO] [stderr] 9 | use thiserror::Error;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `HttpResponse` and `body::BoxBody`
[INFO] [stderr]  --> src/interfaces/api/middlewares/auth_middleware.rs:6:25
[INFO] [stderr]   |
[INFO] [stderr] 6 |     Error, HttpMessage, HttpResponse, Result, body::BoxBody,
[INFO] [stderr]   |                         ^^^^^^^^^^^^          ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `ApiErrorResponse`
[INFO] [stderr]   --> src/interfaces/api/middlewares/auth_middleware.rs:15:39
[INFO] [stderr]    |
[INFO] [stderr] 15 | use crate::common::models::response::{ApiErrorResponse, ErrorToResponse};
[INFO] [stderr]    |                                       ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `App`, `delete`, `put`, and `scope`
[INFO] [stderr]  --> src/interfaces/api/routes.rs:5:98
[INFO] [stderr]   |
[INFO] [stderr] 5 | use actix_web::{web, FromRequest, HttpResponse, Responder, dev::Payload, HttpRequest, get, post, put, delete, scope, App};
[INFO] [stderr]   |                                                                                                  ^^^  ^^^^^^  ^^^^^  ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `AuthUserExtractor`
[INFO] [stderr]  --> src/interfaces/api/routes.rs:9:76
[INFO] [stderr]   |
[INFO] [stderr] 9 | use crate::interfaces::api::middlewares::auth_middleware::{AuthMiddleware, AuthUserExtractor};
[INFO] [stderr]   |                                                                            ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `json`
[INFO] [stderr]  --> src/common/models/response.rs:7:18
[INFO] [stderr]   |
[INFO] [stderr] 7 | use serde_json::{json, Value as JsonValue};
[INFO] [stderr]   |                  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated function `base64::encode`: Use Engine::encode
[INFO] [stderr]    --> src/common/utils/mod.rs:771:17
[INFO] [stderr]     |
[INFO] [stderr] 771 |         base64::encode(bytes)
[INFO] [stderr]     |                 ^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(deprecated)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: use of deprecated method `chrono::NaiveDateTime::timestamp`: use `.and_utc().timestamp()` instead
[INFO] [stderr]    --> src/application/dtos/auth_dto.rs:107:41
[INFO] [stderr]     |
[INFO] [stderr] 107 |             created_at: user.created_at.timestamp(),
[INFO] [stderr]     |                                         ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `e`
[INFO] [stderr]   --> src/interfaces/api/routes.rs:92:21
[INFO] [stderr]    |
[INFO] [stderr] 92 |                 Err(e) => {
[INFO] [stderr]    |                     ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `msg`
[INFO] [stderr]    --> src/common/models/response.rs:286:32
[INFO] [stderr]     |
[INFO] [stderr] 286 |             AppError::Database(msg) => ApiErrorResponse::internal_error(),
[INFO] [stderr]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `msg`
[INFO] [stderr]    --> src/common/models/response.rs:287:31
[INFO] [stderr]     |
[INFO] [stderr] 287 |             AppError::Network(msg) => ApiErrorResponse::new(503, "network_error", "Network communication error"),
[INFO] [stderr]     |                               ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `msg`
[INFO] [stderr]    --> src/common/models/response.rs:288:39
[INFO] [stderr]     |
[INFO] [stderr] 288 | ...   AppError::ExternalService(msg) => ApiErrorResponse::new(502, "external_service_error", "Error communicating with external ser...
[INFO] [stderr]     |                                 ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `msg`
[INFO] [stderr]    --> src/common/models/response.rs:289:37
[INFO] [stderr]     |
[INFO] [stderr] 289 |             AppError::Configuration(msg) => ApiErrorResponse::internal_error(),
[INFO] [stderr]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `msg`
[INFO] [stderr]    --> src/common/models/response.rs:290:37
[INFO] [stderr]     |
[INFO] [stderr] 290 |             AppError::Serialization(msg) => ApiErrorResponse::new(400, "serialization_error", "Invalid data format"),
[INFO] [stderr]     |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `msg`
[INFO] [stderr]    --> src/common/models/response.rs:293:32
[INFO] [stderr]     |
[INFO] [stderr] 293 |             AppError::Internal(msg) => ApiErrorResponse::internal_error(),
[INFO] [stderr]     |                                ^^^ help: if this is intentional, prefix it with an underscore: `_msg`
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `TokenServiceArc` is never used
[INFO] [stderr]   --> src/interfaces/api/middlewares/auth_middleware.rs:18:6
[INFO] [stderr]    |
[INFO] [stderr] 18 | type TokenServiceArc = Arc<dyn TokenService + Send + Sync>;
[INFO] [stderr]    |      ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `ServiceFuture` is never used
[INFO] [stderr]   --> src/interfaces/api/middlewares/auth_middleware.rs:21:6
[INFO] [stderr]    |
[INFO] [stderr] 21 | type ServiceFuture<B> = LocalBoxFuture<'static, Result<ServiceResponse<B>, Error>>;
[INFO] [stderr]    |      ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `basic-auth` (lib) generated 37 warnings (run `cargo fix --lib -p basic-auth` to apply 32 suggestions)
[INFO] [stderr] warning: unused import: `web`
[INFO] [stderr]  --> src/main.rs:4:17
[INFO] [stderr]   |
[INFO] [stderr] 4 | use actix_web::{web, App, HttpServer, middleware::Logger};
[INFO] [stderr]   |                 ^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `basic-auth` (lib test) generated 37 warnings (37 duplicates)
[INFO] [stderr] warning: `basic-auth` (bin "basic-auth" test) generated 1 warning (run `cargo fix --bin "basic-auth" -p basic-auth --tests` to apply 1 suggestion)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.42s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/basic_auth-59e2390cb32ca93b)
[INFO] [stdout] running 24 tests
[INFO] [stdout] test common::logging::tests::test_error_info_creation ... ok
[INFO] [stdout] test common::errors::tests::test_error_context ... ok
[INFO] [stdout] test common::errors::tests::test_error_categorization ... ok
[INFO] [stdout] test common::errors::tests::test_contextual_error ... ok
[INFO] [stdout] test common::logging::tests::test_log_entry_creation ... ok
[INFO] [stdout] test common::utils::tests::test_collections_utilities ... ok
[INFO] [stdout] test common::utils::tests::test_crypto_utilities ... ok
[INFO] [stdout] test common::utils::tests::test_datetime_utilities ... ok
[INFO] [stdout] test common::utils::tests::test_email_validation ... ok
[INFO] [stdout] test common::logging::tests::test_app_logger ... ok
[INFO] [stdout] test common::utils::tests::test_string_utilities ... ok
[INFO] [stdout] test common::utils::tests::test_enhanced_password_validation ... ok
[INFO] [stdout] test interfaces::api::middlewares::auth_middleware::tests::test_middleware_with_valid_token ... ok
[INFO] [stdout] test interfaces::api::middlewares::auth_middleware::tests::test_middleware_with_missing_token ... ok
[INFO] [stdout] test interfaces::api::middlewares::auth_middleware::tests::test_middleware_with_invalid_token ... ok
[INFO] [stdout] test common::utils::tests::test_username_validation ... ok
[INFO] [stdout] test common::utils::tests::test_rate_limiter ... ok
[INFO] [stdout] test common::logging::tests::test_performance_monitor ... ok
[INFO] [stdout] test infrastructure::security::password_hasher::tests::test_invalid_hash_format ... ok
[INFO] [stdout] test common::utils::tests::test_sensitive_data_sanitization ... ok
[INFO] [stdout] test interfaces::api::middlewares::auth_middleware::tests::test_middleware_with_invalid_auth_format ... ok
[INFO] [stdout] test common::errors::tests::test_app_error_from_domain_error ... ok
[INFO] [stdout] test infrastructure::security::password_hasher::tests::test_different_passwords_have_different_hashes ... ok
[INFO] [stdout] test infrastructure::security::password_hasher::tests::test_password_hash_and_verify ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.56s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/basic_auth-43c9f1e1e5b5f403)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests basic_auth
[INFO] [stdout] 
[INFO] [stdout] running 7 tests
[INFO] [stdout] test src/common/errors/mod.rs - common::errors::AppError (line 41) - compile ... ok
[INFO] [stdout] test src/domain/repositories/user_repository.rs - domain::repositories::user_repository::UserRepository (line 20) ... ignored
[INFO] [stdout] test src/domain/services/authentication_service.rs - domain::services::authentication_service::AuthenticationService (line 39) ... ignored
[INFO] [stdout] test src/domain/errors/domain_error.rs - domain::errors::domain_error::DomainError (line 13) - compile ... ok
[INFO] [stdout] test src/domain/entities/user.rs - domain::entities::user::User (line 16) ... ok
[INFO] [stdout] test src/common/utils/mod.rs - common::utils::validation::validate_password (line 139) ... ok
[INFO] [stdout] test src/common/utils/mod.rs - common::utils::validation::is_valid_email (line 54) ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 5 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stdout] all doctests ran in 1.42s; merged doctests compilation took 1.36s
[INFO] running `Command { std: "docker" "inspect" "37c3fbf2356f37767aa1d9f1e5951bbfa81f455c2323133886c529ecf3dce8c0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "37c3fbf2356f37767aa1d9f1e5951bbfa81f455c2323133886c529ecf3dce8c0", kill_on_drop: false }`
[INFO] [stdout] 37c3fbf2356f37767aa1d9f1e5951bbfa81f455c2323133886c529ecf3dce8c0
