[INFO] cloning repository https://github.com/CarlosLees/rust-chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CarlosLees/rust-chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarlosLees%2Frust-chat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarlosLees%2Frust-chat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c5c148c4945fd4a6ed336818d3330d70e8b2f01e [INFO] testing CarlosLees/rust-chat/c5c148c4945fd4a6ed336818d3330d70e8b2f01e against beta-2024-09-05 for beta-1.82-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarlosLees%2Frust-chat" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CarlosLees/rust-chat on toolchain beta-2024-09-05 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CarlosLees/rust-chat [INFO] finished tweaking git repo https://github.com/CarlosLees/rust-chat [INFO] tweaked toml for git repo https://github.com/CarlosLees/rust-chat written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/CarlosLees/rust-chat 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-2024-09-05" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 210190e54f1f46b587e21e53d09c6abccb11a3f1b7ef1dfc8abc1f267eab408b [INFO] running `Command { std: "docker" "start" "-a" "210190e54f1f46b587e21e53d09c6abccb11a3f1b7ef1dfc8abc1f267eab408b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "210190e54f1f46b587e21e53d09c6abccb11a3f1b7ef1dfc8abc1f267eab408b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "210190e54f1f46b587e21e53d09c6abccb11a3f1b7ef1dfc8abc1f267eab408b", kill_on_drop: false }` [INFO] [stdout] 210190e54f1f46b587e21e53d09c6abccb11a3f1b7ef1dfc8abc1f267eab408b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4eec12cb9d57ca7e2441c3d6e385ed72e944334b6f8f8afccddf431d2d55f88f [INFO] running `Command { std: "docker" "start" "-a" "4eec12cb9d57ca7e2441c3d6e385ed72e944334b6f8f8afccddf431d2d55f88f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling serde v1.0.206 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling cc v1.1.10 [INFO] [stderr] Compiling syn v2.0.73 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling serde_json v1.0.122 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling mio v1.0.1 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling tokio v1.39.2 [INFO] [stderr] Compiling ff v0.13.0 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling regex-syntax v0.8.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.8 [INFO] [stderr] Compiling unsafe-libyaml v0.2.11 [INFO] [stderr] Compiling headers v0.4.0 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling hmac-sha256 v1.1.7 [INFO] [stderr] Compiling hmac-sha512 v1.1.5 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling arrayref v0.3.8 [INFO] [stderr] Compiling ct-codecs v1.1.1 [INFO] [stderr] Compiling constant_time_eq v0.3.0 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling blake2b_simd v1.0.2 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling ed25519-compact v2.1.1 [INFO] [stderr] Compiling password-hash v0.5.0 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling regex-automata v0.4.7 [INFO] [stderr] Compiling primeorder v0.13.6 [INFO] [stderr] Compiling tempfile v3.12.0 [INFO] [stderr] Compiling coarsetime v0.1.34 [INFO] [stderr] Compiling hmac-sha1-compact v1.1.4 [INFO] [stderr] Compiling k256 v0.13.3 [INFO] [stderr] Compiling binstring v0.1.1 [INFO] [stderr] Compiling p256 v0.13.2 [INFO] [stderr] Compiling p384 v0.13.0 [INFO] [stderr] Compiling argon2 v0.5.3 [INFO] [stderr] Compiling serde_derive v1.0.206 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling async-trait v0.1.81 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling regex v1.10.6 [INFO] [stderr] Compiling pin-project v1.1.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling indexmap v2.3.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling tokio-util v0.7.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.4.5 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling sqlx-core v0.8.0 [INFO] [stderr] Compiling rsa v0.9.6 [INFO] [stderr] Compiling superboring v0.1.2 [INFO] [stderr] Compiling jwt-simple v0.12.9 [INFO] [stderr] Compiling hyper v1.4.1 [INFO] [stderr] Compiling sqlx-postgres v0.8.0 [INFO] [stderr] Compiling hyper-util v0.1.7 [INFO] [stderr] Compiling sqlx-macros-core v0.8.0 [INFO] [stderr] Compiling sqlx-macros v0.8.0 [INFO] [stderr] Compiling axum-extra v0.9.3 [INFO] [stderr] Compiling sqlx v0.8.0 [INFO] [stderr] Compiling notify-server v0.1.0 (/opt/rustwide/workdir/notify-server) [INFO] [stderr] Compiling chat-server v0.1.0 (/opt/rustwide/workdir/chat-server) [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> chat-server/src/models/user.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jwt::*` [INFO] [stdout] --> chat-server/src/utils/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use jwt::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::User` [INFO] [stdout] --> chat-server/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::models::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> chat-server/src/models/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub password_hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_by_email`, `create_user`, and `verify` are never used [INFO] [stdout] --> chat-server/src/models/user.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl User { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 11 | pub async fn find_by_email(email: &str, pool: &sqlx::PgPool) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> chat-server/src/models/user.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> chat-server/src/models/user.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn verify_password(password: &str, password_hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `JWT_DURATION` is never used [INFO] [stdout] --> chat-server/src/utils/jwt.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const JWT_DURATION: u64 = 60 * 60 * 24 * 7; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_token` is never used [INFO] [stdout] --> chat-server/src/utils/jwt.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_token(user: User, key: &EncodingKey) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.66s [INFO] running `Command { std: "docker" "inspect" "4eec12cb9d57ca7e2441c3d6e385ed72e944334b6f8f8afccddf431d2d55f88f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eec12cb9d57ca7e2441c3d6e385ed72e944334b6f8f8afccddf431d2d55f88f", kill_on_drop: false }` [INFO] [stdout] 4eec12cb9d57ca7e2441c3d6e385ed72e944334b6f8f8afccddf431d2d55f88f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40f02b99f57c4a2947d2fe59be71a355ccf602ac45d3bebfddc3551a111b3837 [INFO] running `Command { std: "docker" "start" "-a" "40f02b99f57c4a2947d2fe59be71a355ccf602ac45d3bebfddc3551a111b3837", kill_on_drop: false }` [INFO] [stderr] Compiling notify-server v0.1.0 (/opt/rustwide/workdir/notify-server) [INFO] [stderr] Compiling chat-server v0.1.0 (/opt/rustwide/workdir/chat-server) [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> chat-server/src/models/user.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `jwt::*` [INFO] [stdout] --> chat-server/src/utils/mod.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | pub use jwt::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::models::User` [INFO] [stdout] --> chat-server/src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::models::User; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `password_hash` is never read [INFO] [stdout] --> chat-server/src/models/mod.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | pub password_hash: Option, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `find_by_email`, `create_user`, and `verify` are never used [INFO] [stdout] --> chat-server/src/models/user.rs:11:18 [INFO] [stdout] | [INFO] [stdout] 10 | impl User { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 11 | pub async fn find_by_email(email: &str, pool: &sqlx::PgPool) -> Result, AppError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 22 | pub async fn create_user( [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | pub async fn verify( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `hash_password` is never used [INFO] [stdout] --> chat-server/src/models/user.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn hash_password(password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `verify_password` is never used [INFO] [stdout] --> chat-server/src/models/user.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn verify_password(password: &str, password_hash: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `JWT_DURATION` is never used [INFO] [stdout] --> chat-server/src/utils/jwt.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const JWT_DURATION: u64 = 60 * 60 * 24 * 7; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_token` is never used [INFO] [stdout] --> chat-server/src/utils/jwt.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn generate_token(user: User, key: &EncodingKey) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.86s [INFO] running `Command { std: "docker" "inspect" "40f02b99f57c4a2947d2fe59be71a355ccf602ac45d3bebfddc3551a111b3837", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40f02b99f57c4a2947d2fe59be71a355ccf602ac45d3bebfddc3551a111b3837", kill_on_drop: false }` [INFO] [stdout] 40f02b99f57c4a2947d2fe59be71a355ccf602ac45d3bebfddc3551a111b3837 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:96c0aa5895ecf336b730ef27bcdde6e21027415df19888aad3cf1448e5d65d90" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-09-05" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 163aac56ee668f965037909338935a9efbdaeeb43d582b6e0230358e39ebf0c1 [INFO] running `Command { std: "docker" "start" "-a" "163aac56ee668f965037909338935a9efbdaeeb43d582b6e0230358e39ebf0c1", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::hash::Hash` [INFO] [stderr] --> chat-server/src/models/user.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::hash::Hash; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `jwt::*` [INFO] [stderr] --> chat-server/src/utils/mod.rs:3:9 [INFO] [stderr] | [INFO] [stderr] 3 | pub use jwt::*; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::models::User` [INFO] [stderr] --> chat-server/src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::models::User; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `password_hash` is never read [INFO] [stderr] --> chat-server/src/models/mod.rs:14:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct User { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 14 | pub password_hash: Option, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `User` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `find_by_email`, `create_user`, and `verify` are never used [INFO] [stderr] --> chat-server/src/models/user.rs:11:18 [INFO] [stderr] | [INFO] [stderr] 10 | impl User { [INFO] [stderr] | --------- associated functions in this implementation [INFO] [stderr] 11 | pub async fn find_by_email(email: &str, pool: &sqlx::PgPool) -> Result, AppError> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 22 | pub async fn create_user( [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 41 | pub async fn verify( [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `hash_password` is never used [INFO] [stderr] --> chat-server/src/models/user.rs:69:4 [INFO] [stderr] | [INFO] [stderr] 69 | fn hash_password(password: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `verify_password` is never used [INFO] [stderr] --> chat-server/src/models/user.rs:82:4 [INFO] [stderr] | [INFO] [stderr] 82 | fn verify_password(password: &str, password_hash: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `JWT_DURATION` is never used [INFO] [stderr] --> chat-server/src/utils/jwt.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | const JWT_DURATION: u64 = 60 * 60 * 24 * 7; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `generate_token` is never used [INFO] [stderr] --> chat-server/src/utils/jwt.rs:11:8 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn generate_token(user: User, key: &EncodingKey) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `chat-server` (bin "chat-server" test) generated 9 warnings (run `cargo fix --bin "chat-server" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chat_server-88b61fad5cdb02b4) [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] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/notify_server-3849a64483a6147c) [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] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/notify_server-1553697d8947c709) [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 notify_server [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] running `Command { std: "docker" "inspect" "163aac56ee668f965037909338935a9efbdaeeb43d582b6e0230358e39ebf0c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "163aac56ee668f965037909338935a9efbdaeeb43d582b6e0230358e39ebf0c1", kill_on_drop: false }` [INFO] [stdout] 163aac56ee668f965037909338935a9efbdaeeb43d582b6e0230358e39ebf0c1