[INFO] cloning repository https://github.com/Franklyn-Sancho/rustlechat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Franklyn-Sancho/rustlechat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFranklyn-Sancho%2Frustlechat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFranklyn-Sancho%2Frustlechat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 655e3893367aebaeec087e5ef54aad7b04243276 [INFO] building Franklyn-Sancho/rustlechat against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFranklyn-Sancho%2Frustlechat" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Franklyn-Sancho/rustlechat [INFO] finished tweaking git repo https://github.com/Franklyn-Sancho/rustlechat [INFO] tweaked toml for git repo https://github.com/Franklyn-Sancho/rustlechat written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Franklyn-Sancho/rustlechat on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Franklyn-Sancho/rustlechat 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded validator_derive v0.16.0 [INFO] [stderr] Downloaded validator v0.16.1 [INFO] [stderr] Downloaded validator_types v0.16.0 [INFO] [stderr] Downloaded unicode-ident v1.0.15 [INFO] [stderr] Downloaded retain_mut v0.1.9 [INFO] [stderr] Downloaded deadpool-postgres v0.10.5 [INFO] [stderr] Downloaded jsonwebtoken v8.3.0 [INFO] [stderr] Downloaded pem v1.1.1 [INFO] [stderr] Downloaded axum-macros v0.3.8 [INFO] [stderr] Downloaded tokio-tungstenite v0.20.1 [INFO] [stderr] Downloaded deadpool v0.9.5 [INFO] [stderr] Downloaded tungstenite v0.20.1 [INFO] [stderr] Downloaded tokio-tungstenite v0.17.2 [INFO] [stderr] Downloaded if_chain v1.0.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41afbf2f371be6d97987dcdbc49edcd4136e66d5821fbc82644735563085d0f6 [INFO] running `Command { std: "docker" "start" "-a" "41afbf2f371be6d97987dcdbc49edcd4136e66d5821fbc82644735563085d0f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41afbf2f371be6d97987dcdbc49edcd4136e66d5821fbc82644735563085d0f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41afbf2f371be6d97987dcdbc49edcd4136e66d5821fbc82644735563085d0f6", kill_on_drop: false }` [INFO] [stdout] 41afbf2f371be6d97987dcdbc49edcd4136e66d5821fbc82644735563085d0f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3eae4a77a0168b332df123be225fde85e03e42b93f1b86108706fa506acc4d9d [INFO] running `Command { std: "docker" "start" "-a" "3eae4a77a0168b332df123be225fde85e03e42b93f1b86108706fa506acc4d9d", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.15 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling data-encoding v2.7.0 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling phf v0.11.3 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling retain_mut v0.1.9 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling hdrhistogram v7.5.4 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling headers v0.3.9 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling bcrypt v0.15.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling tracing-subscriber v0.3.19 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling validator_types v0.16.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling validator_derive v0.16.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling pin-project-internal v1.1.8 [INFO] [stderr] Compiling axum-macros v0.3.8 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling pin-project v1.1.8 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling postgres-protocol v0.6.7 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling tower-http v0.4.4 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.13 [INFO] [stderr] Compiling deadpool-runtime v0.1.4 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling deadpool v0.9.5 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling uuid v1.12.1 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling tungstenite v0.17.3 [INFO] [stderr] Compiling validator v0.16.1 [INFO] [stderr] Compiling postgres-types v0.2.8 [INFO] [stderr] Compiling tokio-tungstenite v0.17.2 [INFO] [stderr] Compiling tokio-postgres v0.7.12 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling deadpool-postgres v0.10.5 [INFO] [stderr] Compiling rustle_chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/handlers/chat_handlers.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | services::chat_service::{self, ChatService}, [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: `std::sync::Arc` [INFO] [stdout] --> src/handlers/invitation_handlers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `extract::Path` [INFO] [stdout] --> src/handlers/invitation_handlers.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{extract::Path, response::IntoResponse, Extension, Json}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `body::Body` [INFO] [stdout] --> src/middleware/auth_middleware.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TypedHeader` and `WebSocketUpgrade` [INFO] [stdout] --> src/middleware/ws_auth_middleware.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Query, WebSocketUpgrade}, http::HeaderMap, middleware::Next, response::Response, Extension, TypedHeader [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/models/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/models/invitation.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/services/auth_service.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/services/chat_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/services/chat_service.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use deadpool_postgres::{Pool, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/routes/app_routes.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/websocket/handlers.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | response::{IntoResponse, Response}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/websocket/handlers.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use deadpool_postgres::{Pool, Client}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/websocket/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDate`, and `Utc` [INFO] [stdout] --> src/websocket/types.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_postgres::Client` [INFO] [stdout] --> src/websocket/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio_postgres::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::connection_manager::ConnectionManager` [INFO] [stdout] --> src/websocket/types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::connection_manager::ConnectionManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/app_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/repositories/chat_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/handlers/chat_handlers.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | if let Err((status, e)) = send_invitation_helper( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/services/invitation_service.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let status = if accepted { "accepted" } else { "rejected" }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_id` [INFO] [stdout] --> src/websocket/connection_manager.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | sender_id: Uuid, // The ID of the user sending the message [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_id` [INFO] [stdout] --> src/websocket/connection_manager.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | sender_id: Uuid, // The ID of the user sending the message [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidToken` and `SessionExpired` are never constructed [INFO] [stdout] --> src/middleware/ws_auth_middleware.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 135 | InvalidToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | SessionExpired, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateChatData` is never constructed [INFO] [stdout] --> src/models/chat.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CreateChatData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvitationStatus` is never used [INFO] [stdout] --> src/models/invitation.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum InvitationStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendInvitationRequest` is never constructed [INFO] [stdout] --> src/models/invitation.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct SendInvitationRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeclineInviteRequest` is never constructed [INFO] [stdout] --> src/models/invitation.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DeclineInviteRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `username` is never read [INFO] [stdout] --> src/websocket/connection_manager.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct OnlineUser { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | pub id: Uuid, // User ID [INFO] [stdout] 14 | pub username: String, // Username [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OnlineUser` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db_pool` is never read [INFO] [stdout] --> src/websocket/connection_manager.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ConnectionManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub db_pool: Pool, // Database connection pool (agora é Pool diretamente) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sender` is never read [INFO] [stdout] --> src/websocket/connection_manager.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct UserConnection { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 35 | pub sender: broadcast::Sender, // Sender for WebSocket messages [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_user_from_db` is never used [INFO] [stdout] --> src/websocket/connection_manager.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 40 | impl ConnectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn get_user_from_db(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app_state.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl AppState { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn new(db: Pool, connections: ConnectionManager) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_invitation` and `check_invite_exists` are never used [INFO] [stdout] --> src/repositories/invitation_repository.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl InvitationRepository { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn create_invitation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn check_invite_exists( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `requirements` are never used [INFO] [stdout] --> src/utils/password_validator.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PasswordValidator { [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] 39 | /// Creates a new password validator with custom minimum length [INFO] [stdout] 40 | pub fn new(min_length: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub const fn requirements() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 13s [INFO] running `Command { std: "docker" "inspect" "3eae4a77a0168b332df123be225fde85e03e42b93f1b86108706fa506acc4d9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3eae4a77a0168b332df123be225fde85e03e42b93f1b86108706fa506acc4d9d", kill_on_drop: false }` [INFO] [stdout] 3eae4a77a0168b332df123be225fde85e03e42b93f1b86108706fa506acc4d9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f6698624c8d55a02c24fac1b7dbd1bce0183736fbe5756363e88c4b43898f974 [INFO] running `Command { std: "docker" "start" "-a" "f6698624c8d55a02c24fac1b7dbd1bce0183736fbe5756363e88c4b43898f974", kill_on_drop: false }` [INFO] [stderr] Compiling rustle_chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/handlers/chat_handlers.rs:8:30 [INFO] [stdout] | [INFO] [stdout] 8 | services::chat_service::{self, ChatService}, [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: `std::sync::Arc` [INFO] [stdout] --> src/handlers/invitation_handlers.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `extract::Path` [INFO] [stdout] --> src/handlers/invitation_handlers.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use axum::{extract::Path, response::IntoResponse, Extension, Json}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `body::Body` [INFO] [stdout] --> src/middleware/auth_middleware.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | body::Body, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TypedHeader` and `WebSocketUpgrade` [INFO] [stdout] --> src/middleware/ws_auth_middleware.rs:2:22 [INFO] [stdout] | [INFO] [stdout] 2 | extract::{Query, WebSocketUpgrade}, http::HeaderMap, middleware::Next, response::Response, Extension, TypedHeader [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/models/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime` and `Utc` [INFO] [stdout] --> src/models/invitation.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/services/auth_service.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/services/chat_service.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transaction` [INFO] [stdout] --> src/services/chat_service.rs:9:31 [INFO] [stdout] | [INFO] [stdout] 9 | use deadpool_postgres::{Pool, Transaction}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/routes/app_routes.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::{Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/websocket/handlers.rs:6:30 [INFO] [stdout] | [INFO] [stdout] 6 | response::{IntoResponse, Response}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Client` [INFO] [stdout] --> src/websocket/handlers.rs:12:31 [INFO] [stdout] | [INFO] [stdout] 12 | use deadpool_postgres::{Pool, Client}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/websocket/types.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DateTime`, `NaiveDate`, and `Utc` [INFO] [stdout] --> src/websocket/types.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio_postgres::Client` [INFO] [stdout] --> src/websocket/types.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use tokio_postgres::Client; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::connection_manager::ConnectionManager` [INFO] [stdout] --> src/websocket/types.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use super::connection_manager::ConnectionManager; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/app_state.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `chrono::Utc` [INFO] [stdout] --> src/repositories/chat_repository.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use chrono::Utc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/handlers/chat_handlers.rs:30:25 [INFO] [stdout] | [INFO] [stdout] 30 | if let Err((status, e)) = send_invitation_helper( [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/services/invitation_service.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | let status = if accepted { "accepted" } else { "rejected" }; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_status` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_id` [INFO] [stdout] --> src/websocket/connection_manager.rs:125:9 [INFO] [stdout] | [INFO] [stdout] 125 | sender_id: Uuid, // The ID of the user sending the message [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sender_id` [INFO] [stdout] --> src/websocket/connection_manager.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | sender_id: Uuid, // The ID of the user sending the message [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sender_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `InvalidToken` and `SessionExpired` are never constructed [INFO] [stdout] --> src/middleware/ws_auth_middleware.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 127 | pub enum AuthError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 135 | InvalidToken, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | SessionExpired, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AuthError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CreateChatData` is never constructed [INFO] [stdout] --> src/models/chat.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct CreateChatData { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `InvitationStatus` is never used [INFO] [stdout] --> src/models/invitation.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum InvitationStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SendInvitationRequest` is never constructed [INFO] [stdout] --> src/models/invitation.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct SendInvitationRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeclineInviteRequest` is never constructed [INFO] [stdout] --> src/models/invitation.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct DeclineInviteRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `username` is never read [INFO] [stdout] --> src/websocket/connection_manager.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct OnlineUser { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 13 | pub id: Uuid, // User ID [INFO] [stdout] 14 | pub username: String, // Username [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OnlineUser` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db_pool` is never read [INFO] [stdout] --> src/websocket/connection_manager.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct ConnectionManager { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub db_pool: Pool, // Database connection pool (agora é Pool diretamente) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConnectionManager` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sender` is never read [INFO] [stdout] --> src/websocket/connection_manager.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 34 | pub struct UserConnection { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 35 | pub sender: broadcast::Sender, // Sender for WebSocket messages [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_user_from_db` is never used [INFO] [stdout] --> src/websocket/connection_manager.rs:184:18 [INFO] [stdout] | [INFO] [stdout] 40 | impl ConnectionManager { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 184 | pub async fn get_user_from_db(&self, user_id: Uuid) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/app_state.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl AppState { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn new(db: Pool, connections: ConnectionManager) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `create_invitation` and `check_invite_exists` are never used [INFO] [stdout] --> src/repositories/invitation_repository.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 12 | impl InvitationRepository { [INFO] [stdout] | ------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 17 | pub async fn create_invitation( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub async fn check_invite_exists( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `requirements` are never used [INFO] [stdout] --> src/utils/password_validator.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl PasswordValidator { [INFO] [stdout] | ---------------------- associated functions in this implementation [INFO] [stdout] 39 | /// Creates a new password validator with custom minimum length [INFO] [stdout] 40 | pub fn new(min_length: usize) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub const fn requirements() -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.26s [INFO] running `Command { std: "docker" "inspect" "f6698624c8d55a02c24fac1b7dbd1bce0183736fbe5756363e88c4b43898f974", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f6698624c8d55a02c24fac1b7dbd1bce0183736fbe5756363e88c4b43898f974", kill_on_drop: false }` [INFO] [stdout] f6698624c8d55a02c24fac1b7dbd1bce0183736fbe5756363e88c4b43898f974