[INFO] cloning repository https://github.com/MishaPapoyan/first_rust_simple_todo_project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MishaPapoyan/first_rust_simple_todo_project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMishaPapoyan%2Ffirst_rust_simple_todo_project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMishaPapoyan%2Ffirst_rust_simple_todo_project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2ec35079e54719e700be374a70effdc2fa522891 [INFO] checking MishaPapoyan/first_rust_simple_todo_project/2ec35079e54719e700be374a70effdc2fa522891 against master#91775dbec9771aa0c1b9ebe268eb5bd271e79a7a for pr-139087-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMishaPapoyan%2Ffirst_rust_simple_todo_project" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MishaPapoyan/first_rust_simple_todo_project [INFO] finished tweaking git repo https://github.com/MishaPapoyan/first_rust_simple_todo_project [INFO] tweaked toml for git repo https://github.com/MishaPapoyan/first_rust_simple_todo_project written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MishaPapoyan/first_rust_simple_todo_project on toolchain 91775dbec9771aa0c1b9ebe268eb5bd271e79a7a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91775dbec9771aa0c1b9ebe268eb5bd271e79a7a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MishaPapoyan/first_rust_simple_todo_project 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" "+91775dbec9771aa0c1b9ebe268eb5bd271e79a7a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded watchexec v1.17.2 [INFO] [stderr] Downloaded derive_builder v0.10.2 [INFO] [stderr] Downloaded windows-version v0.1.1 [INFO] [stderr] Downloaded mac-notification-sys v0.6.2 [INFO] [stderr] Downloaded derive_builder_core v0.10.2 [INFO] [stderr] Downloaded stderrlog v0.6.0 [INFO] [stderr] Downloaded tauri-winrt-notification v0.2.1 [INFO] [stderr] Downloaded notify-rust v4.11.3 [INFO] [stderr] Downloaded command-group v1.0.8 [INFO] [stderr] Downloaded cargo-watch v8.5.3 [INFO] [stderr] Downloaded nom v5.1.3 [INFO] [stderr] Downloaded clearscreen v1.0.11 [INFO] [stderr] Downloaded terminfo v0.7.5 [INFO] [stderr] Downloaded cc v1.1.24 [INFO] [stderr] Downloaded sqlformat v0.2.6 [INFO] [stderr] Downloaded derive_builder_macro v0.10.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+91775dbec9771aa0c1b9ebe268eb5bd271e79a7a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4d9e534943ed5311a4b8448f9dbfb5dd35ff112ec89ed5d7c6f616acaad29758 [INFO] running `Command { std: "docker" "start" "-a" "4d9e534943ed5311a4b8448f9dbfb5dd35ff112ec89ed5d7c6f616acaad29758", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4d9e534943ed5311a4b8448f9dbfb5dd35ff112ec89ed5d7c6f616acaad29758", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d9e534943ed5311a4b8448f9dbfb5dd35ff112ec89ed5d7c6f616acaad29758", kill_on_drop: false }` [INFO] [stdout] 4d9e534943ed5311a4b8448f9dbfb5dd35ff112ec89ed5d7c6f616acaad29758 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+91775dbec9771aa0c1b9ebe268eb5bd271e79a7a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3e50ee395a3a638aca1c4f85b343ad8ac51c951ec7aa635dce10e833b5f8dc4 [INFO] running `Command { std: "docker" "start" "-a" "c3e50ee395a3a638aca1c4f85b343ad8ac51c951ec7aa635dce10e833b5f8dc4", kill_on_drop: false }` [INFO] [stderr] warning: todo_backend v0.1.0 (/opt/rustwide/workdir) ignoring invalid dependency `cargo-watch` which is missing a lib target [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking once_cell v1.20.1 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling bytes v1.7.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling cc v1.1.24 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Checking futures-util v0.3.30 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling tokio-stream v0.1.16 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Compiling actix-macros v0.2.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling whoami v1.5.2 [INFO] [stderr] Compiling fastrand v2.1.1 [INFO] [stderr] Checking miniz_oxide v0.8.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling tempfile v3.13.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking actix-rt v2.10.0 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling bytestring v1.3.1 [INFO] [stderr] Compiling actix-router v0.5.3 [INFO] [stderr] Compiling derive_more v0.99.18 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Checking actix-codec v0.5.2 [INFO] [stderr] Checking regex v1.11.0 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking sha1 v0.10.6 [INFO] [stderr] Checking home v0.5.9 [INFO] [stderr] Compiling actix-web-codegen v4.3.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking actix-server v2.5.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking impl-more v0.1.6 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Checking actix-http v3.9.0 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking actix-web v4.9.0 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking todo_backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 135 | | r#"INSERT INTO "Users" (name, password) VALUES ($1, $2) RETURNING id"#, [INFO] [stdout] 136 | | new_user.name, [INFO] [stdout] 137 | | new_user.password, [INFO] [stdout] 138 | | ) [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] --> src/main.rs:144:23 [INFO] [stdout] | [INFO] [stdout] 144 | let row = sqlx::query!("SELECT id, name FROM \"Users\" WHERE id = $1", user_id) // Only select the fields you need [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] --> src/main.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | let existing_user = sqlx::query!("SELECT * FROM \"Users\" WHERE id = $1", 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` (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] --> src/main.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let query = sqlx::query!("DELETE FROM \"Users\" WHERE id = $1", 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` (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] --> src/main.rs:212:25 [INFO] [stdout] | [INFO] [stdout] 212 | let existing_user = sqlx::query_as!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 213 | | User, [INFO] [stdout] 214 | | "SELECT id, name, password FROM \"Users\" WHERE id = $1", [INFO] [stdout] 215 | | user_id [INFO] [stdout] 216 | | ) [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] --> src/main.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 231 | | "UPDATE \"Users\" SET name = COALESCE($1, name), password = COALESCE($2, password) WHERE id = $3", [INFO] [stdout] 232 | | user_data.name.as_deref(), // Use as_deref to convert Option to Option<&str> [INFO] [stdout] 233 | | user_data.password.as_deref(), [INFO] [stdout] 234 | | user_id [INFO] [stdout] 235 | | ) [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] --> src/main.rs:249:24 [INFO] [stdout] | [INFO] [stdout] 249 | let updated_user = sqlx::query_as!(User, "SELECT id, name, password FROM \"Users\" WHERE id = $1", 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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:270:18 [INFO] [stdout] | [INFO] [stdout] 270 | let result = sqlx::query!("DELETE FROM todos WHERE id = $1", todo_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] --> src/main.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 287 | | r#"INSERT INTO todos (title, completed, description) VALUES ($1, $2, $3) RETURNING id, title, completed, description"#, [INFO] [stdout] 288 | | new_todo.title.clone().unwrap_or_else(|| "Untitled".to_string()), [INFO] [stdout] 289 | | new_todo.completed.unwrap_or(false), [INFO] [stdout] 290 | | new_todo.description.clone().unwrap_or_else(|| "".to_string()), [INFO] [stdout] 291 | | ) [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: `actix_web::dev::Path` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::dev::Path; [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: `actix_web::http::header::q` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::http::header::q; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgRow` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sqlx::postgres::PgRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] --> src/main.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 135 | | r#"INSERT INTO "Users" (name, password) VALUES ($1, $2) RETURNING id"#, [INFO] [stdout] 136 | | new_user.name, [INFO] [stdout] 137 | | new_user.password, [INFO] [stdout] 138 | | ) [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] --> src/main.rs:144:23 [INFO] [stdout] | [INFO] [stdout] 144 | let row = sqlx::query!("SELECT id, name FROM \"Users\" WHERE id = $1", user_id) // Only select the fields you need [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] --> src/main.rs:173:25 [INFO] [stdout] | [INFO] [stdout] 173 | let existing_user = sqlx::query!("SELECT * FROM \"Users\" WHERE id = $1", 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` (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] --> src/main.rs:180:25 [INFO] [stdout] | [INFO] [stdout] 180 | let query = sqlx::query!("DELETE FROM \"Users\" WHERE id = $1", 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` (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] --> src/main.rs:212:25 [INFO] [stdout] | [INFO] [stdout] 212 | let existing_user = sqlx::query_as!( [INFO] [stdout] | _________________________^ [INFO] [stdout] 213 | | User, [INFO] [stdout] 214 | | "SELECT id, name, password FROM \"Users\" WHERE id = $1", [INFO] [stdout] 215 | | user_id [INFO] [stdout] 216 | | ) [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] --> src/main.rs:230:17 [INFO] [stdout] | [INFO] [stdout] 230 | let query = sqlx::query!( [INFO] [stdout] | _________________^ [INFO] [stdout] 231 | | "UPDATE \"Users\" SET name = COALESCE($1, name), password = COALESCE($2, password) WHERE id = $3", [INFO] [stdout] 232 | | user_data.name.as_deref(), // Use as_deref to convert Option to Option<&str> [INFO] [stdout] 233 | | user_data.password.as_deref(), [INFO] [stdout] 234 | | user_id [INFO] [stdout] 235 | | ) [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] --> src/main.rs:249:24 [INFO] [stdout] | [INFO] [stdout] 249 | let updated_user = sqlx::query_as!(User, "SELECT id, name, password FROM \"Users\" WHERE id = $1", 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: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/main.rs:270:18 [INFO] [stdout] | [INFO] [stdout] 270 | let result = sqlx::query!("DELETE FROM todos WHERE id = $1", todo_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] --> src/main.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | let row = sqlx::query!( [INFO] [stdout] | _______________^ [INFO] [stdout] 287 | | r#"INSERT INTO todos (title, completed, description) VALUES ($1, $2, $3) RETURNING id, title, completed, description"#, [INFO] [stdout] 288 | | new_todo.title.clone().unwrap_or_else(|| "Untitled".to_string()), [INFO] [stdout] 289 | | new_todo.completed.unwrap_or(false), [INFO] [stdout] 290 | | new_todo.description.clone().unwrap_or_else(|| "".to_string()), [INFO] [stdout] 291 | | ) [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: `actix_web::dev::Path` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use actix_web::dev::Path; [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: `actix_web::http::header::q` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use actix_web::http::header::q; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json::json` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use serde_json::json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sqlx::postgres::PgRow` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sqlx::postgres::PgRow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `todo_backend` (bin "todo_backend" test) due to 9 previous errors; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `todo_backend` (bin "todo_backend") due to 9 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c3e50ee395a3a638aca1c4f85b343ad8ac51c951ec7aa635dce10e833b5f8dc4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3e50ee395a3a638aca1c4f85b343ad8ac51c951ec7aa635dce10e833b5f8dc4", kill_on_drop: false }` [INFO] [stdout] c3e50ee395a3a638aca1c4f85b343ad8ac51c951ec7aa635dce10e833b5f8dc4