[INFO] cloning repository https://github.com/zakirkun/rust-axum-mysql [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zakirkun/rust-axum-mysql" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzakirkun%2Frust-axum-mysql", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzakirkun%2Frust-axum-mysql'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8c1081aa47d3f8cb41bee119faf99b19085f216 [INFO] checking zakirkun/rust-axum-mysql against try#54e27f559f23913c1d5afb1a0f0114e9e61b81b8 for pr-147589 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzakirkun%2Frust-axum-mysql" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zakirkun/rust-axum-mysql [INFO] finished tweaking git repo https://github.com/zakirkun/rust-axum-mysql [INFO] tweaked toml for git repo https://github.com/zakirkun/rust-axum-mysql written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zakirkun/rust-axum-mysql on toolchain 54e27f559f23913c1d5afb1a0f0114e9e61b81b8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zakirkun/rust-axum-mysql 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" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rsa v0.9.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 49d7b6cb95c6cccf296e223c62c61f40df70e92fbef4afe902b46e892610e8e4 [INFO] running `Command { std: "docker" "start" "-a" "49d7b6cb95c6cccf296e223c62c61f40df70e92fbef4afe902b46e892610e8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "49d7b6cb95c6cccf296e223c62c61f40df70e92fbef4afe902b46e892610e8e4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49d7b6cb95c6cccf296e223c62c61f40df70e92fbef4afe902b46e892610e8e4", kill_on_drop: false }` [INFO] [stdout] 49d7b6cb95c6cccf296e223c62c61f40df70e92fbef4afe902b46e892610e8e4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+54e27f559f23913c1d5afb1a0f0114e9e61b81b8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ae8d2c1c1923aedf7f4068c974aeecb10387bab63792dfc52488150ce5f690a [INFO] running `Command { std: "docker" "start" "-a" "9ae8d2c1c1923aedf7f4068c974aeecb10387bab63792dfc52488150ce5f690a", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling cc v1.2.10 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Checking value-bag v1.10.0 [INFO] [stderr] Checking concurrent-queue v2.5.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling openssl v0.10.69 [INFO] [stderr] Checking log v0.4.25 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling native-tls v0.2.13 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling base64ct v1.6.0 [INFO] [stderr] Compiling num-bigint-dig v0.8.4 [INFO] [stderr] Compiling event-listener-strategy v0.5.3 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling pem-rfc7468 v0.7.0 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foldhash v0.1.4 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling der v0.7.9 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Checking ryu v1.0.19 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling indexmap v2.7.1 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling pkcs1 v0.7.5 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Compiling uuid v1.12.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking http-body-util v0.1.2 [INFO] [stderr] Checking matchit v0.8.4 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Checking tokio v1.43.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking axum-core v0.5.0 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking rsa v0.9.7 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Checking hyper-util v0.1.10 [INFO] [stderr] Checking tower-http v0.6.2 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking axum v0.8.1 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking polling v3.7.4 [INFO] [stderr] Compiling tempfile v3.16.0 [INFO] [stderr] Checking async-io v2.4.0 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling async-std v1.13.0 [INFO] [stderr] Compiling sqlx-core v0.8.3 [INFO] [stderr] Checking sqlx-mysql v0.8.3 [INFO] [stderr] Compiling sqlx-macros-core v0.8.3 [INFO] [stderr] Compiling sqlx-macros v0.8.3 [INFO] [stderr] Checking sqlx v0.8.3 [INFO] [stderr] Checking rust-axum-mysql v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: error communicating with database: Connection refused (os error 111) [INFO] [stdout] --> src/handler.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let notes = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 36 | | NoteModel, [INFO] [stdout] 37 | | r#"SELECT * FROM notes ORDER by id LIMIT ? OFFSET ?"#, [INFO] [stdout] 38 | | limit as i32, [INFO] [stdout] 39 | | offset as i32 [INFO] [stdout] 40 | | ) [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/handler.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let notes = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 36 | | NoteModel, [INFO] [stdout] 37 | | r#"SELECT * FROM notes ORDER by id LIMIT ? OFFSET ?"#, [INFO] [stdout] 38 | | limit as i32, [INFO] [stdout] 39 | | offset as i32 [INFO] [stdout] 40 | | ) [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/handler.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | let note = sqlx::query_as!(NoteModel, r#"SELECT * FROM notes WHERE id = ?"#, user_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/handler.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | let note = sqlx::query_as!(NoteModel, r#"SELECT * FROM notes WHERE id = ?"#, user_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/handler.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | let query_result = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 117 | | NoteModel, [INFO] [stdout] 118 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 119 | | id.to_string() [INFO] [stdout] 120 | | ) [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/handler.rs:116:24 [INFO] [stdout] | [INFO] [stdout] 116 | let query_result = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 117 | | NoteModel, [INFO] [stdout] 118 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 119 | | id.to_string() [INFO] [stdout] 120 | | ) [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/handler.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | let query_result = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 156 | | NoteModel, [INFO] [stdout] 157 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 158 | | id.to_string() [INFO] [stdout] 159 | | ) [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/handler.rs:216:24 [INFO] [stdout] | [INFO] [stdout] 216 | let updated_note = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 217 | | NoteModel, [INFO] [stdout] 218 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 219 | | id.to_string() [INFO] [stdout] 220 | | ) [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/handler.rs:155:24 [INFO] [stdout] | [INFO] [stdout] 155 | let query_result = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 156 | | NoteModel, [INFO] [stdout] 157 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 158 | | id.to_string() [INFO] [stdout] 159 | | ) [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/handler.rs:216:24 [INFO] [stdout] | [INFO] [stdout] 216 | let updated_note = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 217 | | NoteModel, [INFO] [stdout] 218 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 219 | | id.to_string() [INFO] [stdout] 220 | | ) [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/handler.rs:241:24 [INFO] [stdout] | [INFO] [stdout] 241 | let query_result = sqlx::query!(r#"DELETE FROM notes WHERE id = ?"#, id.to_string()) [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/handler.rs:241:24 [INFO] [stdout] | [INFO] [stdout] 241 | let query_result = sqlx::query!(r#"DELETE FROM notes WHERE id = ?"#, id.to_string()) [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[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let notes = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 36 | | NoteModel, [INFO] [stdout] 37 | | r#"SELECT * FROM notes ORDER by id LIMIT ? OFFSET ?"#, [INFO] [stdout] 38 | | limit as i32, [INFO] [stdout] ... | [INFO] [stdout] 41 | | .fetch_all(&data.db) [INFO] [stdout] 42 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | let note = sqlx::query_as!(NoteModel, r#"SELECT * FROM notes WHERE id = ?"#, user_id) [INFO] [stdout] | ________________^ [INFO] [stdout] 96 | | .fetch_one(&data.db) [INFO] [stdout] 97 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:216:24 [INFO] [stdout] | [INFO] [stdout] 216 | let updated_note = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 217 | | NoteModel, [INFO] [stdout] 218 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 219 | | id.to_string() [INFO] [stdout] 220 | | ) [INFO] [stdout] 221 | | .fetch_one(&data.db) [INFO] [stdout] 222 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:241:24 [INFO] [stdout] | [INFO] [stdout] 241 | let query_result = sqlx::query!(r#"DELETE FROM notes WHERE id = ?"#, id.to_string()) [INFO] [stdout] | ________________________^ [INFO] [stdout] 242 | | .execute(&data.db) [INFO] [stdout] 243 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 35 | let notes = sqlx::query_as!( [INFO] [stdout] | _________________^ [INFO] [stdout] 36 | | NoteModel, [INFO] [stdout] 37 | | r#"SELECT * FROM notes ORDER by id LIMIT ? OFFSET ?"#, [INFO] [stdout] 38 | | limit as i32, [INFO] [stdout] ... | [INFO] [stdout] 41 | | .fetch_all(&data.db) [INFO] [stdout] 42 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:95:16 [INFO] [stdout] | [INFO] [stdout] 95 | let note = sqlx::query_as!(NoteModel, r#"SELECT * FROM notes WHERE id = ?"#, user_id) [INFO] [stdout] | ________________^ [INFO] [stdout] 96 | | .fetch_one(&data.db) [INFO] [stdout] 97 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:216:24 [INFO] [stdout] | [INFO] [stdout] 216 | let updated_note = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 217 | | NoteModel, [INFO] [stdout] 218 | | r#"SELECT * FROM notes WHERE id = ?"#, [INFO] [stdout] 219 | | id.to_string() [INFO] [stdout] 220 | | ) [INFO] [stdout] 221 | | .fetch_one(&data.db) [INFO] [stdout] 222 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/handler.rs:241:24 [INFO] [stdout] | [INFO] [stdout] 241 | let query_result = sqlx::query!(r#"DELETE FROM notes WHERE id = ?"#, id.to_string()) [INFO] [stdout] | ________________________^ [INFO] [stdout] 242 | | .execute(&data.db) [INFO] [stdout] 243 | | .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 `rust-axum-mysql` (bin "rust-axum-mysql") due to 10 previous errors [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 `rust-axum-mysql` (bin "rust-axum-mysql" test) due to 10 previous errors [INFO] running `Command { std: "docker" "inspect" "9ae8d2c1c1923aedf7f4068c974aeecb10387bab63792dfc52488150ce5f690a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ae8d2c1c1923aedf7f4068c974aeecb10387bab63792dfc52488150ce5f690a", kill_on_drop: false }` [INFO] [stdout] 9ae8d2c1c1923aedf7f4068c974aeecb10387bab63792dfc52488150ce5f690a