[INFO] cloning repository https://github.com/edvin940504-dev/my-rust-project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/edvin940504-dev/my-rust-project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedvin940504-dev%2Fmy-rust-project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedvin940504-dev%2Fmy-rust-project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4623525f88c25b8d1e49b8d6a289043a1f390b6c [INFO] checking edvin940504-dev/my-rust-project/4623525f88c25b8d1e49b8d6a289043a1f390b6c against master#c9af9c1dc85a55e309345030ff9cb7ea247953fa for pr-151146 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedvin940504-dev%2Fmy-rust-project" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/edvin940504-dev/my-rust-project [INFO] finished tweaking git repo https://github.com/edvin940504-dev/my-rust-project [INFO] tweaked toml for git repo https://github.com/edvin940504-dev/my-rust-project written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/edvin940504-dev/my-rust-project on toolchain c9af9c1dc85a55e309345030ff9cb7ea247953fa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/edvin940504-dev/my-rust-project 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" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00d8a616b95c51d36d83251b2b9ce6c75cce8e5e74a399fdfa39983acecf27f3 [INFO] running `Command { std: "docker" "start" "-a" "00d8a616b95c51d36d83251b2b9ce6c75cce8e5e74a399fdfa39983acecf27f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00d8a616b95c51d36d83251b2b9ce6c75cce8e5e74a399fdfa39983acecf27f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00d8a616b95c51d36d83251b2b9ce6c75cce8e5e74a399fdfa39983acecf27f3", kill_on_drop: false }` [INFO] [stdout] 00d8a616b95c51d36d83251b2b9ce6c75cce8e5e74a399fdfa39983acecf27f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+c9af9c1dc85a55e309345030ff9cb7ea247953fa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 796534af36ffc6607f56b3eb40cc7e1d77b424481fbcc31f7d71193c135dec59 [INFO] running `Command { std: "docker" "start" "-a" "796534af36ffc6607f56b3eb40cc7e1d77b424481fbcc31f7d71193c135dec59", kill_on_drop: false }` [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking smallvec v1.15.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling openssl-sys v0.9.108 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Checking miniz_oxide v0.8.8 [INFO] [stderr] Checking native-tls v0.2.14 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking base64ct v1.7.3 [INFO] [stderr] Checking actix-router v0.5.3 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Checking crossbeam-queue v0.3.12 [INFO] [stderr] Checking flate2 v1.1.1 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking atoi v2.0.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Checking tokio v1.45.0 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking actix-http v3.11.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking actix-web v4.11.0 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking wallet_api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/user_routes.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 33 | | r#" [INFO] [stdout] 34 | | INSERT INTO users (email, password) [INFO] [stdout] 35 | | VALUES ($1, $2) [INFO] [stdout] ... | [INFO] [stdout] 38 | | password_hash [INFO] [stdout] 39 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/user_routes.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let user = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 67 | | "SELECT id, email, password FROM users WHERE email = $1", [INFO] [stdout] 68 | | req.email [INFO] [stdout] 69 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/wallet_routes.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 24 | | "INSERT INTO wallets (id, user_id, balance) VALUES ($1, $2, $3)", [INFO] [stdout] 25 | | new_wallet.id, [INFO] [stdout] 26 | | new_wallet.user_id, [INFO] [stdout] 27 | | new_wallet.balance [INFO] [stdout] 28 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/wallet_routes.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | let result = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 64 | | Wallet, [INFO] [stdout] 65 | | "SELECT * FROM wallets WHERE user_id = $1", [INFO] [stdout] 66 | | user_id [INFO] [stdout] 67 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/user_routes.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 32 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 33 | | r#" [INFO] [stdout] 34 | | INSERT INTO users (email, password) [INFO] [stdout] 35 | | VALUES ($1, $2) [INFO] [stdout] ... | [INFO] [stdout] 38 | | password_hash [INFO] [stdout] 39 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/user_routes.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 66 | let user = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 67 | | "SELECT id, email, password FROM users WHERE email = $1", [INFO] [stdout] 68 | | req.email [INFO] [stdout] 69 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/wallet_routes.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 23 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 24 | | "INSERT INTO wallets (id, user_id, balance) VALUES ($1, $2, $3)", [INFO] [stdout] 25 | | new_wallet.id, [INFO] [stdout] 26 | | new_wallet.user_id, [INFO] [stdout] 27 | | new_wallet.balance [INFO] [stdout] 28 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/routes/wallet_routes.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | let result = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 64 | | Wallet, [INFO] [stdout] 65 | | "SELECT * FROM wallets WHERE user_id = $1", [INFO] [stdout] 66 | | user_id [INFO] [stdout] 67 | | ) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/routes/user_routes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [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: `post` [INFO] [stdout] --> src/routes/wallet_routes.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{post, get, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WALLETS` [INFO] [stdout] --> src/routes/wallet_routes.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::wallet::{Wallet, WALLETS}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/routes/user_routes.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use uuid::Uuid; [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: `post` [INFO] [stdout] --> src/routes/wallet_routes.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{post, get, web, HttpResponse, Responder}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WALLETS` [INFO] [stdout] --> src/routes/wallet_routes.rs:3:37 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::models::wallet::{Wallet, WALLETS}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/routes/user_routes.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | "details": e.to_string() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 32 | let result: Result = sqlx::query!( [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/routes/user_routes.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | "details": e.to_string() [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 32 | let result: Result = sqlx::query!( [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wallets_data` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let wallets_data = web::Data::new(&*WALLETS); // Add this above HttpServer::new [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wallets_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wallets_data` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let wallets_data = web::Data::new(&*WALLETS); // Add this above HttpServer::new [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_wallets_data` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `wallet_api` (bin "wallet_api" test) due to 5 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `wallet_api` (bin "wallet_api") due to 5 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "796534af36ffc6607f56b3eb40cc7e1d77b424481fbcc31f7d71193c135dec59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "796534af36ffc6607f56b3eb40cc7e1d77b424481fbcc31f7d71193c135dec59", kill_on_drop: false }` [INFO] [stdout] 796534af36ffc6607f56b3eb40cc7e1d77b424481fbcc31f7d71193c135dec59