[INFO] cloning repository https://github.com/wil-ckaew/rust-api [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wil-ckaew/rust-api" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwil-ckaew%2Frust-api", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwil-ckaew%2Frust-api'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fdf9d43bfebf9c4223e5e0624dbb4f2d8a91d927 [INFO] checking wil-ckaew/rust-api/fdf9d43bfebf9c4223e5e0624dbb4f2d8a91d927 against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwil-ckaew%2Frust-api" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/wil-ckaew/rust-api [INFO] finished tweaking git repo https://github.com/wil-ckaew/rust-api [INFO] tweaked toml for git repo https://github.com/wil-ckaew/rust-api written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wil-ckaew/rust-api on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wil-ckaew/rust-api 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bytes v1.7.0 [INFO] [stderr] Downloaded security-framework-sys v2.11.1 [INFO] [stderr] Downloaded value-bag v1.9.0 [INFO] [stderr] Downloaded actix_derive v0.6.1 [INFO] [stderr] Downloaded sqlformat v0.2.4 [INFO] [stderr] Downloaded ppv-lite86 v0.2.18 [INFO] [stderr] Downloaded zstd-safe v7.2.0 [INFO] [stderr] Downloaded actix-server v2.4.0 [INFO] [stderr] Downloaded actix v0.13.5 [INFO] [stderr] Downloaded indexmap v2.3.0 [INFO] [stderr] Downloaded cc v1.1.7 [INFO] [stderr] Downloaded polling v3.7.2 [INFO] [stderr] Downloaded actix-http v3.8.0 [INFO] [stderr] Downloaded serde_json v1.0.121 [INFO] [stderr] Downloaded openssl-sys v0.9.103 [INFO] [stderr] Downloaded zerocopy v0.6.6 [INFO] [stderr] Downloaded actix-web v4.8.0 [INFO] [stderr] Downloaded hyper v0.14.30 [INFO] [stderr] Downloaded async-io v2.3.3 [INFO] [stderr] Downloaded async-executor v1.13.0 [INFO] [stderr] Downloaded openssl v0.10.66 [INFO] [stderr] Downloaded piper v0.2.3 [INFO] [stderr] Downloaded async-signal v0.2.9 [INFO] [stderr] Downloaded zerocopy-derive v0.6.6 [INFO] [stderr] Downloaded zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Downloaded tokio v1.39.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95cf35d85e64186d8f14e466038c1c4926572c9d47e0b57ab2c3d6ddad514601 [INFO] running `Command { std: "docker" "start" "-a" "95cf35d85e64186d8f14e466038c1c4926572c9d47e0b57ab2c3d6ddad514601", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95cf35d85e64186d8f14e466038c1c4926572c9d47e0b57ab2c3d6ddad514601", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95cf35d85e64186d8f14e466038c1c4926572c9d47e0b57ab2c3d6ddad514601", kill_on_drop: false }` [INFO] [stdout] 95cf35d85e64186d8f14e466038c1c4926572c9d47e0b57ab2c3d6ddad514601 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3d5ac5b27b540458b1a2960c039e546a5a2b886cba198aef39ee876597371d1b [INFO] running `Command { std: "docker" "start" "-a" "3d5ac5b27b540458b1a2960c039e546a5a2b886cba198aef39ee876597371d1b", kill_on_drop: false }` [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking value-bag v1.9.0 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling syn v2.0.72 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling cc v1.1.7 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking bytes v1.7.0 [INFO] [stderr] Compiling parking v2.2.0 [INFO] [stderr] Checking lock_api v0.4.12 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling serde v1.0.204 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling openssl v0.10.66 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling rustix v0.37.27 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling event-listener v5.3.1 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking mio v1.0.1 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.2 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling futures-lite v2.3.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling openssl-sys v0.9.103 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling serde_json v1.0.121 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling piper v0.2.3 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Compiling zstd-sys v2.0.12+zstd.1.5.6 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling httparse v1.9.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking polling v3.7.2 [INFO] [stderr] Checking indexmap v2.3.0 [INFO] [stderr] Checking async-io v2.3.3 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling async-executor v1.13.0 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling serde_derive v1.0.204 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.6.6 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking tokio v1.39.2 [INFO] [stderr] Checking zerocopy v0.6.6 [INFO] [stderr] Checking ppv-lite86 v0.2.18 [INFO] [stderr] Compiling async-signal v0.2.9 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling event-listener v3.1.0 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Checking cpufeatures v0.2.12 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling async-process v1.8.1 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Checking local-waker v0.1.4 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Checking regex-syntax v0.8.4 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Compiling zstd-safe v7.2.0 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Compiling async-native-tls v0.4.0 [INFO] [stderr] Compiling async-std v1.12.0 [INFO] [stderr] Checking regex-automata v0.4.7 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling unicode-properties v0.1.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling sqlformat v0.2.4 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Checking regex v1.10.5 [INFO] [stderr] Compiling sqlx-rt v0.6.3 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling dirs v4.0.0 [INFO] [stderr] Checking miniz_oxide v0.7.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling futures-intrusive v0.4.2 [INFO] [stderr] Checking brotli-decompressor v4.0.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling atoi v1.0.0 [INFO] [stderr] Checking actix-utils v3.0.1 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking actix-service v2.0.2 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking tower-service v0.3.2 [INFO] [stderr] Compiling uuid v1.10.0 [INFO] [stderr] Compiling regex-lite v0.1.6 [INFO] [stderr] Checking hyper v0.14.30 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking time v0.3.36 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Compiling sqlx-core v0.6.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking brotli v6.0.0 [INFO] [stderr] Checking flate2 v1.0.30 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking local-channel v0.1.5 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Checking language-tags v0.3.2 [INFO] [stderr] Checking actix-server v2.4.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling actix_derive v0.6.1 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking ipnet v2.9.0 [INFO] [stderr] Checking actix v0.13.5 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking actix-http v3.8.0 [INFO] [stderr] Compiling sqlx-macros v0.6.3 [INFO] [stderr] Checking sqlx v0.6.3 [INFO] [stderr] Checking actix-web v4.8.0 [INFO] [stderr] Checking rust-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/services.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | / sqlx [INFO] [stdout] 131 | | ::query_as!( [INFO] [stdout] 132 | | TaskModel, [INFO] [stdout] 133 | | "SELECT * FROM tasks ORDER by id LIMIT $1 OFFSET $2", [INFO] [stdout] 134 | | limit as i32, [INFO] [stdout] 135 | | offset as i32 [INFO] [stdout] 136 | | ) [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.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | let query_result = sqlx [INFO] [stdout] | ______________________^ [INFO] [stdout] 167 | | ::query_as!(TaskModel, "SELECT * FROM tasks WHERE id = $1", task_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.rs:202:11 [INFO] [stdout] | [INFO] [stdout] 202 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 203 | | DocumentModel, [INFO] [stdout] 204 | | "SELECT * FROM documents ORDER BY id LIMIT $1 OFFSET $2", [INFO] [stdout] 205 | | limit as i32, [INFO] [stdout] 206 | | offset as i32 [INFO] [stdout] 207 | | ) [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.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | / sqlx [INFO] [stdout] 131 | | ::query_as!( [INFO] [stdout] 132 | | TaskModel, [INFO] [stdout] 133 | | "SELECT * FROM tasks ORDER by id LIMIT $1 OFFSET $2", [INFO] [stdout] 134 | | limit as i32, [INFO] [stdout] 135 | | offset as i32 [INFO] [stdout] 136 | | ) [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.rs:235:11 [INFO] [stdout] | [INFO] [stdout] 235 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 236 | | DocumentModel, [INFO] [stdout] 237 | | "SELECT * FROM documents WHERE id = $1", [INFO] [stdout] 238 | | document_id [INFO] [stdout] 239 | | ) [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.rs:166:22 [INFO] [stdout] | [INFO] [stdout] 166 | let query_result = sqlx [INFO] [stdout] | ______________________^ [INFO] [stdout] 167 | | ::query_as!(TaskModel, "SELECT * FROM tasks WHERE id = $1", task_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.rs:264:11 [INFO] [stdout] | [INFO] [stdout] 264 | match sqlx::query!("DELETE FROM tasks WHERE id = $1", task_id).execute(&data.db).await { [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/services.rs:202:11 [INFO] [stdout] | [INFO] [stdout] 202 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 203 | | DocumentModel, [INFO] [stdout] 204 | | "SELECT * FROM documents ORDER BY id LIMIT $1 OFFSET $2", [INFO] [stdout] 205 | | limit as i32, [INFO] [stdout] 206 | | offset as i32 [INFO] [stdout] 207 | | ) [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.rs:235:11 [INFO] [stdout] | [INFO] [stdout] 235 | match sqlx::query_as!( [INFO] [stdout] | ___________^ [INFO] [stdout] 236 | | DocumentModel, [INFO] [stdout] 237 | | "SELECT * FROM documents WHERE id = $1", [INFO] [stdout] 238 | | document_id [INFO] [stdout] 239 | | ) [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.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | match sqlx::query!("DELETE FROM documents WHERE id = $1", documents_id).execute(&data.db).await { [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/services.rs:299:11 [INFO] [stdout] | [INFO] [stdout] 299 | match sqlx::query_as!(TaskModel, "SELECT * FROM tasks WHERE id = $1", task_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.rs:304:33 [INFO] [stdout] | [INFO] [stdout] 304 | let update_result = sqlx::query_as!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 305 | | TaskModel, [INFO] [stdout] 306 | | "UPDATE tasks SET title = $1, content = $2 WHERE id = $3 RETURNING *", [INFO] [stdout] 307 | | body.title.as_ref().unwrap_or(&task.title), [INFO] [stdout] 308 | | body.content.as_ref().unwrap_or(&task.content), [INFO] [stdout] 309 | | task_id [INFO] [stdout] 310 | | ) [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.rs:351:27 [INFO] [stdout] | [INFO] [stdout] 351 | let document_result = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 352 | | DocumentModel, [INFO] [stdout] 353 | | "SELECT * FROM documents WHERE id = $1", [INFO] [stdout] 354 | | document_id [INFO] [stdout] 355 | | ) [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.rs:362:33 [INFO] [stdout] | [INFO] [stdout] 362 | let update_result = sqlx::query_as!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 363 | | DocumentModel, [INFO] [stdout] 364 | | "UPDATE documents SET user_id = COALESCE($1, user_id), doc_type = COALESCE($2, doc_type) WHERE id = $3 RETURNING *", [INFO] [stdout] 365 | | body.user_id.as_ref(), [INFO] [stdout] 366 | | body.doc_type.as_ref(), [INFO] [stdout] 367 | | document_id [INFO] [stdout] 368 | | ) [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.rs:264:11 [INFO] [stdout] | [INFO] [stdout] 264 | match sqlx::query!("DELETE FROM tasks WHERE id = $1", task_id).execute(&data.db).await { [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/services.rs:279:11 [INFO] [stdout] | [INFO] [stdout] 279 | match sqlx::query!("DELETE FROM documents WHERE id = $1", documents_id).execute(&data.db).await { [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/services.rs:299:11 [INFO] [stdout] | [INFO] [stdout] 299 | match sqlx::query_as!(TaskModel, "SELECT * FROM tasks WHERE id = $1", task_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.rs:304:33 [INFO] [stdout] | [INFO] [stdout] 304 | let update_result = sqlx::query_as!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 305 | | TaskModel, [INFO] [stdout] 306 | | "UPDATE tasks SET title = $1, content = $2 WHERE id = $3 RETURNING *", [INFO] [stdout] 307 | | body.title.as_ref().unwrap_or(&task.title), [INFO] [stdout] 308 | | body.content.as_ref().unwrap_or(&task.content), [INFO] [stdout] 309 | | task_id [INFO] [stdout] 310 | | ) [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.rs:351:27 [INFO] [stdout] | [INFO] [stdout] 351 | let document_result = sqlx::query_as!( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 352 | | DocumentModel, [INFO] [stdout] 353 | | "SELECT * FROM documents WHERE id = $1", [INFO] [stdout] 354 | | document_id [INFO] [stdout] 355 | | ) [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.rs:362:33 [INFO] [stdout] | [INFO] [stdout] 362 | let update_result = sqlx::query_as!( [INFO] [stdout] | _________________________________^ [INFO] [stdout] 363 | | DocumentModel, [INFO] [stdout] 364 | | "UPDATE documents SET user_id = COALESCE($1, user_id), doc_type = COALESCE($2, doc_type) WHERE id = $3 RETURNING *", [INFO] [stdout] 365 | | body.user_id.as_ref(), [INFO] [stdout] 366 | | body.doc_type.as_ref(), [INFO] [stdout] 367 | | document_id [INFO] [stdout] 368 | | ) [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: `sqlx::PgPool` [INFO] [stdout] --> src/services.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use sqlx::PgPool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::PgPool` [INFO] [stdout] --> src/services.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use sqlx::PgPool; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-api` (bin "rust-api") due to 10 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-api` (bin "rust-api" test) due to 10 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "3d5ac5b27b540458b1a2960c039e546a5a2b886cba198aef39ee876597371d1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d5ac5b27b540458b1a2960c039e546a5a2b886cba198aef39ee876597371d1b", kill_on_drop: false }` [INFO] [stdout] 3d5ac5b27b540458b1a2960c039e546a5a2b886cba198aef39ee876597371d1b