[INFO] cloning repository https://github.com/evemia-yuri/andy-website-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/evemia-yuri/andy-website-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevemia-yuri%2Fandy-website-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevemia-yuri%2Fandy-website-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e3c9249987cf2dc23c1a73c9d42a2e2377f86bd4 [INFO] checking evemia-yuri/andy-website-backend/e3c9249987cf2dc23c1a73c9d42a2e2377f86bd4 against master#4068bafedd8ba724e332a5221c06a6fa531a30d2 for pr-146978 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fevemia-yuri%2Fandy-website-backend" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/evemia-yuri/andy-website-backend [INFO] finished tweaking git repo https://github.com/evemia-yuri/andy-website-backend [INFO] tweaked toml for git repo https://github.com/evemia-yuri/andy-website-backend written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/evemia-yuri/andy-website-backend on toolchain 4068bafedd8ba724e332a5221c06a6fa531a30d2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4068bafedd8ba724e332a5221c06a6fa531a30d2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/evemia-yuri/andy-website-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" "+4068bafedd8ba724e332a5221c06a6fa531a30d2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded backtrace v0.3.76 [INFO] [stderr] Downloaded serde_path_to_error v0.1.20 [INFO] [stderr] Downloaded simple_asn1 v0.6.3 [INFO] [stderr] Downloaded password-hash v0.5.0 [INFO] [stderr] Downloaded deadpool-redis v0.22.0 [INFO] [stderr] Downloaded jsonwebtoken v10.0.0 [INFO] [stderr] Downloaded argon2 v0.5.3 [INFO] [stderr] Downloaded deadpool v0.12.3 [INFO] [stderr] Downloaded axum-core v0.5.5 [INFO] [stderr] Downloaded backon v1.5.2 [INFO] [stderr] Downloaded windows-core v0.62.1 [INFO] [stderr] Downloaded addr2line v0.25.1 [INFO] [stderr] Downloaded axum v0.8.6 [INFO] [stderr] Downloaded pem v3.0.6 [INFO] [stderr] Downloaded gimli v0.32.3 [INFO] [stderr] Downloaded webpki-roots v1.0.3 [INFO] [stderr] Downloaded aws-lc-rs v1.14.1 [INFO] [stderr] Downloaded object v0.37.3 [INFO] [stderr] Downloaded redis v0.32.7 [INFO] [stderr] Downloaded aws-lc-sys v0.32.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4068bafedd8ba724e332a5221c06a6fa531a30d2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5b910e3aea447531c6c32afe55a58de874c8dbe254b2255a5687deed4d590cfa [INFO] running `Command { std: "docker" "start" "-a" "5b910e3aea447531c6c32afe55a58de874c8dbe254b2255a5687deed4d590cfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5b910e3aea447531c6c32afe55a58de874c8dbe254b2255a5687deed4d590cfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b910e3aea447531c6c32afe55a58de874c8dbe254b2255a5687deed4d590cfa", kill_on_drop: false }` [INFO] [stdout] 5b910e3aea447531c6c32afe55a58de874c8dbe254b2255a5687deed4d590cfa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+4068bafedd8ba724e332a5221c06a6fa531a30d2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd3cb926ce9f25b4fe2651fc67704e19e6db474e5a0101414f21f75771018bfd [INFO] running `Command { std: "docker" "start" "-a" "fd3cb926ce9f25b4fe2651fc67704e19e6db474e5a0101414f21f75771018bfd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Checking const-oid v0.9.6 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling rustls v0.23.32 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking socket2 v0.6.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-registry v1.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling cc v1.2.40 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling webpki-roots v1.0.3 [INFO] [stderr] Compiling libloading v0.8.8 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling fs_extra v1.3.0 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling uuid v1.18.1 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking getrandom v0.3.3 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling aws-lc-sys v0.32.2 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Checking hashbrown v0.16.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Checking deranged v0.5.4 [INFO] [stderr] Checking indexmap v2.11.4 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Compiling aws-lc-rs v1.14.1 [INFO] [stderr] Checking atomic-waker v1.1.2 [INFO] [stderr] Compiling rsa v0.9.8 [INFO] [stderr] Checking regex-syntax v0.8.6 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking backon v1.5.2 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Checking sha1_smol v1.0.1 [INFO] [stderr] Checking regex-automata v0.4.10 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking pem v3.0.6 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking time v0.3.44 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Checking nu-ansi-term v0.50.1 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking zerofrom v0.1.6 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking matchers v0.2.0 [INFO] [stderr] Checking zerovec v0.11.4 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking axum-core v0.5.5 [INFO] [stderr] Checking tracing-subscriber v0.3.20 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking rustls-webpki v0.103.7 [INFO] [stderr] Checking tinystr v0.8.1 [INFO] [stderr] Checking icu_locale_core v2.0.0 [INFO] [stderr] Checking potential_utf v0.1.3 [INFO] [stderr] Checking icu_collections v2.0.0 [INFO] [stderr] Checking icu_provider v2.0.0 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking icu_properties v2.0.1 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-util v0.7.16 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking deadpool-runtime v0.1.4 [INFO] [stderr] Checking idna v1.1.0 [INFO] [stderr] Checking hyper v1.7.0 [INFO] [stderr] Checking deadpool v0.12.3 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking url v2.5.7 [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking hyper-util v0.1.17 [INFO] [stderr] Checking axum v0.8.6 [INFO] [stderr] Checking sqlx-mysql v0.8.6 [INFO] [stderr] Checking redis v0.32.7 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Checking jsonwebtoken v10.0.0 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking deadpool-redis v0.22.0 [INFO] [stderr] Checking andy-website-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/services/auth.rs:39:53 [INFO] [stdout] | [INFO] [stdout] 39 | let result: sqlx::mysql::MySqlQueryResult = sqlx::query!( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 40 | | r#"INSERT INTO users (username, email, password_hash) VALUES (?, ?, ?)"#, [INFO] [stdout] 41 | | payload.username, [INFO] [stdout] 42 | | payload.email, [INFO] [stdout] 43 | | password_hash [INFO] [stdout] 44 | | ) [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/auth.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | / sqlx::query_as!( [INFO] [stdout] 56 | | User, [INFO] [stdout] 57 | | r#"SELECT id, username, email, password_hash, [INFO] [stdout] 58 | | status, is_active, created_at, deleted_at [INFO] [stdout] 59 | | FROM users WHERE username = ? AND is_active = 1"#, [INFO] [stdout] 60 | | username [INFO] [stdout] 61 | | ) [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.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | / sqlx::query_as!( [INFO] [stdout] 68 | | User, [INFO] [stdout] 69 | | r#"SELECT id, username, email, password_hash, [INFO] [stdout] 70 | | status, is_active, created_at, deleted_at [INFO] [stdout] 71 | | FROM users WHERE id = ? AND is_active = 1"#, [INFO] [stdout] 72 | | user_id [INFO] [stdout] 73 | | ) [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.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / sqlx::query!( [INFO] [stdout] 80 | | r#"UPDATE users SET [INFO] [stdout] 81 | | status = 'deleted', [INFO] [stdout] 82 | | is_active = 0, [INFO] [stdout] ... | [INFO] [stdout] 85 | | user_id [INFO] [stdout] 86 | | ) [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/card.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 17 | | r#" [INFO] [stdout] 18 | | INSERT INTO cards [INFO] [stdout] 19 | | (image_url, word, word_cn, sentence, sentence_cn, tips) [INFO] [stdout] ... | [INFO] [stdout] 26 | | data.tips [INFO] [stdout] 27 | | ) [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/card.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | sqlx::query_as!(Card, r#"SELECT * FROM cards"#) [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/card.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | sqlx::query_as!(Card, r#"SELECT * FROM cards WHERE id = ?"#, 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/card.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let rows_affected = sqlx::query!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 48 | | r#" [INFO] [stdout] 49 | | UPDATE cards [INFO] [stdout] 50 | | SET image_url = COALESCE(?, image_url), [INFO] [stdout] ... | [INFO] [stdout] 64 | | id [INFO] [stdout] 65 | | ) [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/card.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let rows_affected = sqlx::query!(r#"DELETE FROM cards WHERE id = ?"#, 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` (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.rs:39:53 [INFO] [stdout] | [INFO] [stdout] 39 | let result: sqlx::mysql::MySqlQueryResult = sqlx::query!( [INFO] [stdout] | _____________________________________________________^ [INFO] [stdout] 40 | | r#"INSERT INTO users (username, email, password_hash) VALUES (?, ?, ?)"#, [INFO] [stdout] 41 | | payload.username, [INFO] [stdout] 42 | | payload.email, [INFO] [stdout] 43 | | password_hash [INFO] [stdout] 44 | | ) [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/auth.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | / sqlx::query_as!( [INFO] [stdout] 56 | | User, [INFO] [stdout] 57 | | r#"SELECT id, username, email, password_hash, [INFO] [stdout] 58 | | status, is_active, created_at, deleted_at [INFO] [stdout] 59 | | FROM users WHERE username = ? AND is_active = 1"#, [INFO] [stdout] 60 | | username [INFO] [stdout] 61 | | ) [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.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | / sqlx::query_as!( [INFO] [stdout] 68 | | User, [INFO] [stdout] 69 | | r#"SELECT id, username, email, password_hash, [INFO] [stdout] 70 | | status, is_active, created_at, deleted_at [INFO] [stdout] 71 | | FROM users WHERE id = ? AND is_active = 1"#, [INFO] [stdout] 72 | | user_id [INFO] [stdout] 73 | | ) [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.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / sqlx::query!( [INFO] [stdout] 80 | | r#"UPDATE users SET [INFO] [stdout] 81 | | status = 'deleted', [INFO] [stdout] 82 | | is_active = 0, [INFO] [stdout] ... | [INFO] [stdout] 85 | | user_id [INFO] [stdout] 86 | | ) [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/card.rs:16:22 [INFO] [stdout] | [INFO] [stdout] 16 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 17 | | r#" [INFO] [stdout] 18 | | INSERT INTO cards [INFO] [stdout] 19 | | (image_url, word, word_cn, sentence, sentence_cn, tips) [INFO] [stdout] ... | [INFO] [stdout] 26 | | data.tips [INFO] [stdout] 27 | | ) [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/card.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | sqlx::query_as!(Card, r#"SELECT * FROM cards"#) [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/card.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | sqlx::query_as!(Card, r#"SELECT * FROM cards WHERE id = ?"#, 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/card.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let rows_affected = sqlx::query!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 48 | | r#" [INFO] [stdout] 49 | | UPDATE cards [INFO] [stdout] 50 | | SET image_url = COALESCE(?, image_url), [INFO] [stdout] ... | [INFO] [stdout] 64 | | id [INFO] [stdout] 65 | | ) [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/card.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let rows_affected = sqlx::query!(r#"DELETE FROM cards WHERE id = ?"#, 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` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete` and `patch` [INFO] [stdout] --> src/handlers/card.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | routing::{delete, get, patch, post}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `delete` and `patch` [INFO] [stdout] --> src/handlers/card.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | routing::{delete, get, patch, post}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/card.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Ok(result.last_insert_id() as i32) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 16 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/card.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let rows_affected = sqlx::query!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 48 | | r#" [INFO] [stdout] 49 | | UPDATE cards [INFO] [stdout] 50 | | SET image_url = COALESCE(?, image_url), [INFO] [stdout] ... | [INFO] [stdout] 66 | | .execute(&*self.db) [INFO] [stdout] 67 | | .await? [INFO] [stdout] | |_______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/card.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let rows_affected = sqlx::query!(r#"DELETE FROM cards WHERE id = ?"#, id) [INFO] [stdout] | _____________________________^ [INFO] [stdout] 75 | | .execute(&*self.db) [INFO] [stdout] 76 | | .await? [INFO] [stdout] | |___________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/card.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let result = sqlx::query!( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | Ok(result.last_insert_id() as i32) [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type [INFO] [stdout] | [INFO] [stdout] 16 | let result: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/card.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 47 | let rows_affected = sqlx::query!( [INFO] [stdout] | _____________________________^ [INFO] [stdout] 48 | | r#" [INFO] [stdout] 49 | | UPDATE cards [INFO] [stdout] 50 | | SET image_url = COALESCE(?, image_url), [INFO] [stdout] ... | [INFO] [stdout] 66 | | .execute(&*self.db) [INFO] [stdout] 67 | | .await? [INFO] [stdout] | |_______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/services/card.rs:74:29 [INFO] [stdout] | [INFO] [stdout] 74 | let rows_affected = sqlx::query!(r#"DELETE FROM cards WHERE id = ?"#, id) [INFO] [stdout] | _____________________________^ [INFO] [stdout] 75 | | .execute(&*self.db) [INFO] [stdout] 76 | | .await? [INFO] [stdout] | |___________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `andy-website-backend` (bin "andy-website-backend") due to 12 previous errors; 1 warning 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 `andy-website-backend` (bin "andy-website-backend" test) due to 12 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "fd3cb926ce9f25b4fe2651fc67704e19e6db474e5a0101414f21f75771018bfd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd3cb926ce9f25b4fe2651fc67704e19e6db474e5a0101414f21f75771018bfd", kill_on_drop: false }` [INFO] [stdout] fd3cb926ce9f25b4fe2651fc67704e19e6db474e5a0101414f21f75771018bfd