[INFO] cloning repository https://github.com/uwaiszaki/Rust-Order-Service [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uwaiszaki/Rust-Order-Service" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuwaiszaki%2FRust-Order-Service", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuwaiszaki%2FRust-Order-Service'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ee0ce0c55bfe9b42750c7de26d2ab78de26f1175 [INFO] testing uwaiszaki/Rust-Order-Service against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuwaiszaki%2FRust-Order-Service" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 39% (6129/15359) Updating files: 40% (6144/15359) Updating files: 41% (6298/15359) Updating files: 42% (6451/15359) Updating files: 43% (6605/15359) Updating files: 43% (6704/15359) Updating files: 44% (6758/15359) Updating files: 45% (6912/15359) Updating files: 45% (7017/15359) Updating files: 46% (7066/15359) Updating files: 46% (7101/15359) Updating files: 47% (7219/15359) Updating files: 47% (7347/15359) Updating files: 48% (7373/15359) Updating files: 48% (7390/15359) Updating files: 48% (7431/15359) Updating files: 49% (7526/15359) Updating files: 49% (7552/15359) Updating files: 49% (7629/15359) Updating files: 50% (7680/15359) Updating files: 50% (7759/15359) Updating files: 51% (7834/15359) Updating files: 51% (7883/15359) Updating files: 52% (7987/15359) Updating files: 52% (8052/15359) Updating files: 52% (8123/15359) Updating files: 53% (8141/15359) Updating files: 53% (8161/15359) Updating files: 54% (8294/15359) Updating files: 54% (8303/15359) Updating files: 54% (8316/15359) Updating files: 54% (8336/15359) Updating files: 54% (8376/15359) Updating files: 54% (8396/15359) Updating files: 55% (8448/15359) Updating files: 55% (8560/15359) Updating files: 55% (8568/15359) Updating files: 56% (8602/15359) Updating files: 56% (8641/15359) Updating files: 57% (8755/15359) Updating files: 57% (8760/15359) Updating files: 58% (8909/15359) Updating files: 59% (9062/15359) Updating files: 59% (9150/15359) Updating files: 60% (9216/15359) Updating files: 61% (9369/15359) Updating files: 62% (9523/15359) Updating files: 63% (9677/15359) Updating files: 64% (9830/15359) Updating files: 65% (9984/15359) Updating files: 66% (10137/15359) Updating files: 67% (10291/15359) Updating files: 67% (10356/15359) Updating files: 68% (10445/15359) Updating files: 69% (10598/15359) Updating files: 70% (10752/15359) Updating files: 71% (10905/15359) Updating files: 72% (11059/15359) Updating files: 73% (11213/15359) Updating files: 74% (11366/15359) Updating files: 75% (11520/15359) Updating files: 76% (11673/15359) Updating files: 77% (11827/15359) Updating files: 78% (11981/15359) Updating files: 78% (12082/15359) Updating files: 79% (12134/15359) Updating files: 80% (12288/15359) Updating files: 81% (12441/15359) Updating files: 81% (12574/15359) Updating files: 82% (12595/15359) Updating files: 83% (12748/15359) Updating files: 84% (12902/15359) Updating files: 85% (13056/15359) Updating files: 86% (13209/15359) Updating files: 87% (13363/15359) Updating files: 87% (13381/15359) Updating files: 88% (13516/15359) Updating files: 89% (13670/15359) Updating files: 90% (13824/15359) Updating files: 91% (13977/15359) Updating files: 92% (14131/15359) Updating files: 93% (14284/15359) Updating files: 93% (14330/15359) Updating files: 94% (14438/15359) Updating files: 95% (14592/15359) Updating files: 96% (14745/15359) Updating files: 97% (14899/15359) Updating files: 98% (15052/15359) Updating files: 99% (15206/15359) Updating files: 99% (15290/15359) Updating files: 100% (15359/15359) Updating files: 100% (15359/15359), done. [INFO] started tweaking git repo https://github.com/uwaiszaki/Rust-Order-Service [INFO] finished tweaking git repo https://github.com/uwaiszaki/Rust-Order-Service [INFO] tweaked toml for git repo https://github.com/uwaiszaki/Rust-Order-Service written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/uwaiszaki/Rust-Order-Service on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/uwaiszaki/Rust-Order-Service 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 88fef259ec31156902a63c6f66e9fa5f48e262968a16bade4cc717497e73c0a4 [INFO] running `Command { std: "docker" "start" "-a" "88fef259ec31156902a63c6f66e9fa5f48e262968a16bade4cc717497e73c0a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "88fef259ec31156902a63c6f66e9fa5f48e262968a16bade4cc717497e73c0a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88fef259ec31156902a63c6f66e9fa5f48e262968a16bade4cc717497e73c0a4", kill_on_drop: false }` [INFO] [stdout] 88fef259ec31156902a63c6f66e9fa5f48e262968a16bade4cc717497e73c0a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c778b385e17a458ba40ea12514a72462b7b473d1bb9f660ba6962dcbb95d70df [INFO] running `Command { std: "docker" "start" "-a" "c778b385e17a458ba40ea12514a72462b7b473d1bb9f660ba6962dcbb95d70df", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cc v1.2.20 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling const_fn v0.4.11 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling openssl-sys v0.9.108 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling lexical-core v0.7.6 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling sqlformat v0.1.8 [INFO] [stderr] Compiling hashlink v0.7.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling sha-1 v0.10.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling atoi v0.4.0 [INFO] [stderr] Compiling nom v5.1.3 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling http-range-header v0.3.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling if_chain v1.0.2 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling serde v0.8.23 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling validator_types v0.12.0 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling yaml-rust v0.4.5 [INFO] [stderr] Compiling blowfish v0.9.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling tracing-log v0.1.4 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling rust-ini v0.13.0 [INFO] [stderr] Compiling bcrypt v0.12.1 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling matchers v0.0.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling serde-hjson v0.9.1 [INFO] [stderr] Compiling tower-http v0.3.5 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling axum-core v0.1.2 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling validator_derive v0.13.0 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling sqlx-rt v0.5.13 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling tower-http v0.2.5 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling simple_asn1 v0.4.1 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling sqlx-core v0.5.13 [INFO] [stderr] Compiling validator v0.13.0 [INFO] [stderr] Compiling tracing-subscriber v0.2.25 [INFO] [stderr] Compiling jsonwebtoken v7.2.0 [INFO] [stderr] Compiling config v0.11.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling sqlx-macros v0.5.13 [INFO] [stderr] Compiling axum v0.4.8 [INFO] [stderr] Compiling sqlx v0.5.13 [INFO] [stderr] Compiling rust_app v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/services/user_service.rs:11:20 [INFO] [stdout] | [INFO] [stdout] 11 | let new_user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 12 | | User, [INFO] [stdout] 13 | | "INSERT INTO users (name, email, password, role) VALUES ($1, $2, $3, $4) RETURNING *", [INFO] [stdout] 14 | | user.name, [INFO] [stdout] ... | [INFO] [stdout] 17 | | user.role [INFO] [stdout] 18 | | ) [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/services/user_service.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | let user = sqlx::query_as!(User, "SELECT id, name, email, password, role FROM users WHERE id = $1", id) [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/services/user_service.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | let users = sqlx::query_as!(User, "SELECT id, name, email, password, role FROM users") [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/services/user_service.rs:42:16 [INFO] [stdout] | [INFO] [stdout] 42 | let user = sqlx::query_as!( [INFO] [stdout] | ________________^ [INFO] [stdout] 43 | | User, [INFO] [stdout] 44 | | "UPDATE users SET name = $1, email = $2 WHERE id = $3 RETURNING id, name, email, password, role", [INFO] [stdout] 45 | | name, [INFO] [stdout] 46 | | email, [INFO] [stdout] 47 | | id [INFO] [stdout] 48 | | ) [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/services/order_service.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let order = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 9 | | Order, [INFO] [stdout] 10 | | "INSERT INTO orders (user_id, product_name) VALUES ($1, $2) RETURNING *", [INFO] [stdout] 11 | | order.user_id, [INFO] [stdout] 12 | | order.product_name [INFO] [stdout] 13 | | ) [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/services/order_service.rs:21:18 [INFO] [stdout] | [INFO] [stdout] 21 | let orders = sqlx::query_as!(Order, "SELECT * FROM orders") [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/services/order_service.rs:29:18 [INFO] [stdout] | [INFO] [stdout] 29 | let orders = sqlx::query_as!( [INFO] [stdout] | __________________^ [INFO] [stdout] 30 | | Order, [INFO] [stdout] 31 | | "SELECT * FROM orders WHERE user_id = $1", [INFO] [stdout] 32 | | user_id [INFO] [stdout] 33 | | ) [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/services/auth_service.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | let user = sqlx::query_as!( [INFO] [stdout] | ________________^ [INFO] [stdout] 10 | | User, [INFO] [stdout] 11 | | "SELECT id, name, email, password, role FROM users WHERE email = $1", [INFO] [stdout] 12 | | login.email [INFO] [stdout] 13 | | ) [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: `UpdateUserRequest` [INFO] [stdout] --> src/services/user_service.rs:1:52 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::models::user::{CreateUserRequest, User, UpdateUserRequest}; [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: `crate::state::AppState` [INFO] [stdout] --> src/services/user_service.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/services/user_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `uuid::Uuid` [INFO] [stdout] --> src/services/order_service.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use uuid::Uuid; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> src/handlers/user_handler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Extension` [INFO] [stdout] --> src/handlers/user_handler.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | extract::{Path, Extension}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/handlers/user_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AuthError` [INFO] [stdout] --> src/handlers/order_handler.rs:8:47 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::handlers::auth_handler::{AuthUser, AuthError}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Extension` and `HeaderMap` [INFO] [stdout] --> src/handlers/auth_handler.rs:3:42 [INFO] [stdout] | [INFO] [stdout] 3 | extract::{FromRequest, RequestParts, Extension}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | http::{HeaderMap, StatusCode}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::state::AppState` [INFO] [stdout] --> src/handlers/auth_handler.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::state::AppState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/handlers/auth_handler.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deserialize` and `Serialize` [INFO] [stdout] --> src/handlers/auth_handler.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 15 | use serde::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `http::Request`, `middleware`, `put`, and `response::Response` [INFO] [stdout] --> src/main.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | routing::{post, get, put}, [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | middleware, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | response::Response, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 22 | http::Request, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `admin` [INFO] [stdout] --> src/handlers/user_handler.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | admin: AdminUser, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_admin` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `auth_user` [INFO] [stdout] --> src/handlers/order_handler.rs:26:25 [INFO] [stdout] | [INFO] [stdout] 26 | pub async fn get_orders(auth_user: AuthUser) -> Result>, StatusCode> { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_auth_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_app` (bin "rust_app") due to 8 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c778b385e17a458ba40ea12514a72462b7b473d1bb9f660ba6962dcbb95d70df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c778b385e17a458ba40ea12514a72462b7b473d1bb9f660ba6962dcbb95d70df", kill_on_drop: false }` [INFO] [stdout] c778b385e17a458ba40ea12514a72462b7b473d1bb9f660ba6962dcbb95d70df