[INFO] cloning repository https://github.com/RahulRingane/user-authentication [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RahulRingane/user-authentication" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRahulRingane%2Fuser-authentication", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRahulRingane%2Fuser-authentication'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 091f376db4042a41b43cfa2c1cdad27ecaac2d00 [INFO] checking RahulRingane/user-authentication/091f376db4042a41b43cfa2c1cdad27ecaac2d00 against master#bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3 for pr-149328 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRahulRingane%2Fuser-authentication" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/RahulRingane/user-authentication [INFO] finished tweaking git repo https://github.com/RahulRingane/user-authentication [INFO] tweaked toml for git repo https://github.com/RahulRingane/user-authentication written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RahulRingane/user-authentication on toolchain bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/RahulRingane/user-authentication 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" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded email_address v0.2.9 [INFO] [stderr] Downloaded quoted_printable v0.5.1 [INFO] [stderr] Downloaded email-encoding v0.4.1 [INFO] [stderr] Downloaded chumsky v0.9.3 [INFO] [stderr] Downloaded lettre v0.11.17 [INFO] [stderr] Downloaded axum-extra v0.10.1 [INFO] [stderr] Downloaded async-std v1.13.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b3876d318811cd46d4f7e1877814ddc10c1c8fc3cc6df536ff1559fa1397482 [INFO] running `Command { std: "docker" "start" "-a" "9b3876d318811cd46d4f7e1877814ddc10c1c8fc3cc6df536ff1559fa1397482", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b3876d318811cd46d4f7e1877814ddc10c1c8fc3cc6df536ff1559fa1397482", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b3876d318811cd46d4f7e1877814ddc10c1c8fc3cc6df536ff1559fa1397482", kill_on_drop: false }` [INFO] [stdout] 9b3876d318811cd46d4f7e1877814ddc10c1c8fc3cc6df536ff1559fa1397482 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5743f9a5295e3ec0b70554525d1b9d1689e2f8ec07bcc150724713bb9241c853 [INFO] running `Command { std: "docker" "start" "-a" "5743f9a5295e3ec0b70554525d1b9d1689e2f8ec07bcc150724713bb9241c853", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking value-bag v1.11.1 [INFO] [stderr] Compiling syn v2.0.103 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking event-listener v5.4.0 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling futures-lite v2.6.0 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Checking event-listener-strategy v0.5.4 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling async-task v4.7.1 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling atomic-waker v1.1.2 [INFO] [stderr] Compiling foldhash v0.1.5 [INFO] [stderr] Compiling piper v0.2.4 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling io-lifetimes v1.0.11 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling linux-raw-sys v0.3.8 [INFO] [stderr] Compiling waker-fn v1.2.0 [INFO] [stderr] Compiling tinyvec v1.9.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling futures-lite v1.13.0 [INFO] [stderr] Compiling async-channel v1.9.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling async-executor v1.13.2 [INFO] [stderr] Compiling rustix v0.37.28 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling async-lock v2.8.0 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling hashlink v0.10.0 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling psm v0.1.26 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Compiling base64 v0.22.1 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling async-io v1.13.0 [INFO] [stderr] Compiling unicode-properties v0.1.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stacker v0.1.21 [INFO] [stderr] Compiling whoami v1.6.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling proc-macro-error-attr2 v2.0.0 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking base64ct v1.8.0 [INFO] [stderr] Checking dotenvy v0.15.7 [INFO] [stderr] Checking chumsky v0.9.3 [INFO] [stderr] Checking pem v3.0.5 [INFO] [stderr] Checking email-encoding v0.4.1 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking hostname v0.4.1 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Checking quoted_printable v0.5.1 [INFO] [stderr] Checking email_address v0.2.9 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling proc-macro-error2 v2.0.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Checking thiserror v2.0.12 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking yoke v0.8.0 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking zerotrie v0.2.2 [INFO] [stderr] Checking zerovec v0.11.2 [INFO] [stderr] Checking polling v3.8.0 [INFO] [stderr] Checking axum-core v0.5.2 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Compiling async-io v2.4.1 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling async-global-executor v2.4.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Checking async-std v1.13.1 [INFO] [stderr] Compiling validator_derive v0.20.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking icu_normalizer v2.0.0 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking idna_adapter v1.2.1 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking futures-intrusive v0.5.0 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking lettre v0.11.17 [INFO] [stderr] Checking sqlx-core v0.8.6 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Checking validator v0.20.0 [INFO] [stderr] Checking sqlx-postgres v0.8.6 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking axum v0.8.4 [INFO] [stderr] Checking axum-extra v0.10.1 [INFO] [stderr] Compiling sqlx-macros-core v0.8.6 [INFO] [stderr] Compiling sqlx-macros v0.8.6 [INFO] [stderr] Checking sqlx v0.8.6 [INFO] [stderr] Checking Restfulapi v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0252]: the name `Duration` is defined multiple times [INFO] [stdout] --> src/utils/token.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ------------------- previous import of the type `Duration` here [INFO] [stdout] ... [INFO] [stdout] 4 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ `Duration` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `Duration` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Duration as OtherDuration, Utc}; [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `Duration` is defined multiple times [INFO] [stdout] --> src/utils/token.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ------------------- previous import of the type `Duration` here [INFO] [stdout] ... [INFO] [stdout] 4 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ `Duration` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `Duration` must be defined only once in the type namespace of this module [INFO] [stdout] help: you can use `as` to change the binding name of the import [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Duration as OtherDuration, Utc}; [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/db.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 90 | | ... User, [INFO] [stdout] 91 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "ro... [INFO] [stdout] 92 | | ... user_id [INFO] [stdout] 93 | | ... ).fetch_optional(&self.pool).await?; [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:95:20 [INFO] [stdout] | [INFO] [stdout] 95 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 96 | | ... User, [INFO] [stdout] 97 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "ro... [INFO] [stdout] 98 | | ... name [INFO] [stdout] 99 | | ... ).fetch_optional(&self.pool).await?; [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:101:20 [INFO] [stdout] | [INFO] [stdout] 101 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 102 | | ... User, [INFO] [stdout] 103 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "r... [INFO] [stdout] 104 | | ... email [INFO] [stdout] 105 | | ... ).fetch_optional(&self.pool).await?; [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:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 108 | | ... User, [INFO] [stdout] 109 | | ... r#" [INFO] [stdout] 110 | | ... SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "role... [INFO] [stdout] ... | [INFO] [stdout] 113 | | ... token [INFO] [stdout] 114 | | ... ) [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:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | ... let users = sqlx::query_as!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 130 | | ... User, [INFO] [stdout] 131 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "r... [INFO] [stdout] 132 | | ... ORDER BY created_at DESC LIMIT $1 OFFSET $2"#, [INFO] [stdout] 133 | | ... limit as i64, [INFO] [stdout] 134 | | ... offset as i64, [INFO] [stdout] 135 | | ... ).fetch_all(&self.pool) [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:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 150 | | User, [INFO] [stdout] 151 | | r#" [INFO] [stdout] 152 | | INSERT INTO users (name, email, password,verification_token, token_expires_at) [INFO] [stdout] ... | [INFO] [stdout] 160 | | token_expires_at [INFO] [stdout] 161 | | ).fetch_one(&self.pool) [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:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 168 | | r#"SELECT COUNT(*) FROM users"# [INFO] [stdout] 169 | | ) [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_scalar` (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:181:20 [INFO] [stdout] | [INFO] [stdout] 181 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 182 | | User, [INFO] [stdout] 183 | | r#" [INFO] [stdout] 184 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 190 | | user_id [INFO] [stdout] 191 | | ).fetch_one(&self.pool) [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:202:20 [INFO] [stdout] | [INFO] [stdout] 202 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 203 | | User, [INFO] [stdout] 204 | | r#" [INFO] [stdout] 205 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 211 | | user_id [INFO] [stdout] 212 | | ).fetch_one(&self.pool) [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:223:20 [INFO] [stdout] | [INFO] [stdout] 223 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 224 | | User, [INFO] [stdout] 225 | | r#" [INFO] [stdout] 226 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 232 | | user_id [INFO] [stdout] 233 | | ).fetch_one(&self.pool) [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] warning: unused import: `status` [INFO] [stdout] --> src/error.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | http::{status, StatusCode}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{self, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/utils/token.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/mail/sendmail.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | message::{self, header, SinglePart}, transport::smtp::authentication::Credentials, Message, SmtpTransport, Transport [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serve::Listener` [INFO] [stdout] --> src/main.rs:10:107 [INFO] [stdout] | [INFO] [stdout] 10 | use axum::{http::{header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE}, HeaderValue, Method}, Extension, Router, serve::Listener}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/db.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 90 | | ... User, [INFO] [stdout] 91 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "ro... [INFO] [stdout] 92 | | ... user_id [INFO] [stdout] 93 | | ... ).fetch_optional(&self.pool).await?; [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:95:20 [INFO] [stdout] | [INFO] [stdout] 95 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 96 | | ... User, [INFO] [stdout] 97 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "ro... [INFO] [stdout] 98 | | ... name [INFO] [stdout] 99 | | ... ).fetch_optional(&self.pool).await?; [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:101:20 [INFO] [stdout] | [INFO] [stdout] 101 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 102 | | ... User, [INFO] [stdout] 103 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "r... [INFO] [stdout] 104 | | ... email [INFO] [stdout] 105 | | ... ).fetch_optional(&self.pool).await?; [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:107:20 [INFO] [stdout] | [INFO] [stdout] 107 | ... user = sqlx::query_as!( [INFO] [stdout] | ______________^ [INFO] [stdout] 108 | | ... User, [INFO] [stdout] 109 | | ... r#" [INFO] [stdout] 110 | | ... SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "role... [INFO] [stdout] ... | [INFO] [stdout] 113 | | ... token [INFO] [stdout] 114 | | ... ) [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:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | ... let users = sqlx::query_as!( [INFO] [stdout] | ___________________^ [INFO] [stdout] 130 | | ... User, [INFO] [stdout] 131 | | ... r#"SELECT id, name, email, password, verified, created_at, updated_at, verification_token, token_expires_at, role as "r... [INFO] [stdout] 132 | | ... ORDER BY created_at DESC LIMIT $1 OFFSET $2"#, [INFO] [stdout] 133 | | ... limit as i64, [INFO] [stdout] 134 | | ... offset as i64, [INFO] [stdout] 135 | | ... ).fetch_all(&self.pool) [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:149:20 [INFO] [stdout] | [INFO] [stdout] 149 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 150 | | User, [INFO] [stdout] 151 | | r#" [INFO] [stdout] 152 | | INSERT INTO users (name, email, password,verification_token, token_expires_at) [INFO] [stdout] ... | [INFO] [stdout] 160 | | token_expires_at [INFO] [stdout] 161 | | ).fetch_one(&self.pool) [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:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | let count = sqlx::query_scalar!( [INFO] [stdout] | _____________________^ [INFO] [stdout] 168 | | r#"SELECT COUNT(*) FROM users"# [INFO] [stdout] 169 | | ) [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_scalar` (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:181:20 [INFO] [stdout] | [INFO] [stdout] 181 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 182 | | User, [INFO] [stdout] 183 | | r#" [INFO] [stdout] 184 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 190 | | user_id [INFO] [stdout] 191 | | ).fetch_one(&self.pool) [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:202:20 [INFO] [stdout] | [INFO] [stdout] 202 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 203 | | User, [INFO] [stdout] 204 | | r#" [INFO] [stdout] 205 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 211 | | user_id [INFO] [stdout] 212 | | ).fetch_one(&self.pool) [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:223:20 [INFO] [stdout] | [INFO] [stdout] 223 | let user = sqlx::query_as!( [INFO] [stdout] | ____________________^ [INFO] [stdout] 224 | | User, [INFO] [stdout] 225 | | r#" [INFO] [stdout] 226 | | UPDATE users [INFO] [stdout] ... | [INFO] [stdout] 232 | | user_id [INFO] [stdout] 233 | | ).fetch_one(&self.pool) [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] warning: unused import: `status` [INFO] [stdout] --> src/error.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | http::{status, StatusCode}, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `write` [INFO] [stdout] --> src/error.rs:7:22 [INFO] [stdout] | [INFO] [stdout] 7 | use std::fmt::{self, write}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Duration` [INFO] [stdout] --> src/utils/token.rs:4:14 [INFO] [stdout] | [INFO] [stdout] 4 | use chrono::{Duration, Utc}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/mail/sendmail.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | message::{self, header, SinglePart}, transport::smtp::authentication::Credentials, Message, SmtpTransport, Transport [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serve::Listener` [INFO] [stdout] --> src/main.rs:10:107 [INFO] [stdout] | [INFO] [stdout] 10 | use axum::{http::{header::{ACCEPT, AUTHORIZATION, CONTENT_TYPE}, HeaderValue, Method}, Extension, Router, serve::Listener}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `minutes` found for struct `Duration` in the current scope [INFO] [stdout] --> src/utils/token.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | let exp = (now + Duration::minutes(expires_in_seconds)).timestamp() as usize; [INFO] [stdout] | ^^^^^^^ function or associated item not found in `Duration` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Duration` consider using one of the following associated functions: [INFO] [stdout] Duration::new [INFO] [stdout] Duration::from_secs [INFO] [stdout] Duration::from_millis [INFO] [stdout] Duration::from_micros [INFO] [stdout] and 10 others [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/time.rs:194:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `minutes` found for struct `Duration` in the current scope [INFO] [stdout] --> src/utils/token.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | let exp = (now + Duration::minutes(expires_in_seconds)).timestamp() as usize; [INFO] [stdout] | ^^^^^^^ function or associated item not found in `Duration` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Duration` consider using one of the following associated functions: [INFO] [stdout] Duration::new [INFO] [stdout] Duration::from_secs [INFO] [stdout] Duration::from_millis [INFO] [stdout] Duration::from_micros [INFO] [stdout] and 10 others [INFO] [stdout] --> /rustc/bb779a91568ac1ee0b8a9dcb6b69219ef30b18a3/library/core/src/time.rs:194:4 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0252, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Restfulapi` (bin "Restfulapi" test) due to 12 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0252, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0252`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Restfulapi` (bin "Restfulapi") due to 12 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5743f9a5295e3ec0b70554525d1b9d1689e2f8ec07bcc150724713bb9241c853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5743f9a5295e3ec0b70554525d1b9d1689e2f8ec07bcc150724713bb9241c853", kill_on_drop: false }` [INFO] [stdout] 5743f9a5295e3ec0b70554525d1b9d1689e2f8ec07bcc150724713bb9241c853