[INFO] cloning repository https://github.com/amrit713/backend_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amrit713/backend_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famrit713%2Fbackend_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famrit713%2Fbackend_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a67a9b328a2d99e4ea6ac008eb32fa0ca263ae9 [INFO] checking amrit713/backend_rust/5a67a9b328a2d99e4ea6ac008eb32fa0ca263ae9 against master#31a9463c6e2794a59ce57a8f37abc6966afc2a58 for pr-156807 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famrit713%2Fbackend_rust" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/amrit713/backend_rust [INFO] finished tweaking git repo https://github.com/amrit713/backend_rust [INFO] tweaked toml for git repo https://github.com/amrit713/backend_rust written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/amrit713/backend_rust on toolchain 31a9463c6e2794a59ce57a8f37abc6966afc2a58 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+31a9463c6e2794a59ce57a8f37abc6966afc2a58" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/amrit713/backend_rust 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" "+31a9463c6e2794a59ce57a8f37abc6966afc2a58" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded atoi v2.0.0 [INFO] [stderr] Downloaded hashlink v0.10.0 [INFO] [stderr] Downloaded etcetera v0.8.0 [INFO] [stderr] Downloaded wasite v0.1.0 [INFO] [stderr] Downloaded sqlx-macros v0.8.6 [INFO] [stderr] Downloaded whoami v1.6.1 [INFO] [stderr] Downloaded stringprep v0.1.5 [INFO] [stderr] Downloaded sqlx-macros-core v0.8.6 [INFO] [stderr] Downloaded sqlx-sqlite v0.8.6 [INFO] [stderr] Downloaded dotenvy v0.15.7 [INFO] [stderr] Downloaded sqlx-core v0.8.6 [INFO] [stderr] Downloaded utoipa v5.4.0 [INFO] [stderr] Downloaded sqlx-mysql v0.8.6 [INFO] [stderr] Downloaded sqlx-postgres v0.8.6 [INFO] [stderr] Downloaded sqlx v0.8.6 [INFO] [stderr] Downloaded utoipa-gen v5.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+31a9463c6e2794a59ce57a8f37abc6966afc2a58" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7adefd579711aabad4ea35f35ee9f07f3e01cc0fd0351aa5911340bf2b9059fe [INFO] running `Command { std: "docker" "start" "-a" "7adefd579711aabad4ea35f35ee9f07f3e01cc0fd0351aa5911340bf2b9059fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7adefd579711aabad4ea35f35ee9f07f3e01cc0fd0351aa5911340bf2b9059fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7adefd579711aabad4ea35f35ee9f07f3e01cc0fd0351aa5911340bf2b9059fe", kill_on_drop: false }` [INFO] [stdout] 7adefd579711aabad4ea35f35ee9f07f3e01cc0fd0351aa5911340bf2b9059fe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+31a9463c6e2794a59ce57a8f37abc6966afc2a58" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8df10f45e5db438dfbf75634d358bd7dcd054df310a1940b40f6ba4207c9c500 [INFO] running `Command { std: "docker" "start" "-a" "8df10f45e5db438dfbf75634d358bd7dcd054df310a1940b40f6ba4207c9c500", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.183 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling find-msvc-tools v0.1.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling zerocopy v0.8.42 [INFO] [stderr] Compiling cc v1.2.56 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling serde_json v1.0.149 [INFO] [stderr] Compiling litemap v0.8.1 [INFO] [stderr] Compiling writeable v0.6.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustls v0.23.37 [INFO] [stderr] Compiling pin-project-lite v0.2.17 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling rustls-pki-types v1.14.0 [INFO] [stderr] Compiling getrandom v0.2.17 [INFO] [stderr] Checking errno v0.3.14 [INFO] [stderr] Checking signal-hook-registry v1.4.8 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Checking mio v1.1.1 [INFO] [stderr] Checking socket2 v0.6.3 [INFO] [stderr] Compiling icu_properties_data v2.1.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling icu_normalizer_data v2.1.1 [INFO] [stderr] Checking futures-sink v0.3.32 [INFO] [stderr] Checking once_cell v1.21.4 [INFO] [stderr] Compiling futures-core v0.3.32 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling lock_api v0.4.14 [INFO] [stderr] Checking tracing-core v0.1.36 [INFO] [stderr] Compiling bytes v1.11.1 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling memchr v2.8.0 [INFO] [stderr] Checking log v0.4.29 [INFO] [stderr] Compiling tokio v1.50.0 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling webpki-roots v1.0.6 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling slab v0.4.12 [INFO] [stderr] Compiling futures-io v0.3.32 [INFO] [stderr] Compiling parking v2.2.1 [INFO] [stderr] Compiling futures-task v0.3.32 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling itoa v1.0.17 [INFO] [stderr] Compiling iana-time-zone v0.1.65 [INFO] [stderr] Compiling futures-util v0.3.32 [INFO] [stderr] Compiling chrono v0.4.44 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling rustls-webpki v0.103.9 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.1 [INFO] [stderr] Compiling zerovec-derive v0.11.2 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling tokio-macros v2.6.1 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling thiserror-impl v2.0.18 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling yoke v0.8.1 [INFO] [stderr] Compiling zerotrie v0.2.3 [INFO] [stderr] Compiling zerovec v0.11.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling tokio-stream v0.1.18 [INFO] [stderr] Checking tinystr v0.8.2 [INFO] [stderr] Checking potential_utf v0.1.4 [INFO] [stderr] Checking tracing v0.1.44 [INFO] [stderr] Checking icu_collections v2.1.1 [INFO] [stderr] Checking icu_locale_core v2.1.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling event-listener v5.4.1 [INFO] [stderr] Compiling thiserror v2.0.18 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Checking icu_provider v2.1.1 [INFO] [stderr] Compiling webpki-roots v0.26.11 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Checking icu_properties v2.1.2 [INFO] [stderr] Checking futures-channel v0.3.32 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unicode-properties v0.1.4 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling icu_normalizer v2.1.1 [INFO] [stderr] Checking parking_lot_core v0.9.12 [INFO] [stderr] Checking parking_lot v0.12.5 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling uuid v1.22.0 [INFO] [stderr] Checking indexmap v2.13.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling url v2.5.8 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Checking getrandom v0.4.2 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling bitflags v2.11.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling sqlx-core v0.8.6 [INFO] [stderr] Compiling anyhow v1.0.102 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking ryu v1.0.23 [INFO] [stderr] Checking axum-core v0.5.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.20 [INFO] [stderr] Compiling utoipa-gen v5.4.0 [INFO] [stderr] Checking hyper v1.8.1 [INFO] [stderr] Checking tower v0.5.3 [INFO] [stderr] Checking hyper-util v0.1.20 [INFO] [stderr] Compiling sqlx-postgres v0.8.6 [INFO] [stderr] Checking axum v0.8.8 [INFO] [stderr] Checking utoipa v5.4.0 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking domain v0.1.0 (/opt/rustwide/workdir/crates/domain) [INFO] [stderr] Checking shared v0.1.0 (/opt/rustwide/workdir/crates/shared) [INFO] [stderr] Checking infra v0.1.0 (/opt/rustwide/workdir/crates/infra) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | let new_category = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 21 | | Category, [INFO] [stdout] 22 | | r#" [INFO] [stdout] 23 | | INSERT INTO categories (id, name, created_at, updated_at) [INFO] [stdout] ... | [INFO] [stdout] 30 | | category.updated_at [INFO] [stdout] 31 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let categories = sqlx::query_as!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 40 | | Category, [INFO] [stdout] 41 | | "SELECT id, name, created_at,updated_at FROM categories ORDER BY name ASC" [INFO] [stdout] 42 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | let category = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 51 | | Category, [INFO] [stdout] 52 | | "SELECT id, name, created_at, updated_at FROM categories WHERE id = $1", [INFO] [stdout] 53 | | id [INFO] [stdout] 54 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | let updated = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 63 | | Category, [INFO] [stdout] 64 | | r#" [INFO] [stdout] 65 | | UPDATE categories [INFO] [stdout] ... | [INFO] [stdout] 71 | | category.id [INFO] [stdout] 72 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | let result = sqlx::query!("DELETE FROM categories WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | / sqlx::query!( [INFO] [stdout] 23 | | r#" [INFO] [stdout] 24 | | INSERT INTO programs (id, title, description, duration, difficulty, category_id, created_at, updated_at) [INFO] [stdout] 25 | | VALUES ($1, $2, $3, $4, $5, $6, $7, $8) [INFO] [stdout] ... | [INFO] [stdout] 34 | | program.updated_at [INFO] [stdout] 35 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | let programs = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 44 | | Program, [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 56 | | "# [INFO] [stdout] 57 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let program = sqlx::query_as!( [INFO] [stdout] | _______________^ [INFO] [stdout] 66 | | Program, [INFO] [stdout] 67 | | r#" [INFO] [stdout] 68 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 80 | | id [INFO] [stdout] 81 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | let updated_program = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 90 | | Program, [INFO] [stdout] 91 | | r#" [INFO] [stdout] 92 | | UPDATE programs [INFO] [stdout] ... | [INFO] [stdout] 102 | | program.id [INFO] [stdout] 103 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 113 | | "DELETE FROM programs WHERE id = $1", [INFO] [stdout] 114 | | id [INFO] [stdout] 115 | | ) [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: `Difficulty` [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | use domain::program::entity::{Program,Difficulty}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | let new_category = sqlx::query_as!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 21 | | Category, [INFO] [stdout] 22 | | r#" [INFO] [stdout] 23 | | INSERT INTO categories (id, name, created_at, updated_at) [INFO] [stdout] ... | [INFO] [stdout] 30 | | category.updated_at [INFO] [stdout] 31 | | ) [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] [stderr] error: could not compile `infra` (lib) due to 10 previous errors; 1 warning emitted [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:39:26 [INFO] [stdout] | [INFO] [stdout] 39 | let categories = sqlx::query_as!( [INFO] [stdout] | __________________________^ [INFO] [stdout] 40 | | Category, [INFO] [stdout] 41 | | "SELECT id, name, created_at,updated_at FROM categories ORDER BY name ASC" [INFO] [stdout] 42 | | ) [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | let category = sqlx::query_as!( [INFO] [stdout] | ________________________^ [INFO] [stdout] 51 | | Category, [INFO] [stdout] 52 | | "SELECT id, name, created_at, updated_at FROM categories WHERE id = $1", [INFO] [stdout] 53 | | id [INFO] [stdout] 54 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 62 | let updated = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 63 | | Category, [INFO] [stdout] 64 | | r#" [INFO] [stdout] 65 | | UPDATE categories [INFO] [stdout] ... | [INFO] [stdout] 71 | | category.id [INFO] [stdout] 72 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/category_repo.rs:80:22 [INFO] [stdout] | [INFO] [stdout] 80 | let result = sqlx::query!("DELETE FROM categories WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | / sqlx::query!( [INFO] [stdout] 23 | | r#" [INFO] [stdout] 24 | | INSERT INTO programs (id, title, description, duration, difficulty, category_id, created_at, updated_at) [INFO] [stdout] 25 | | VALUES ($1, $2, $3, $4, $5, $6, $7, $8) [INFO] [stdout] ... | [INFO] [stdout] 34 | | program.updated_at [INFO] [stdout] 35 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:43:20 [INFO] [stdout] | [INFO] [stdout] 43 | let programs = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 44 | | Program, [INFO] [stdout] 45 | | r#" [INFO] [stdout] 46 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 56 | | "# [INFO] [stdout] 57 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 65 | let program = sqlx::query_as!( [INFO] [stdout] | _______________^ [INFO] [stdout] 66 | | Program, [INFO] [stdout] 67 | | r#" [INFO] [stdout] 68 | | SELECT [INFO] [stdout] ... | [INFO] [stdout] 80 | | id [INFO] [stdout] 81 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:89:23 [INFO] [stdout] | [INFO] [stdout] 89 | let updated_program = sqlx::query_as!( [INFO] [stdout] | _______________________^ [INFO] [stdout] 90 | | Program, [INFO] [stdout] 91 | | r#" [INFO] [stdout] 92 | | UPDATE programs [INFO] [stdout] ... | [INFO] [stdout] 102 | | program.id [INFO] [stdout] 103 | | ) [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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:112:22 [INFO] [stdout] | [INFO] [stdout] 112 | let result = sqlx::query!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 113 | | "DELETE FROM programs WHERE id = $1", [INFO] [stdout] 114 | | id [INFO] [stdout] 115 | | ) [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: `Difficulty` [INFO] [stdout] --> crates/infra/src/repo/program_repo.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | use domain::program::entity::{Program,Difficulty}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `infra` (lib test) due to 10 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8df10f45e5db438dfbf75634d358bd7dcd054df310a1940b40f6ba4207c9c500", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8df10f45e5db438dfbf75634d358bd7dcd054df310a1940b40f6ba4207c9c500", kill_on_drop: false }` [INFO] [stdout] 8df10f45e5db438dfbf75634d358bd7dcd054df310a1940b40f6ba4207c9c500