[INFO] cloning repository https://github.com/1mmunity/chattr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/1mmunity/chattr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1mmunity%2Fchattr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1mmunity%2Fchattr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a8a90748d12979bc1e23547214d74cde2dbb068e [INFO] testing 1mmunity/chattr against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F1mmunity%2Fchattr" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/1mmunity/chattr [INFO] finished tweaking git repo https://github.com/1mmunity/chattr [INFO] tweaked toml for git repo https://github.com/1mmunity/chattr written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/1mmunity/chattr on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/1mmunity/chattr 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 30a2c233e6dbc4f5f821294a61bfb72c46ce55a737202be5cfeb38b61e84f0e7 [INFO] running `Command { std: "docker" "start" "-a" "30a2c233e6dbc4f5f821294a61bfb72c46ce55a737202be5cfeb38b61e84f0e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "30a2c233e6dbc4f5f821294a61bfb72c46ce55a737202be5cfeb38b61e84f0e7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "30a2c233e6dbc4f5f821294a61bfb72c46ce55a737202be5cfeb38b61e84f0e7", kill_on_drop: false }` [INFO] [stdout] 30a2c233e6dbc4f5f821294a61bfb72c46ce55a737202be5cfeb38b61e84f0e7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] eaf547a969255e4fd32c124d0a19032d856352bc588998af6cf8291e81237136 [INFO] running `Command { std: "docker" "start" "-a" "eaf547a969255e4fd32c124d0a19032d856352bc588998af6cf8291e81237136", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.85 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling futures-core v0.3.19 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling serde_derive v1.0.133 [INFO] [stderr] Compiling generic-array v0.14.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.7.0 [INFO] [stderr] Compiling lock_api v0.4.5 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling futures-task v0.3.19 [INFO] [stderr] Compiling futures-channel v0.3.19 [INFO] [stderr] Compiling futures-sink v0.3.19 [INFO] [stderr] Compiling serde v1.0.133 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling futures-util v0.3.19 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling slab v0.4.5 [INFO] [stderr] Compiling futures-io v0.3.19 [INFO] [stderr] Compiling cpufeatures v0.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling cc v1.0.72 [INFO] [stderr] Compiling http v0.2.6 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling httparse v1.5.1 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling indexmap v1.8.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling serde_json v1.0.74 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling quote v1.0.14 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling mio v0.7.14 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling stringprep v0.1.2 [INFO] [stderr] Compiling block-buffer v0.10.0 [INFO] [stderr] Compiling crypto-common v0.1.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling tracing-core v0.1.21 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling digest v0.10.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling siphasher v0.3.7 [INFO] [stderr] Compiling tracing v0.1.29 [INFO] [stderr] Compiling hmac v0.12.0 [INFO] [stderr] Compiling sha2 v0.10.1 [INFO] [stderr] Compiling md-5 v0.10.0 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling httpdate v1.0.2 [INFO] [stderr] Compiling fastrand v1.6.0 [INFO] [stderr] Compiling postgres-protocol v0.6.3 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling buf_redux v0.8.4 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tempfile v3.3.0 [INFO] [stderr] Compiling http-body v0.4.4 [INFO] [stderr] Compiling headers-core v0.2.0 [INFO] [stderr] Compiling twoway v0.1.8 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling headers v0.3.5 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling multipart v0.18.0 [INFO] [stderr] Compiling scoped-tls v1.0.0 [INFO] [stderr] Compiling cap v0.1.0 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling validator_types v0.14.0 [INFO] [stderr] Compiling sct v0.6.1 [INFO] [stderr] Compiling webpki v0.21.4 [INFO] [stderr] Compiling rustls v0.19.1 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling futures-macro v0.3.19 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling pin-project-internal v1.0.10 [INFO] [stderr] Compiling validator_derive v0.14.0 [INFO] [stderr] Compiling dotenv_codegen_implementation v0.15.0 [INFO] [stderr] Compiling dotenv_codegen v0.15.0 [INFO] [stderr] Compiling tokio v1.15.0 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling tungstenite v0.14.0 [INFO] [stderr] Compiling pin-project v1.0.10 [INFO] [stderr] Compiling futures-executor v0.3.19 [INFO] [stderr] Compiling futures v0.3.19 [INFO] [stderr] Compiling tokio-util v0.6.9 [INFO] [stderr] Compiling mobc v0.7.3 [INFO] [stderr] Compiling tokio-rustls v0.22.0 [INFO] [stderr] Compiling tokio-tungstenite v0.15.0 [INFO] [stderr] Compiling tokio-stream v0.1.8 [INFO] [stderr] Compiling h2 v0.3.10 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling postgres-types v0.2.2 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling validator v0.14.0 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling tokio-postgres v0.7.5 [INFO] [stderr] Compiling mobc-postgres v0.7.0 [INFO] [stderr] Compiling hyper v0.14.16 [INFO] [stderr] Compiling warp v0.3.2 [INFO] [stderr] Compiling chattr-api v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/ws_messages.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `username` [INFO] [stdout] --> src/database/user.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | username: String, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_username` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `email` [INFO] [stdout] --> src/database/user.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | email: String, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_email` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `password` [INFO] [stdout] --> src/database/user.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | password: String [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_password` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `room_id` [INFO] [stdout] --> src/routes/messages.rs:4:27 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn post_to_room(room_id: i32, body: Message, db_pool: DbPool) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_room_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/routes/messages.rs:4:41 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn post_to_room(room_id: i32, body: Message, db_pool: DbPool) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `db_pool` [INFO] [stdout] --> src/routes/messages.rs:4:56 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn post_to_room(room_id: i32, body: Message, db_pool: DbPool) -> Result { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_db_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/routes/ws.rs:130:25 [INFO] [stdout] | [INFO] [stdout] 130 | async fn handle_message(id: usize, message: Message, clients: &WsClients) -> Result<(), ()> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `uid` [INFO] [stdout] --> src/routes/ws.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 132 | for (&uid, client) in clients.read().await.iter() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_uid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FutureExt` [INFO] [stdout] --> src/main.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | use futures_util::{FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StreamExt` [INFO] [stdout] --> src/main.rs:13:31 [INFO] [stdout] | [INFO] [stdout] 13 | use futures_util::{FutureExt, StreamExt}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `with_db` [INFO] [stdout] --> src/main.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | let with_db = warp::any().map(move || db_pool.clone()); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_with_db` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MESSAGE_TABLE` is never used [INFO] [stdout] --> src/database/message.rs:4:7 [INFO] [stdout] | [INFO] [stdout] 4 | const MESSAGE_TABLE: &str = "rooms.messages"; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MessageError` is never used [INFO] [stdout] --> src/database/message.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum MessageError { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `author_id`, `content`, and `created_at` are never read [INFO] [stdout] --> src/database/message.rs:20:3 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Message { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 20 | id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 21 | author_id: i32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | created_at: Date // for javascript Date object. [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/database/message.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl Message { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 27 | pub fn new(id: i64, author_id: i32, content: String, created_at: Date) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MessageManager` is never constructed [INFO] [stdout] --> src/database/message.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | struct MessageManager { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_message`, and `delete_message` are never used [INFO] [stdout] --> src/database/message.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 41 | impl MessageManager { [INFO] [stdout] | ------------------- associated items in this implementation [INFO] [stdout] 42 | pub fn new(db_con: DbCon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub async fn create_message( [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub async fn delete_message(&mut self, message: &Message) -> Result<(), MessageError> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOM_TABLE` is never used [INFO] [stdout] --> src/database/room.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | const ROOM_TABLE: &str = "rooms.rooms"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RoomError` is never used [INFO] [stdout] --> src/database/room.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum RoomError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row` is never used [INFO] [stdout] --> src/database/room.rs:22:10 [INFO] [stdout] | [INFO] [stdout] 21 | impl Room { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 22 | pub fn from_row(row: &Row) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RoomManager` is never constructed [INFO] [stdout] --> src/database/room.rs:33:8 [INFO] [stdout] | [INFO] [stdout] 33 | struct RoomManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_room`, `delete_room`, `update_room_name`, and `update_room_description` are never used [INFO] [stdout] --> src/database/room.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 37 | impl RoomManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 38 | pub fn new(db_con: DbCon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn create_room( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub async fn delete_room( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub async fn update_room_name( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub async fn update_room_description( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_TABLE` is never used [INFO] [stdout] --> src/database/user.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const USER_TABLE: &str = "users"; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SECRET_KEY` is never used [INFO] [stdout] --> src/database/user.rs:10:7 [INFO] [stdout] | [INFO] [stdout] 10 | const SECRET_KEY: &str = dotenv_codegen::dotenv!("SECRET_KEY"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UserError` is never used [INFO] [stdout] --> src/database/user.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | pub enum UserError { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_row` is never used [INFO] [stdout] --> src/database/user.rs:40:10 [INFO] [stdout] | [INFO] [stdout] 39 | impl User { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 40 | pub fn from_row(row: &Row) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenType` is never used [INFO] [stdout] --> src/database/user.rs:63:10 [INFO] [stdout] | [INFO] [stdout] 63 | pub enum TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UserManager` is never constructed [INFO] [stdout] --> src/database/user.rs:68:12 [INFO] [stdout] | [INFO] [stdout] 68 | pub struct UserManager { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_user`, `get_from_token`, `login`, `issue_token`, and `reissue_token` are never used [INFO] [stdout] --> src/database/user.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 72 | impl UserManager { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 73 | pub fn new(db_con: DbCon) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub async fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub async fn get_from_token(&mut self, token: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub async fn login(&mut self, email: String, password: String) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 99 | pub fn issue_token( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn reissue_token(old_token: String, token_type: TokenType) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `post_to_room` is never used [INFO] [stdout] --> src/routes/messages.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | pub async fn post_to_room(room_id: i32, body: Message, db_pool: DbPool) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user` is never read [INFO] [stdout] --> src/routes/ws.rs:21:3 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct WsClient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 20 | socket: Socket, [INFO] [stdout] 21 | user: Option [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `handle_login` is never used [INFO] [stdout] --> src/routes/ws.rs:143:10 [INFO] [stdout] | [INFO] [stdout] 143 | async fn handle_login() -> Result<(), ()> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DISCONNECT` is never used [INFO] [stdout] --> src/routes/ws.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | const DISCONNECT: u8 = 0; // client disconnect due to error or other [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EVENT` is never used [INFO] [stdout] --> src/routes/ws.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | const EVENT: u8 = 1; // will only send after the user has logged in through the websocket [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `USER_LOGIN` is never used [INFO] [stdout] --> src/routes/ws.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | const USER_LOGIN: u8 = 11; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LOGIN` is never used [INFO] [stdout] --> src/routes/ws.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | const LOGIN: u8 = 0; // when the user has logged in using the ws [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOM_MESSAGE` is never used [INFO] [stdout] --> src/routes/ws.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | const ROOM_MESSAGE: u8 = 1; // when the user got a room message [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOM_JOIN` is never used [INFO] [stdout] --> src/routes/ws.rs:47:9 [INFO] [stdout] | [INFO] [stdout] 47 | const ROOM_JOIN: u8 = 2; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ROOM_LEAVE` is never used [INFO] [stdout] --> src/routes/ws.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | const ROOM_LEAVE: u8 = 3; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ws_messages.rs:5:3 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct UserLogin { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 5 | token: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UserLogin` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `WsCodes` should have a snake case name [INFO] [stdout] --> src/routes/ws.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | pub mod WsCodes { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `ws_codes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `WsEvents` should have a snake case name [INFO] [stdout] --> src/routes/ws.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | pub mod WsEvents { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `ws_events` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/routes/ws.rs:134:61 [INFO] [stdout] | [INFO] [stdout] 134 | if let Err(_dc) = client.socket.send(Message::text(msg.clone())) { [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustc8WbWXt/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libmobc_postgres-ff86eac5b62f123c.rlib,libcap-48baf4674a533df0.rlib,libmobc-13fb3462dec49514.rlib,libfutures_timer-c298ee6453566f19.rlib,libtokio_stream-5fd3e8522b7824f2.rlib,libwarp-630716d8f221a6c6.rlib,libtokio_rustls-f865822171644bd9.rlib,librustls-f5045e16469919a5.rlib,libsct-52ad0ae40935189e.rlib,libwebpki-f47a4799e9807be2.rlib,libscoped_tls-c773acb8a8b535a4.rlib,libtokio_tungstenite-f07d8eb458dc0ff8.rlib,libtungstenite-6f2311db576bf8e4.rlib,libutf8-f59a957f78b3215a.rlib,libthiserror-9e7a9f0bde7da98d.rlib,libmultipart-11ac5f779626dd50.rlib,libtwoway-ddc2321bec9c28a6.rlib,libbuf_redux-4c4fbb32ee8ae810.rlib,libsafemem-415ebfa147efdd91.rlib,libquick_error-022321fe562bcedb.rlib,libtempfile-5f98eda4fbe232c7.rlib,libfastrand-3e8bb4a377a091fe.rlib,libremove_dir_all-4e221c62d36b2749.rlib,libmime_guess-c7287eb44636b2a5.rlib,libunicase-8147ee5a701eb6bd.rlib,libserde_urlencoded-58f8a7fafacbf329.rlib,libheaders-037b0e5d61cd0c8f.rlib,libsha1-22010af6f58d801b.rlib,libopaque_debug-bfd86111b0908dde.rlib,libblock_buffer-01e29eb50d49b318.rlib,libdigest-d159c17d24eaf1b0.rlib,libmime-2517c84452183460.rlib,libheaders_core-413ef7cfc40b9231.rlib,libbitflags-e274cd04b58a060d.rlib,libhyper-f12110ad5be243d5.rlib,libwant-6557201d18a06969.rlib,libtry_lock-d956e9fcf0af499a.rlib,libitoa-7c9a83f6047c872a.rlib,libhttparse-d0c202cec822a6f8.rlib,libh2-b4b7e0b28951196c.rlib,libindexmap-1dc12fb6674cec4d.rlib,libhashbrown-f6484c11bf24e065.rlib,libtower_service-a4da4ae722e0ce46.rlib,libtracing-2f19bd767622c4d2.rlib,libtracing_core-73c54d407336bd1e.rlib,libhttp_body-c86ea10ce3ff97f6.rlib,libhttpdate-ec7670c9b4625e21.rlib,libhttp-784c741ce327a90a.rlib,libfnv-81596130b397d5c3.rlib,libpin_project-1f9da436ba87c4a2.rlib,libvalidator-d1f59bffb9b6ed59.rlib,libvalidator_types-9668b0cc1eab8685.rlib,libsyn-8caf0fd8a9ee2ecb.rlib,libquote-65cc8a6b61a26843.rlib,libproc_macro2-d51c57469844ea0e.rlib,libunicode_xid-99c60e23599e750f.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libproc_macro-*,librustc_literal_escaper-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{liburl-4dc046bcdff1bf68.rlib,libform_urlencoded-08b32e4d9c417640.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib,libidna-b27d6234464fcaf9.rlib,libmatches-210e485a89affeee.rlib,libjsonwebtoken-0e4c3d933b5aa529.rlib,libpem-377c517dc147aa03.rlib,libregex-61abb5ead9fe6390.rlib,libaho_corasick-c2a7e5a13a42a59f.rlib,libregex_syntax-ae12054508fb30be.rlib,libbase64-58f9c786d7f23eb6.rlib,libserde_json-0165524f09c361ac.rlib,libryu-653032556b772f2f.rlib,libitoa-158d7e21e599682f.rlib,libsimple_asn1-9ccca6b56583aa2a.rlib,libnum_bigint-d3829834b4ed257a.rlib,libring-39aea30c69a1e0b8.rlib,libspin-727e07ee1a68c4a1.rlib,libuntrusted-ac99e7922c585a09.rlib,libtokio_postgres-742a48bbe40b833e.rlib,libphf-931a3da28db65d2e.rlib,libphf_shared-012c73e1e1ee7602.rlib,libsiphasher-babbde151073aa44.rlib,libpercent_encoding-3f452dc5e318e927.rlib,libsocket2-9d30beb063976ff8.rlib,libtokio_util-7894324fa511abcd.rlib,libtokio-11e824da490e7778.rlib,libsignal_hook_registry-db88c77fa579aa5f.rlib,libnum_cpus-2c9a8123eaa3c231.rlib,libonce_cell-aa4d53ed7caf4352.rlib,libmio-bd056cfe89769487.rlib,liblog-2fa663e3959e676f.rlib,libparking_lot-ba5344b171e09627.rlib,libparking_lot_core-a1b76ad4cabbaf04.rlib,libsmallvec-58335197664382aa.rlib,liblock_api-c3c95a699de46305.rlib,libscopeguard-73056285f12cb829.rlib,libinstant-e23fa3fb52ce1101.rlib,libpostgres_types-273cbf96cd957c9a.rlib,libchrono-84cb8286fc6df810.rlib,libnum_integer-6167e81384f963c3.rlib,libnum_traits-e187c9543899d750.rlib,libtime-35dd3958c45c0b22.rlib,libpostgres_protocol-66d3cf2c336e66ad.rlib,libbase64-1447dfff012d42f8.rlib,libstringprep-503f886cc740e713.rlib,libunicode_normalization-b999db1f4766a6ba.rlib,libtinyvec-4bc788528a02b60f.rlib,libtinyvec_macros-c54c30cfa88e68f0.rlib,libunicode_bidi-fb711a4a1fa89e19.rlib,libsha2-5d74526e81ab6839.rlib,libcpufeatures-03d302c468f0d4ec.rlib,librand-c4998f568bfc32a6.rlib,librand_chacha-88046de1cedb9009.rlib,libppv_lite86-a9f3c9ee76597f1e.rlib,librand_core-e7379593d77a934c.rlib,libgetrandom-a138dc773a2f888e.rlib,liblibc-7253a04f790802a5.rlib,libcfg_if-66d55f6b302e88c8.rlib,libhmac-d92270e70b34a54b.rlib,libmd5-83f664bdc630b0fb.rlib,libdigest-bb31616c1297fb9e.rlib,libsubtle-af5f0d59ba7ae801.rlib,libblock_buffer-4f221d0970abcf2a.rlib,libcrypto_common-e399dab95fb1367f.rlib,libgeneric_array-e4abed14fe55019c.rlib,libtypenum-dfaa696d06b304f0.rlib,libfallible_iterator-da18290346318e11.rlib,libfutures-0d59429bf863f070.rlib,libfutures_executor-6691443cf1e00404.rlib,libfutures_util-0bbf6c93da44e51c.rlib,libmemchr-81b381f232779c95.rlib,libfutures_io-c37adbf38ba7e010.rlib,libslab-93074f6ff5a0b7db.rlib,libfutures_channel-5b34d7161cfa1a7c.rlib,libpin_project_lite-049930466ef9967f.rlib,libfutures_sink-c9f7a3542fd7e063.rlib,libfutures_task-8d01264ee8be7a4a.rlib,libpin_utils-b08f1197f0cdae19.rlib,libfutures_core-e674cac6d3f3e322.rlib,libbytes-37e68ee094a72681.rlib,libbyteorder-c7092f68299ac016.rlib,libserde-0daebf3a89737798.rlib,libdotenv_codegen-849bbb047d9e05ae.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustc8WbWXt/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/ring-44c66d0c32511ddb/out" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/chattr_api-b2306070cc42ff3c" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-a138dc773a2f888e.rlib(getrandom-a138dc773a2f888e.getrandom.4eeba8ad6187f255-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.3/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17h8f9825d638e74aafE+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `chattr-api` (bin "chattr-api") due to 1 previous error; 44 warnings emitted [INFO] running `Command { std: "docker" "inspect" "eaf547a969255e4fd32c124d0a19032d856352bc588998af6cf8291e81237136", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eaf547a969255e4fd32c124d0a19032d856352bc588998af6cf8291e81237136", kill_on_drop: false }` [INFO] [stdout] eaf547a969255e4fd32c124d0a19032d856352bc588998af6cf8291e81237136