[INFO] cloning repository https://github.com/rubengglez/chat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rubengglez/chat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frubengglez%2Fchat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frubengglez%2Fchat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 636439973adec78f2e3279fe2be085146be257f2 [INFO] testing rubengglez/chat against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frubengglez%2Fchat" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rubengglez/chat [INFO] finished tweaking git repo https://github.com/rubengglez/chat [INFO] tweaked toml for git repo https://github.com/rubengglez/chat written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rubengglez/chat 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/rubengglez/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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ahash v0.8.10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 28ffb21db9324feca19cc3285ead8b68a24a91155cee4384449cb59aa83bb2ee [INFO] running `Command { std: "docker" "start" "-a" "28ffb21db9324feca19cc3285ead8b68a24a91155cee4384449cb59aa83bb2ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28ffb21db9324feca19cc3285ead8b68a24a91155cee4384449cb59aa83bb2ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28ffb21db9324feca19cc3285ead8b68a24a91155cee4384449cb59aa83bb2ee", kill_on_drop: false }` [INFO] [stdout] 28ffb21db9324feca19cc3285ead8b68a24a91155cee4384449cb59aa83bb2ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 6db22fb5fa368fda37275194533e4a6c22c99f241238ab7d54b2b86f2e106115 [INFO] running `Command { std: "docker" "start" "-a" "6db22fb5fa368fda37275194533e4a6c22c99f241238ab7d54b2b86f2e106115", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling ahash v0.8.10 [INFO] [stderr] Compiling serde v1.0.196 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling socket2 v0.5.5 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling rustls v0.21.10 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling serde_json v1.0.113 [INFO] [stderr] Compiling rustversion v1.0.14 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling uuid v1.7.0 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling tokio v1.35.1 [INFO] [stderr] Compiling indexmap v2.2.2 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling nix v0.27.1 [INFO] [stderr] Compiling async-trait v0.1.77 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling chrono v0.4.34 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling tower-layer v0.3.2 [INFO] [stderr] Compiling axum v0.7.4 [INFO] [stderr] Compiling is-terminal v0.4.12 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling atomic-write-file v0.1.2 [INFO] [stderr] Compiling http-body-util v0.1.0 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling serde_derive v1.0.196 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling pin-project-internal v1.1.4 [INFO] [stderr] Compiling regex v1.10.3 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling pin-project v1.1.4 [INFO] [stderr] Compiling pretty_env_logger v0.5.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling either v1.10.0 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling serde_path_to_error v0.1.15 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling h2 v0.4.2 [INFO] [stderr] Compiling sqlformat v0.2.3 [INFO] [stderr] Compiling hyper v1.1.0 [INFO] [stderr] Compiling sqlx-core v0.7.3 [INFO] [stderr] Compiling hyper-util v0.1.3 [INFO] [stderr] Compiling sqlx-postgres v0.7.3 [INFO] [stderr] Compiling sqlx-macros-core v0.7.3 [INFO] [stderr] Compiling sqlx-macros v0.7.3 [INFO] [stderr] Compiling sqlx v0.7.3 [INFO] [stderr] Compiling chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/user/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, info}; [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 imports: `PgPool` and `Postgres` [INFO] [stdout] --> src/main.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 17 | use sqlx::{postgres::PgPoolOptions, PgPool, Postgres}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dependencies` [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | State(dependencies): State, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dependencies` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/user/mod.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn delete_user(id: Uuid) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DatabaseConnection` is never constructed [INFO] [stdout] --> src/main.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct DatabaseConnection(sqlx::pool::PoolConnection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_repository` is never read [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | struct Dependencies { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 44 | pub user_repository: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependencies` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeleteUserRequest` is never constructed [INFO] [stdout] --> src/user/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct DeleteUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `username`, and `password_hash` are never read [INFO] [stdout] --> src/user/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 29 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | password_hash: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/user/domain/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait UserRepository: Send + Sync { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 7 | // TODO: move User to domain [INFO] [stdout] 8 | async fn save(&mut self, user: User); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/user/infrastructure/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PostgresqlUserRepository { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 7 | db: Pool, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 51.73s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "6db22fb5fa368fda37275194533e4a6c22c99f241238ab7d54b2b86f2e106115", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6db22fb5fa368fda37275194533e4a6c22c99f241238ab7d54b2b86f2e106115", kill_on_drop: false }` [INFO] [stdout] 6db22fb5fa368fda37275194533e4a6c22c99f241238ab7d54b2b86f2e106115 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] d0b0ce9e680c09d75e72aa653a146d978d7bf07331608f1b86b69b62fe6735ea [INFO] running `Command { std: "docker" "start" "-a" "d0b0ce9e680c09d75e72aa653a146d978d7bf07331608f1b86b69b62fe6735ea", kill_on_drop: false }` [INFO] [stderr] Compiling chat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/user/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, info}; [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 imports: `PgPool` and `Postgres` [INFO] [stdout] --> src/main.rs:17:37 [INFO] [stdout] | [INFO] [stdout] 17 | use sqlx::{postgres::PgPoolOptions, PgPool, Postgres}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dependencies` [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | State(dependencies): State, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dependencies` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/user/mod.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn delete_user(id: Uuid) -> Result { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DatabaseConnection` is never constructed [INFO] [stdout] --> src/main.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | struct DatabaseConnection(sqlx::pool::PoolConnection); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `user_repository` is never read [INFO] [stdout] --> src/main.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | struct Dependencies { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 44 | pub user_repository: Arc, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Dependencies` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DeleteUserRequest` is never constructed [INFO] [stdout] --> src/user/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct DeleteUserRequest { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `username`, and `password_hash` are never read [INFO] [stdout] --> src/user/mod.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub struct User { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 29 | id: Uuid, [INFO] [stdout] | ^^ [INFO] [stdout] 30 | username: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 31 | password_hash: String, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `save` is never used [INFO] [stdout] --> src/user/domain/mod.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait UserRepository: Send + Sync { [INFO] [stdout] | -------------- method in this trait [INFO] [stdout] 7 | // TODO: move User to domain [INFO] [stdout] 8 | async fn save(&mut self, user: User); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `db` is never read [INFO] [stdout] --> src/user/infrastructure/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct PostgresqlUserRepository { [INFO] [stdout] | ------------------------ field in this struct [INFO] [stdout] 7 | db: Pool, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.77s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "d0b0ce9e680c09d75e72aa653a146d978d7bf07331608f1b86b69b62fe6735ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0b0ce9e680c09d75e72aa653a146d978d7bf07331608f1b86b69b62fe6735ea", kill_on_drop: false }` [INFO] [stdout] d0b0ce9e680c09d75e72aa653a146d978d7bf07331608f1b86b69b62fe6735ea [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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", kill_on_drop: false }` [INFO] [stdout] c21df47ea337ce820da00d9a424b2db31d2927f674463be2375ab5045a7b7bd3 [INFO] running `Command { std: "docker" "start" "-a" "c21df47ea337ce820da00d9a424b2db31d2927f674463be2375ab5045a7b7bd3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `info` [INFO] [stderr] --> src/user/mod.rs:4:18 [INFO] [stderr] | [INFO] [stderr] 4 | use log::{debug, info}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `PgPool` and `Postgres` [INFO] [stderr] --> src/main.rs:17:37 [INFO] [stderr] | [INFO] [stderr] 17 | use sqlx::{postgres::PgPoolOptions, PgPool, Postgres}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `dependencies` [INFO] [stderr] --> src/main.rs:28:11 [INFO] [stderr] | [INFO] [stderr] 28 | State(dependencies): State, [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dependencies` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `id` [INFO] [stderr] --> src/user/mod.rs:46:24 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn delete_user(id: Uuid) -> Result { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stderr] [INFO] [stderr] warning: struct `DatabaseConnection` is never constructed [INFO] [stderr] --> src/main.rs:25:8 [INFO] [stderr] | [INFO] [stderr] 25 | struct DatabaseConnection(sqlx::pool::PoolConnection); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `user_repository` is never read [INFO] [stderr] --> src/main.rs:44:9 [INFO] [stderr] | [INFO] [stderr] 43 | struct Dependencies { [INFO] [stderr] | ------------ field in this struct [INFO] [stderr] 44 | pub user_repository: Arc, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Dependencies` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: struct `DeleteUserRequest` is never constructed [INFO] [stderr] --> src/user/mod.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct DeleteUserRequest { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id`, `username`, and `password_hash` are never read [INFO] [stderr] --> src/user/mod.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 28 | pub struct User { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 29 | id: Uuid, [INFO] [stderr] | ^^ [INFO] [stderr] 30 | username: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 31 | password_hash: String, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `User` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `save` is never used [INFO] [stderr] --> src/user/domain/mod.rs:8:14 [INFO] [stderr] | [INFO] [stderr] 6 | pub trait UserRepository: Send + Sync { [INFO] [stderr] | -------------- method in this trait [INFO] [stderr] 7 | // TODO: move User to domain [INFO] [stderr] 8 | async fn save(&mut self, user: User); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `db` is never read [INFO] [stderr] --> src/user/infrastructure/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct PostgresqlUserRepository { [INFO] [stderr] | ------------------------ field in this struct [INFO] [stderr] 7 | db: Pool, [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] warning: `chat` (bin "chat" test) generated 10 warnings (run `cargo fix --bin "chat" --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.3 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/chat-2c053ed24a3522bf) [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" "c21df47ea337ce820da00d9a424b2db31d2927f674463be2375ab5045a7b7bd3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c21df47ea337ce820da00d9a424b2db31d2927f674463be2375ab5045a7b7bd3", kill_on_drop: false }` [INFO] [stdout] c21df47ea337ce820da00d9a424b2db31d2927f674463be2375ab5045a7b7bd3