[INFO] cloning repository https://github.com/Dawaman43/devnewsletter_backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Dawaman43/devnewsletter_backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDawaman43%2Fdevnewsletter_backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDawaman43%2Fdevnewsletter_backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e4324506a6a74f34671d94de9938141b861dd504 [INFO] checking Dawaman43/devnewsletter_backend/e4324506a6a74f34671d94de9938141b861dd504 against master#36e2b8a3a7aad93f8a92db6d254b746aa94ed6da for pr-151822 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDawaman43%2Fdevnewsletter_backend" "/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/Dawaman43/devnewsletter_backend [INFO] finished tweaking git repo https://github.com/Dawaman43/devnewsletter_backend [INFO] tweaked toml for git repo https://github.com/Dawaman43/devnewsletter_backend written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Dawaman43/devnewsletter_backend on toolchain 36e2b8a3a7aad93f8a92db6d254b746aa94ed6da [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Dawaman43/devnewsletter_backend 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" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded itoa v1.0.16 [INFO] [stderr] Downloaded libredox v0.1.11 [INFO] [stderr] Downloaded redox_syscall v0.6.0 [INFO] [stderr] Downloaded sqlx-macros v0.7.4 [INFO] [stderr] Downloaded sqlx-sqlite v0.7.4 [INFO] [stderr] Downloaded pem v3.0.6 [INFO] [stderr] Downloaded sqlx-macros-core v0.7.4 [INFO] [stderr] Downloaded jsonwebtoken v9.3.1 [INFO] [stderr] Downloaded sqlx-mysql v0.7.4 [INFO] [stderr] Downloaded sqlx-postgres v0.7.4 [INFO] [stderr] Downloaded sqlx-core v0.7.4 [INFO] [stderr] Downloaded sqlx v0.7.4 [INFO] [stderr] Downloaded cc v1.2.50 [INFO] [stderr] Downloaded libsqlite3-sys v0.27.0 [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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] adf6c10b15bd37851d770b78882722f84f32b540b77b3f3a510760785c3899ba [INFO] running `Command { std: "docker" "start" "-a" "adf6c10b15bd37851d770b78882722f84f32b540b77b3f3a510760785c3899ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "adf6c10b15bd37851d770b78882722f84f32b540b77b3f3a510760785c3899ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "adf6c10b15bd37851d770b78882722f84f32b540b77b3f3a510760785c3899ba", kill_on_drop: false }` [INFO] [stdout] adf6c10b15bd37851d770b78882722f84f32b540b77b3f3a510760785c3899ba [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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9651e43284f6196265c946b13a2919b94d9c70886a4b2b32c1f8a151ba4826fe [INFO] running `Command { std: "docker" "start" "-a" "9651e43284f6196265c946b13a2919b94d9c70886a4b2b32c1f8a151ba4826fe", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Checking itoa v1.0.16 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling cc v1.2.50 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Compiling tracing-core v0.1.36 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling log v0.4.29 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Checking icu_normalizer v2.1.1 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Checking ryu v1.0.21 [INFO] [stderr] Compiling icu_properties v2.1.2 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Compiling socket2 v0.6.1 [INFO] [stderr] Checking tokio v1.48.0 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling zstd-sys v2.0.16+zstd.1.5.7 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Checking aho-corasick v1.1.4 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling convert_case v0.10.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling uuid v1.19.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking simd-adler32 v0.3.8 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking miniz_oxide v0.8.9 [INFO] [stderr] Checking regex-automata v0.4.13 [INFO] [stderr] Compiling derive_more-impl v2.1.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Checking rand v0.9.2 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking tokio-util v0.7.17 [INFO] [stderr] Checking actix-rt v2.11.0 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking h2 v0.3.27 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking regex v1.12.2 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Checking actix-server v2.6.0 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking cookie v0.16.2 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking blowfish v0.9.1 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking bcrypt v0.15.1 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking derive_more v2.1.0 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Checking zstd v0.13.3 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking actix-http v3.11.2 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking actix-web v4.12.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking actix-cors v0.7.1 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking newsletter-api v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/handlers/admin.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 69 | | r#" [INFO] [stdout] 70 | | INSERT INTO posts(title, slug, content, published, published_at) [INFO] [stdout] 71 | | VALUES ($1, $2, $3, $4, $5) [INFO] [stdout] ... | [INFO] [stdout] 79 | | published_at [INFO] [stdout] 80 | | ) [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/handlers/admin.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | let post = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 101 | | r#" [INFO] [stdout] 102 | | SELECT * FROM posts WHERE slug = $1 [INFO] [stdout] 103 | | "#, [INFO] [stdout] 104 | | slug.as_str() [INFO] [stdout] 105 | | ) [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/handlers/admin.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 140 | | r#" [INFO] [stdout] 141 | | UPDATE posts [INFO] [stdout] 142 | | SET [INFO] [stdout] ... | [INFO] [stdout] 154 | | slug.as_str() [INFO] [stdout] 155 | | ) [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/handlers/admin.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 182 | | "DELETE FROM posts WHERE slug = $1 RETURNING id", [INFO] [stdout] 183 | | slug.as_str() [INFO] [stdout] 184 | | ) [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/handlers/posts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 7 | | r#" [INFO] [stdout] 8 | | SELECT title, slug, content, published_at [INFO] [stdout] 9 | | FROM posts [INFO] [stdout] ... | [INFO] [stdout] 12 | | "# [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` (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/handlers/posts.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let post = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 40 | | r#" [INFO] [stdout] 41 | | SELECT title, slug, content, published_at [INFO] [stdout] 42 | | FROM posts [INFO] [stdout] ... | [INFO] [stdout] 45 | | slug.as_str() [INFO] [stdout] 46 | | ) [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/handlers/posts.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | let post = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 74 | | r#" [INFO] [stdout] 75 | | SELECT title, slug, content, published_at [INFO] [stdout] 76 | | FROM posts [INFO] [stdout] ... | [INFO] [stdout] 79 | | slug.as_str() [INFO] [stdout] 80 | | ) [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] warning: unused import: `body::None` [INFO] [stdout] --> src/handlers/admin.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{HttpResponse, Responder, body::None, web}; [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::auth::extractor::AdminAuth` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::auth::extractor::AdminAuth; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handlers::admin::protected` [INFO] [stdout] --> src/main.rs:12:40 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{config::setting::Settings, handlers::admin::protected}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/handlers/admin.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 69 | | r#" [INFO] [stdout] 70 | | INSERT INTO posts(title, slug, content, published, published_at) [INFO] [stdout] 71 | | VALUES ($1, $2, $3, $4, $5) [INFO] [stdout] ... | [INFO] [stdout] 79 | | published_at [INFO] [stdout] 80 | | ) [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/handlers/admin.rs:100:16 [INFO] [stdout] | [INFO] [stdout] 100 | let post = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 101 | | r#" [INFO] [stdout] 102 | | SELECT * FROM posts WHERE slug = $1 [INFO] [stdout] 103 | | "#, [INFO] [stdout] 104 | | slug.as_str() [INFO] [stdout] 105 | | ) [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/handlers/admin.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 140 | | r#" [INFO] [stdout] 141 | | UPDATE posts [INFO] [stdout] 142 | | SET [INFO] [stdout] ... | [INFO] [stdout] 154 | | slug.as_str() [INFO] [stdout] 155 | | ) [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/handlers/admin.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 182 | | "DELETE FROM posts WHERE slug = $1 RETURNING id", [INFO] [stdout] 183 | | slug.as_str() [INFO] [stdout] 184 | | ) [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/handlers/posts.rs:6:18 [INFO] [stdout] | [INFO] [stdout] 6 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 7 | | r#" [INFO] [stdout] 8 | | SELECT title, slug, content, published_at [INFO] [stdout] 9 | | FROM posts [INFO] [stdout] ... | [INFO] [stdout] 12 | | "# [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` (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/handlers/posts.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | let post = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 40 | | r#" [INFO] [stdout] 41 | | SELECT title, slug, content, published_at [INFO] [stdout] 42 | | FROM posts [INFO] [stdout] ... | [INFO] [stdout] 45 | | slug.as_str() [INFO] [stdout] 46 | | ) [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/handlers/posts.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 73 | let post = sqlx::query!( [INFO] [stdout] | ________________^ [INFO] [stdout] 74 | | r#" [INFO] [stdout] 75 | | SELECT title, slug, content, published_at [INFO] [stdout] 76 | | FROM posts [INFO] [stdout] ... | [INFO] [stdout] 79 | | slug.as_str() [INFO] [stdout] 80 | | ) [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] warning: unused import: `body::None` [INFO] [stdout] --> src/handlers/admin.rs:1:42 [INFO] [stdout] | [INFO] [stdout] 1 | use actix_web::{HttpResponse, Responder, body::None, web}; [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::auth::extractor::AdminAuth` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::auth::extractor::AdminAuth; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `handlers::admin::protected` [INFO] [stdout] --> src/main.rs:12:40 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::{config::setting::Settings, handlers::admin::protected}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handlers/admin.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 182 | | "DELETE FROM posts WHERE slug = $1 RETURNING id", [INFO] [stdout] 183 | | slug.as_str() [INFO] [stdout] ... | [INFO] [stdout] 186 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/handlers/posts.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | let posts: Vec = rows [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] 6 | let result: Result<_, E> = sqlx::query!( [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handlers/admin.rs:181:18 [INFO] [stdout] | [INFO] [stdout] 181 | let result = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 182 | | "DELETE FROM posts WHERE slug = $1 RETURNING id", [INFO] [stdout] 183 | | slug.as_str() [INFO] [stdout] ... | [INFO] [stdout] 186 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/handlers/posts.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | let posts: Vec = rows [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] 6 | let result: Result<_, E> = sqlx::query!( [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `newsletter-api` (bin "newsletter-api") due to 9 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `newsletter-api` (bin "newsletter-api" test) due to 9 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9651e43284f6196265c946b13a2919b94d9c70886a4b2b32c1f8a151ba4826fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9651e43284f6196265c946b13a2919b94d9c70886a4b2b32c1f8a151ba4826fe", kill_on_drop: false }` [INFO] [stdout] 9651e43284f6196265c946b13a2919b94d9c70886a4b2b32c1f8a151ba4826fe