[INFO] cloning repository https://github.com/joisandresky/rust-auth-micro [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/joisandresky/rust-auth-micro" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoisandresky%2Frust-auth-micro", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoisandresky%2Frust-auth-micro'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dd1d9ad57867d8cc9c092c064f71f180276e49d0 [INFO] checking joisandresky/rust-auth-micro/dd1d9ad57867d8cc9c092c064f71f180276e49d0 against master#8b6b15b877fbceb1ee5d9a5a4746e7515901574a for pr-147294 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjoisandresky%2Frust-auth-micro" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/joisandresky/rust-auth-micro [INFO] finished tweaking git repo https://github.com/joisandresky/rust-auth-micro [INFO] tweaked toml for git repo https://github.com/joisandresky/rust-auth-micro written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/joisandresky/rust-auth-micro on toolchain 8b6b15b877fbceb1ee5d9a5a4746e7515901574a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/joisandresky/rust-auth-micro 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" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "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 proc-macro2 v1.0.83 [INFO] [stderr] Downloaded prost-build v0.12.6 [INFO] [stderr] Downloaded tonic-middleware v0.1.4 [INFO] [stderr] Downloaded envconfig_derive v0.10.0 [INFO] [stderr] Downloaded envconfig v0.10.0 [INFO] [stderr] Downloaded tonic-build v0.11.0 [INFO] [stderr] Downloaded iso8601 v0.6.1 [INFO] [stderr] Downloaded tonic-reflection v0.11.0 [INFO] [stderr] Downloaded axum-prometheus v0.6.1 [INFO] [stderr] Downloaded platforms v3.4.0 [INFO] [stderr] Downloaded axum-extra v0.9.3 [INFO] [stderr] Downloaded hyper-util v0.1.4 [INFO] [stderr] Downloaded metrics v0.22.3 [INFO] [stderr] Downloaded redis v0.25.4 [INFO] [stderr] Downloaded curve25519-dalek v4.1.2 [INFO] [stderr] Downloaded rusty_paseto v0.7.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa44c1606097bcc9dc32447d55e5ec8e5b45fd687c3852e01d9b9144b7fb6807 [INFO] running `Command { std: "docker" "start" "-a" "fa44c1606097bcc9dc32447d55e5ec8e5b45fd687c3852e01d9b9144b7fb6807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa44c1606097bcc9dc32447d55e5ec8e5b45fd687c3852e01d9b9144b7fb6807", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa44c1606097bcc9dc32447d55e5ec8e5b45fd687c3852e01d9b9144b7fb6807", kill_on_drop: false }` [INFO] [stdout] fa44c1606097bcc9dc32447d55e5ec8e5b45fd687c3852e01d9b9144b7fb6807 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+8b6b15b877fbceb1ee5d9a5a4746e7515901574a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 14cdb1cff33f4d349f5072f6965bc0831e96bb6e12ce2bcdbd6c4876e5ee02bb [INFO] running `Command { std: "docker" "start" "-a" "14cdb1cff33f4d349f5072f6965bc0831e96bb6e12ce2bcdbd6c4876e5ee02bb", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.83 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking parking_lot_core v0.9.9 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.1 [INFO] [stderr] Compiling serde v1.0.202 [INFO] [stderr] Compiling cc v1.0.98 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking zerocopy v0.7.34 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking subtle v2.5.0 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling bytes v1.6.0 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Checking indexmap v2.2.6 [INFO] [stderr] Compiling openssl-sys v0.9.102 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Checking unicode-normalization v0.1.23 [INFO] [stderr] Checking unicode-bidi v0.3.15 [INFO] [stderr] Compiling fastrand v2.1.0 [INFO] [stderr] Compiling unicode-segmentation v1.11.0 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling memchr v2.7.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling regex-syntax v0.8.3 [INFO] [stderr] Compiling iana-time-zone v0.1.60 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling prettyplease v0.2.20 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Checking url v2.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.11 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling regex-automata v0.4.6 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling serde_derive v1.0.202 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling pin-project-internal v1.1.5 [INFO] [stderr] Compiling tokio-stream v0.1.15 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Checking pin-project v1.1.5 [INFO] [stderr] Compiling axum v0.6.20 [INFO] [stderr] Compiling axum-core v0.4.3 [INFO] [stderr] Compiling finl_unicode v1.2.0 [INFO] [stderr] Compiling platforms v3.4.0 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling darling_core v0.20.9 [INFO] [stderr] Compiling stringprep v0.1.4 [INFO] [stderr] Compiling curve25519-dalek v4.1.2 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking tokio-io-timeout v1.2.0 [INFO] [stderr] Checking hyper v1.3.1 [INFO] [stderr] Compiling regex v1.10.4 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking either v1.12.0 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Checking raw-cpuid v11.0.2 [INFO] [stderr] Compiling axum v0.7.5 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling whoami v1.5.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Checking sqlformat v0.2.3 [INFO] [stderr] Checking quanta v0.12.3 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking zeroize v1.7.0 [INFO] [stderr] Checking hyper-util v0.1.4 [INFO] [stderr] Compiling prost-derive v0.12.6 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.16 [INFO] [stderr] Compiling darling_macro v0.20.9 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling ring v0.17.8 [INFO] [stderr] Checking hyper v0.14.29 [INFO] [stderr] Checking metrics v0.22.3 [INFO] [stderr] Checking inout v0.1.3 [INFO] [stderr] Compiling prost v0.12.6 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling prost-types v0.12.6 [INFO] [stderr] Checking sketches-ddsketch v0.2.2 [INFO] [stderr] Checking signature v2.2.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking metrics-util v0.16.3 [INFO] [stderr] Checking ed25519 v2.2.3 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling darling v0.20.9 [INFO] [stderr] Checking futures-executor v0.3.30 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Compiling prost-build v0.12.6 [INFO] [stderr] Checking typeid v1.0.0 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking ed25519-dalek v2.1.1 [INFO] [stderr] Compiling tonic-build v0.11.0 [INFO] [stderr] Checking sqlx-core v0.7.4 [INFO] [stderr] Checking erased-serde v0.4.5 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking futures v0.3.30 [INFO] [stderr] Compiling validator_derive v0.18.1 [INFO] [stderr] Checking chacha20 v0.9.1 [INFO] [stderr] Checking hyper-timeout v0.4.1 [INFO] [stderr] Checking metrics-exporter-prometheus v0.13.1 [INFO] [stderr] Compiling rust-auth-micro v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking combine v4.6.7 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Compiling envconfig_derive v0.10.0 [INFO] [stderr] Checking iso8601 v0.6.1 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking sha1_smol v1.0.0 [INFO] [stderr] Checking rusty_paseto v0.7.1 [INFO] [stderr] Checking tracing-subscriber v0.3.18 [INFO] [stderr] Checking sqlx-postgres v0.7.4 [INFO] [stderr] Checking envconfig v0.10.0 [INFO] [stderr] Checking validator v0.18.1 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Checking uuid v1.8.0 [INFO] [stderr] Checking axum-prometheus v0.6.1 [INFO] [stderr] Checking axum-extra v0.9.3 [INFO] [stderr] Checking tonic v0.11.0 [INFO] [stderr] Checking tonic-reflection v0.11.0 [INFO] [stderr] Checking tonic-middleware v0.1.4 [INFO] [stderr] Checking redis v0.25.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] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/infrastructure/data/repositories/role_repository.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | let role = sqlx::query_as!(Role, "SELECT * FROM roles WHERE name = $1 AND deleted_at IS NULL", name) [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/infrastructure/data/repositories/role_repository.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let roles = sqlx::query_as!(Role, "SELECT * FROM roles WHERE deleted_at IS NULL") [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/infrastructure/data/repositories/role_repository.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let role = sqlx::query_as!(Role, "SELECT * FROM roles WHERE id = $1 AND deleted_at IS NULL", 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/infrastructure/data/repositories/role_repository.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | ... = sqlx::query_as!(Role, "INSERT INTO roles (id, name, description, created_at, updated_at) VALUES ($1, $2, $3, $4, $5) RETURNING *", entity.id, entity.name, entity.description, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/role_repository.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | ... = sqlx::query_as!(Role, "UPDATE roles SET name = $1, description = $2, updated_at = $3 WHERE id = $4 RETURNING *", entity.name, entity.description, now, entity.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/infrastructure/data/repositories/role_repository.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | sqlx::query!("UPDATE roles SET deleted_at = $1 WHERE id = $2", now, 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/infrastructure/data/repositories/user_repository.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [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/infrastructure/data/repositories/user_repository.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [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/infrastructure/data/repositories/user_repository.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | ... let rows = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 38 | | ... r#" [INFO] [stdout] 39 | | ... SELECT [INFO] [stdout] 40 | | ... u.id as user_id, u.email, u.password, u.email_verified_at, u.last_login, u.is_active, u.created_at as user_created_at, u.up... [INFO] [stdout] ... | [INFO] [stdout] 47 | | ... id [INFO] [stdout] 48 | | ... ) [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/infrastructure/data/repositories/user_repository.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | ... let rows = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 87 | | ... r#" [INFO] [stdout] 88 | | ... SELECT [INFO] [stdout] 89 | | ... u.id as user_id, u.email, u.password, u.email_verified_at, u.last_login, u.is_active, u.created_at as user_created_at, u.up... [INFO] [stdout] ... | [INFO] [stdout] 96 | | ... email [INFO] [stdout] 97 | | ... ) [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/infrastructure/data/repositories/user_repository.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | ... = sqlx::query_as!(User, "INSERT INTO users (id, email, password, email_verified_at, last_login, is_active, created_at, updated_at) VALUES ($1... [INFO] [stdout] | _______^ [INFO] [stdout] 136 | | ...ity.id, entity.email, entity.password, entity.email_verified_at, entity.last_login, entity.is_active, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_repository.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | let users = sqlx::query_as!(User, "SELECT * FROM users WHERE deleted_at IS NULL") [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/infrastructure/data/repositories/user_repository.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE id = $1 AND deleted_at IS NULL", 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/infrastructure/data/repositories/user_repository.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | ... = sqlx::query_as!(User, "INSERT INTO users (id, email, password, email_verified_at, last_login, is_active, created_at, updated_at) VALUES ($1... [INFO] [stdout] | _______^ [INFO] [stdout] 164 | | ...ity.id, entity.email, entity.password, entity.email_verified_at, entity.last_login, entity.is_active, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_repository.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | ... let user = sqlx::query_as!(User, "UPDATE users SET email = $1, password = $2, email_verified_at = $3, last_login = $4, is_active = ... [INFO] [stdout] | __________________^ [INFO] [stdout] 174 | | ... RETURNING * ", entity.email, entity.password, entity.email_verified_at, entity.last_login, entity.is_active, now, entity.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/infrastructure/data/repositories/user_repository.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | let _ = sqlx::query!("UPDATE users SET deleted_at = $1 WHERE id = $2", now, 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/infrastructure/data/repositories/user_role_repository.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | let user_role = sqlx::query_as!(UserRole, "SELECT * FROM user_roles WHERE user_id = $1 AND role_id = $2", user_id, role_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/infrastructure/data/repositories/user_role_repository.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | ... = sqlx::query_as!(UserRole, "INSERT INTO user_roles (id, user_id, role_id, created_at, updated_at) VALUES ($1, $2, $3, $4, $5) RETURNING *", entity.id, entity.user_id, entity.role_id, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_role_repository.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | ..._role = sqlx::query_as!(UserRole, "DELETE FROM user_roles WHERE user_id = $1 AND role_id = $2 RETURNING *", user_id, role_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/infrastructure/data/repositories/user_role_repository.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | ... = sqlx::query_as!(UserRole, "INSERT INTO user_roles (id, user_id, role_id, created_at, updated_at) VALUES ($1, $2, $3, $4, $5) RETURNING *", entity.id, entity.user_id, entity.role_id, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_role_repository.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | ... = sqlx::query_as!(UserRole, "UPDATE user_roles SET user_id = $1, role_id = $2 WHERE id = $3 RETURNING *", entity.user_id, entity.role_id, entity.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/infrastructure/data/repositories/role_repository.rs:20:20 [INFO] [stdout] | [INFO] [stdout] 20 | let role = sqlx::query_as!(Role, "SELECT * FROM roles WHERE name = $1 AND deleted_at IS NULL", name) [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/infrastructure/data/repositories/role_repository.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | let roles = sqlx::query_as!(Role, "SELECT * FROM roles WHERE deleted_at IS NULL") [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/infrastructure/data/repositories/role_repository.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let role = sqlx::query_as!(Role, "SELECT * FROM roles WHERE id = $1 AND deleted_at IS NULL", 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/infrastructure/data/repositories/role_repository.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 47 | ... = sqlx::query_as!(Role, "INSERT INTO roles (id, name, description, created_at, updated_at) VALUES ($1, $2, $3, $4, $5) RETURNING *", entity.id, entity.name, entity.description, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/role_repository.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | ... = sqlx::query_as!(Role, "UPDATE roles SET name = $1, description = $2, updated_at = $3 WHERE id = $4 RETURNING *", entity.name, entity.description, now, entity.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/infrastructure/data/repositories/role_repository.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | sqlx::query!("UPDATE roles SET deleted_at = $1 WHERE id = $2", now, 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/infrastructure/data/repositories/user_repository.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [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/infrastructure/data/repositories/user_repository.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [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/infrastructure/data/repositories/user_repository.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 37 | ... let rows = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 38 | | ... r#" [INFO] [stdout] 39 | | ... SELECT [INFO] [stdout] 40 | | ... u.id as user_id, u.email, u.password, u.email_verified_at, u.last_login, u.is_active, u.created_at as user_created_at, u.up... [INFO] [stdout] ... | [INFO] [stdout] 47 | | ... id [INFO] [stdout] 48 | | ... ) [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/infrastructure/data/repositories/user_repository.rs:86:20 [INFO] [stdout] | [INFO] [stdout] 86 | ... let rows = sqlx::query!( [INFO] [stdout] | __________________^ [INFO] [stdout] 87 | | ... r#" [INFO] [stdout] 88 | | ... SELECT [INFO] [stdout] 89 | | ... u.id as user_id, u.email, u.password, u.email_verified_at, u.last_login, u.is_active, u.created_at as user_created_at, u.up... [INFO] [stdout] ... | [INFO] [stdout] 96 | | ... email [INFO] [stdout] 97 | | ... ) [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/infrastructure/data/repositories/user_repository.rs:135:20 [INFO] [stdout] | [INFO] [stdout] 135 | ... = sqlx::query_as!(User, "INSERT INTO users (id, email, password, email_verified_at, last_login, is_active, created_at, updated_at) VALUES ($1... [INFO] [stdout] | _______^ [INFO] [stdout] 136 | | ...ity.id, entity.email, entity.password, entity.email_verified_at, entity.last_login, entity.is_active, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_repository.rs:147:21 [INFO] [stdout] | [INFO] [stdout] 147 | let users = sqlx::query_as!(User, "SELECT * FROM users WHERE deleted_at IS NULL") [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/infrastructure/data/repositories/user_repository.rs:155:20 [INFO] [stdout] | [INFO] [stdout] 155 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE id = $1 AND deleted_at IS NULL", 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/infrastructure/data/repositories/user_repository.rs:163:20 [INFO] [stdout] | [INFO] [stdout] 163 | ... = sqlx::query_as!(User, "INSERT INTO users (id, email, password, email_verified_at, last_login, is_active, created_at, updated_at) VALUES ($1... [INFO] [stdout] | _______^ [INFO] [stdout] 164 | | ...ity.id, entity.email, entity.password, entity.email_verified_at, entity.last_login, entity.is_active, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_repository.rs:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | ... let user = sqlx::query_as!(User, "UPDATE users SET email = $1, password = $2, email_verified_at = $3, last_login = $4, is_active = ... [INFO] [stdout] | __________________^ [INFO] [stdout] 174 | | ... RETURNING * ", entity.email, entity.password, entity.email_verified_at, entity.last_login, entity.is_active, now, entity.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/infrastructure/data/repositories/user_repository.rs:183:17 [INFO] [stdout] | [INFO] [stdout] 183 | let _ = sqlx::query!("UPDATE users SET deleted_at = $1 WHERE id = $2", now, 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/infrastructure/data/repositories/user_role_repository.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 20 | let user_role = sqlx::query_as!(UserRole, "SELECT * FROM user_roles WHERE user_id = $1 AND role_id = $2", user_id, role_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/infrastructure/data/repositories/user_role_repository.rs:28:25 [INFO] [stdout] | [INFO] [stdout] 28 | ... = sqlx::query_as!(UserRole, "INSERT INTO user_roles (id, user_id, role_id, created_at, updated_at) VALUES ($1, $2, $3, $4, $5) RETURNING *", entity.id, entity.user_id, entity.role_id, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_role_repository.rs:36:25 [INFO] [stdout] | [INFO] [stdout] 36 | ..._role = sqlx::query_as!(UserRole, "DELETE FROM user_roles WHERE user_id = $1 AND role_id = $2 RETURNING *", user_id, role_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/infrastructure/data/repositories/user_role_repository.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | ... = sqlx::query_as!(UserRole, "INSERT INTO user_roles (id, user_id, role_id, created_at, updated_at) VALUES ($1, $2, $3, $4, $5) RETURNING *", entity.id, entity.user_id, entity.role_id, entity.created_at, entity.updated_at) [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/infrastructure/data/repositories/user_role_repository.rs:61:25 [INFO] [stdout] | [INFO] [stdout] 61 | ... = sqlx::query_as!(UserRole, "UPDATE user_roles SET user_id = $1, role_id = $2 WHERE id = $3 RETURNING *", entity.user_id, entity.role_id, entity.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[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_repository.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Ok(user.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `user` an explicit type [INFO] [stdout] | [INFO] [stdout] 21 | let user: /* Type */ = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_repository.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let rows = sqlx::query!( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | if rows.is_empty() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type [INFO] [stdout] | [INFO] [stdout] 37 | let rows: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_repository.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let rows = sqlx::query!( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | if rows.is_empty() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type [INFO] [stdout] | [INFO] [stdout] 86 | let rows: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_role_repository.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let user_role = sqlx::query_as!(UserRole, "SELECT * FROM user_roles WHERE user_id = $1 AND role_id = $2", user_id, role_id) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | Ok(user_role.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `user_role` an explicit type [INFO] [stdout] | [INFO] [stdout] 20 | let user_role: /* Type */ = sqlx::query_as!(UserRole, "SELECT * FROM user_roles WHERE user_id = $1 AND role_id = $2", user_id, role_id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / pub async fn set_auth_token( [INFO] [stdout] 25 | | &mut self, [INFO] [stdout] 26 | | key: String, [INFO] [stdout] 27 | | token: &String, [INFO] [stdout] 28 | | ) -> Result<(), redis::RedisError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | self.redis_client.set(&redis_key, token).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 30 ~ self.redis_client.set::<_, _, ()>(&redis_key, token).await?; [INFO] [stdout] 31 | [INFO] [stdout] 32 | let in_week: i64 = 7 * 24 * 60 * 60; [INFO] [stdout] 33 | // set expiration [INFO] [stdout] 34 ~ self.redis_client.expire::<_, ()>(&redis_key, in_week).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / pub async fn set_auth_data( [INFO] [stdout] 40 | | &mut self, [INFO] [stdout] 41 | | key: &String, [INFO] [stdout] 42 | | data: &UserWithRoles, [INFO] [stdout] 43 | | access_token: &String, [INFO] [stdout] 44 | | ) -> Result<(), redis::RedisError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | self.redis_client.set(&token_key, access_token).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 47 ~ self.redis_client.set::<_, _, ()>(&token_key, access_token).await?; [INFO] [stdout] 48 | self.redis_client [INFO] [stdout] 49 ~ .set::<_, _, ()>(&user_data_key, json!(data).to_string()) [INFO] [stdout] 50 | .await?; [INFO] [stdout] ... [INFO] [stdout] 54 | // set expiration [INFO] [stdout] 55 ~ self.redis_client.expire::<_, ()>(&token_key, in_week).await?; [INFO] [stdout] 56 ~ self.redis_client.expire::<_, ()>(&user_data_key, in_a_day).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn remove_auth_data(&mut self, key: &String) -> Result<(), redis::RedisError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | self.redis_client.del(&token_key).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 65 ~ self.redis_client.del::<_, ()>(&token_key).await?; [INFO] [stdout] 66 ~ self.redis_client.del::<_, ()>(&user_data_key).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pub async fn set_user_data( [INFO] [stdout] 91 | | &mut self, [INFO] [stdout] 92 | | key: String, [INFO] [stdout] 93 | | data: &UserWithRoles, [INFO] [stdout] 94 | | ) -> Result<(), redis::RedisError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | .set(&user_data_key, json!(data).to_string()) [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 97 ~ .set::<_, _, ()>(&user_data_key, json!(data).to_string()) [INFO] [stdout] 98 | .await?; [INFO] [stdout] ... [INFO] [stdout] 101| // set expiration [INFO] [stdout] 102~ self.redis_client.expire::<_, ()>(&user_data_key, in_a_day).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_repository.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | let user = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | Ok(user.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `user` an explicit type [INFO] [stdout] | [INFO] [stdout] 21 | let user: /* Type */ = sqlx::query_as!(User, "SELECT * FROM users WHERE email = $1 AND deleted_at IS NULL", email) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_repository.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let rows = sqlx::query!( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | if rows.is_empty() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type [INFO] [stdout] | [INFO] [stdout] 37 | let rows: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_repository.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | let rows = sqlx::query!( [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | if rows.is_empty() { [INFO] [stdout] | -------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `rows` an explicit type [INFO] [stdout] | [INFO] [stdout] 86 | let rows: /* Type */ = sqlx::query!( [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/infrastructure/data/repositories/user_role_repository.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let user_role = sqlx::query_as!(UserRole, "SELECT * FROM user_roles WHERE user_id = $1 AND role_id = $2", user_id, role_id) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | Ok(user_role.is_some()) [INFO] [stdout] | ------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `user_role` an explicit type [INFO] [stdout] | [INFO] [stdout] 20 | let user_role: /* Type */ = sqlx::query_as!(UserRole, "SELECT * FROM user_roles WHERE user_id = $1 AND role_id = $2", user_id, role_id) [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | / pub async fn set_auth_token( [INFO] [stdout] 25 | | &mut self, [INFO] [stdout] 26 | | key: String, [INFO] [stdout] 27 | | token: &String, [INFO] [stdout] 28 | | ) -> Result<(), redis::RedisError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:30:27 [INFO] [stdout] | [INFO] [stdout] 30 | self.redis_client.set(&redis_key, token).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 30 ~ self.redis_client.set::<_, _, ()>(&redis_key, token).await?; [INFO] [stdout] 31 | [INFO] [stdout] 32 | let in_week: i64 = 7 * 24 * 60 * 60; [INFO] [stdout] 33 | // set expiration [INFO] [stdout] 34 ~ self.redis_client.expire::<_, ()>(&redis_key, in_week).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:39:5 [INFO] [stdout] | [INFO] [stdout] 39 | / pub async fn set_auth_data( [INFO] [stdout] 40 | | &mut self, [INFO] [stdout] 41 | | key: &String, [INFO] [stdout] 42 | | data: &UserWithRoles, [INFO] [stdout] 43 | | access_token: &String, [INFO] [stdout] 44 | | ) -> Result<(), redis::RedisError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:47:27 [INFO] [stdout] | [INFO] [stdout] 47 | self.redis_client.set(&token_key, access_token).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 47 ~ self.redis_client.set::<_, _, ()>(&token_key, access_token).await?; [INFO] [stdout] 48 | self.redis_client [INFO] [stdout] 49 ~ .set::<_, _, ()>(&user_data_key, json!(data).to_string()) [INFO] [stdout] 50 | .await?; [INFO] [stdout] ... [INFO] [stdout] 54 | // set expiration [INFO] [stdout] 55 ~ self.redis_client.expire::<_, ()>(&token_key, in_week).await?; [INFO] [stdout] 56 ~ self.redis_client.expire::<_, ()>(&user_data_key, in_a_day).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub async fn remove_auth_data(&mut self, key: &String) -> Result<(), redis::RedisError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:65:27 [INFO] [stdout] | [INFO] [stdout] 65 | self.redis_client.del(&token_key).await?; [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 65 ~ self.redis_client.del::<_, ()>(&token_key).await?; [INFO] [stdout] 66 ~ self.redis_client.del::<_, ()>(&user_data_key).await?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this function depends on never type fallback being `()` [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:90:5 [INFO] [stdout] | [INFO] [stdout] 90 | / pub async fn set_user_data( [INFO] [stdout] 91 | | &mut self, [INFO] [stdout] 92 | | key: String, [INFO] [stdout] 93 | | data: &UserWithRoles, [INFO] [stdout] 94 | | ) -> Result<(), redis::RedisError> { [INFO] [stdout] | |______________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = help: specify the types explicitly [INFO] [stdout] note: in edition 2024, the requirement `!: FromRedisValue` will fail [INFO] [stdout] --> src/infrastructure/data/repositories/redis_repository.rs:97:14 [INFO] [stdout] | [INFO] [stdout] 97 | .set(&user_data_key, json!(data).to_string()) [INFO] [stdout] | ^^^ [INFO] [stdout] help: use `()` annotations to avoid fallback changes [INFO] [stdout] | [INFO] [stdout] 97 ~ .set::<_, _, ()>(&user_data_key, json!(data).to_string()) [INFO] [stdout] 98 | .await?; [INFO] [stdout] ... [INFO] [stdout] 101| // set expiration [INFO] [stdout] 102~ self.redis_client.expire::<_, ()>(&user_data_key, in_a_day).await?; [INFO] [stdout] | [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-auth-micro` (lib test) due to 25 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-auth-micro` (lib) due to 25 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "14cdb1cff33f4d349f5072f6965bc0831e96bb6e12ce2bcdbd6c4876e5ee02bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14cdb1cff33f4d349f5072f6965bc0831e96bb6e12ce2bcdbd6c4876e5ee02bb", kill_on_drop: false }` [INFO] [stdout] 14cdb1cff33f4d349f5072f6965bc0831e96bb6e12ce2bcdbd6c4876e5ee02bb