[INFO] cloning repository https://github.com/wmuth/SoundGoodDB [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wmuth/SoundGoodDB" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmuth%2FSoundGoodDB", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmuth%2FSoundGoodDB'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf2509cd37adbe58b598e7ccf97e9d475f2520fb [INFO] checking wmuth/SoundGoodDB against try#943e2200e35c3825486c4671b6cab0107a07f8c1 for pr-148952 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwmuth%2FSoundGoodDB" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-7-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/wmuth/SoundGoodDB [INFO] finished tweaking git repo https://github.com/wmuth/SoundGoodDB [INFO] tweaked toml for git repo https://github.com/wmuth/SoundGoodDB written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/wmuth/SoundGoodDB on toolchain 943e2200e35c3825486c4671b6cab0107a07f8c1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/wmuth/SoundGoodDB 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" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "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 bigdecimal v0.3.1 [INFO] [stderr] Downloaded time v0.3.35 [INFO] [stderr] Downloaded cc v1.0.92 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0316545daf3fce8fbf3ddaa34ddcb28c7de00627840810c2b2f092452ce45fd [INFO] running `Command { std: "docker" "start" "-a" "d0316545daf3fce8fbf3ddaa34ddcb28c7de00627840810c2b2f092452ce45fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0316545daf3fce8fbf3ddaa34ddcb28c7de00627840810c2b2f092452ce45fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0316545daf3fce8fbf3ddaa34ddcb28c7de00627840810c2b2f092452ce45fd", kill_on_drop: false }` [INFO] [stdout] d0316545daf3fce8fbf3ddaa34ddcb28c7de00627840810c2b2f092452ce45fd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+943e2200e35c3825486c4671b6cab0107a07f8c1" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 335eb5316698833d489c0b48d1d692e277910ad2227264ea7700a2826f68f1a3 [INFO] running `Command { std: "docker" "start" "-a" "335eb5316698833d489c0b48d1d692e277910ad2227264ea7700a2826f68f1a3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Compiling subtle v2.5.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling serde_json v1.0.115 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-bigint v0.4.4 [INFO] [stderr] Compiling syn v2.0.58 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling rustix v0.38.32 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling time v0.3.35 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling bigdecimal v0.3.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling home v0.5.9 [INFO] [stderr] Compiling fastrand v2.0.2 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking sgdb v1.0.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/db.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | sqlx::query_as!(Instrument, "SELECT * FROM instruments") [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/db.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let r = sqlx::query_as!( [INFO] [stdout] | _____________^ [INFO] [stdout] 147 | | InstrumentType, [INFO] [stdout] 148 | | "SELECT * FROM instrument_types WHERE instrument_type LIKE $1;", [INFO] [stdout] 149 | | t [INFO] [stdout] 150 | | ) [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/db.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | / sqlx::query_as!( [INFO] [stdout] 155 | | Instrument, [INFO] [stdout] 156 | | "SELECT * FROM instruments where instrument_type_id = $1;", [INFO] [stdout] 157 | | r.instrument_type_id [INFO] [stdout] 158 | | ) [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/db.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 177 | | "SELECT COUNT(*) AS count FROM rentings WHERE instrument_id = $1 AND end_date IS NULL;", [INFO] [stdout] 178 | | i_id [INFO] [stdout] 179 | | ) [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/db.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 202 | | "SELECT COUNT(*) AS count FROM rentings WHERE student_id = $1 AND end_date IS NULL;", [INFO] [stdout] 203 | | u_id [INFO] [stdout] 204 | | ) [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/db.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | / sqlx::query!( [INFO] [stdout] 232 | | "SELECT * FROM rentings WHERE student_id = $1 OR instrument_id = $2 FOR UPDATE;", [INFO] [stdout] 233 | | u, [INFO] [stdout] 234 | | i [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/db.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 256 | | "INSERT INTO rentings (student_id, instrument_id, start_date) VALUES ($1, $2, CURRENT_TIMESTAMP);", [INFO] [stdout] 257 | | u, [INFO] [stdout] 258 | | i [INFO] [stdout] 259 | | ) [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/db.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let r = sqlx::query_as!( [INFO] [stdout] | _____________^ [INFO] [stdout] 285 | | Renting, [INFO] [stdout] 286 | | "SELECT * FROM rentings WHERE student_id = $1 AND instrument_id = $2 AND end_date IS NULL;", [INFO] [stdout] 287 | | u, [INFO] [stdout] 288 | | i [INFO] [stdout] 289 | | ) [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/db.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 312 | | "UPDATE rentings SET end_date = CURRENT_TIMESTAMP WHERE rent_id = $1;", [INFO] [stdout] 313 | | id [INFO] [stdout] 314 | | ) [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/db.rs:332:13 [INFO] [stdout] | [INFO] [stdout] 332 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 333 | | "SELECT value FROM business_rules WHERE name = $1;", [INFO] [stdout] 334 | | MAX_RENTALS_KEY [INFO] [stdout] 335 | | ) [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/db.rs:128:5 [INFO] [stdout] | [INFO] [stdout] 128 | sqlx::query_as!(Instrument, "SELECT * FROM instruments") [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/db.rs:146:13 [INFO] [stdout] | [INFO] [stdout] 146 | let r = sqlx::query_as!( [INFO] [stdout] | _____________^ [INFO] [stdout] 147 | | InstrumentType, [INFO] [stdout] 148 | | "SELECT * FROM instrument_types WHERE instrument_type LIKE $1;", [INFO] [stdout] 149 | | t [INFO] [stdout] 150 | | ) [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/db.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | / sqlx::query_as!( [INFO] [stdout] 155 | | Instrument, [INFO] [stdout] 156 | | "SELECT * FROM instruments where instrument_type_id = $1;", [INFO] [stdout] 157 | | r.instrument_type_id [INFO] [stdout] 158 | | ) [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/db.rs:176:13 [INFO] [stdout] | [INFO] [stdout] 176 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 177 | | "SELECT COUNT(*) AS count FROM rentings WHERE instrument_id = $1 AND end_date IS NULL;", [INFO] [stdout] 178 | | i_id [INFO] [stdout] 179 | | ) [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/db.rs:201:13 [INFO] [stdout] | [INFO] [stdout] 201 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 202 | | "SELECT COUNT(*) AS count FROM rentings WHERE student_id = $1 AND end_date IS NULL;", [INFO] [stdout] 203 | | u_id [INFO] [stdout] 204 | | ) [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/db.rs:231:5 [INFO] [stdout] | [INFO] [stdout] 231 | / sqlx::query!( [INFO] [stdout] 232 | | "SELECT * FROM rentings WHERE student_id = $1 OR instrument_id = $2 FOR UPDATE;", [INFO] [stdout] 233 | | u, [INFO] [stdout] 234 | | i [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/db.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 256 | | "INSERT INTO rentings (student_id, instrument_id, start_date) VALUES ($1, $2, CURRENT_TIMESTAMP);", [INFO] [stdout] 257 | | u, [INFO] [stdout] 258 | | i [INFO] [stdout] 259 | | ) [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/db.rs:284:13 [INFO] [stdout] | [INFO] [stdout] 284 | let r = sqlx::query_as!( [INFO] [stdout] | _____________^ [INFO] [stdout] 285 | | Renting, [INFO] [stdout] 286 | | "SELECT * FROM rentings WHERE student_id = $1 AND instrument_id = $2 AND end_date IS NULL;", [INFO] [stdout] 287 | | u, [INFO] [stdout] 288 | | i [INFO] [stdout] 289 | | ) [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/db.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 312 | | "UPDATE rentings SET end_date = CURRENT_TIMESTAMP WHERE rent_id = $1;", [INFO] [stdout] 313 | | id [INFO] [stdout] 314 | | ) [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/db.rs:332:13 [INFO] [stdout] | [INFO] [stdout] 332 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 333 | | "SELECT value FROM business_rules WHERE name = $1;", [INFO] [stdout] 334 | | MAX_RENTALS_KEY [INFO] [stdout] 335 | | ) [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/db.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 256 | | "INSERT INTO rentings (student_id, instrument_id, start_date) VALUES ($1, $2, CURRENT_TIMESTAMP);", [INFO] [stdout] 257 | | u, [INFO] [stdout] 258 | | i [INFO] [stdout] 259 | | ) [INFO] [stdout] 260 | | .execute(&mut **tx) [INFO] [stdout] 261 | | .await? [INFO] [stdout] | |___________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/db.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 312 | | "UPDATE rentings SET end_date = CURRENT_TIMESTAMP WHERE rent_id = $1;", [INFO] [stdout] 313 | | id [INFO] [stdout] ... | [INFO] [stdout] 316 | | .await? [INFO] [stdout] | |___________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/db.rs:255:13 [INFO] [stdout] | [INFO] [stdout] 255 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 256 | | "INSERT INTO rentings (student_id, instrument_id, start_date) VALUES ($1, $2, CURRENT_TIMESTAMP);", [INFO] [stdout] 257 | | u, [INFO] [stdout] 258 | | i [INFO] [stdout] 259 | | ) [INFO] [stdout] 260 | | .execute(&mut **tx) [INFO] [stdout] 261 | | .await? [INFO] [stdout] | |___________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/db.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | let r = sqlx::query!( [INFO] [stdout] | _____________^ [INFO] [stdout] 312 | | "UPDATE rentings SET end_date = CURRENT_TIMESTAMP WHERE rent_id = $1;", [INFO] [stdout] 313 | | id [INFO] [stdout] ... | [INFO] [stdout] 316 | | .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 `sgdb` (bin "sgdb") due to 12 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 `sgdb` (bin "sgdb" test) due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "335eb5316698833d489c0b48d1d692e277910ad2227264ea7700a2826f68f1a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "335eb5316698833d489c0b48d1d692e277910ad2227264ea7700a2826f68f1a3", kill_on_drop: false }` [INFO] [stdout] 335eb5316698833d489c0b48d1d692e277910ad2227264ea7700a2826f68f1a3