[INFO] cloning repository https://github.com/dev0xfe/hello-rocket [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dev0xfe/hello-rocket" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev0xfe%2Fhello-rocket", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev0xfe%2Fhello-rocket'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4a90567cf055bbbff3aa5fe681c29ba51452b088 [INFO] checking dev0xfe/hello-rocket/4a90567cf055bbbff3aa5fe681c29ba51452b088 against master#36e2b8a3a7aad93f8a92db6d254b746aa94ed6da for pr-151822 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdev0xfe%2Fhello-rocket" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dev0xfe/hello-rocket [INFO] finished tweaking git repo https://github.com/dev0xfe/hello-rocket [INFO] tweaked toml for git repo https://github.com/dev0xfe/hello-rocket written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dev0xfe/hello-rocket on toolchain 36e2b8a3a7aad93f8a92db6d254b746aa94ed6da [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dev0xfe/hello-rocket 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" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rocket_db_pools v0.1.0 [INFO] [stderr] Downloaded sqlx-mysql v0.7.4 [INFO] [stderr] Downloaded binascii v0.1.4 [INFO] [stderr] Downloaded pear v0.2.9 [INFO] [stderr] Downloaded stable-pattern v0.1.0 [INFO] [stderr] Downloaded sqlx-core v0.7.4 [INFO] [stderr] Downloaded sqlx-sqlite v0.7.4 [INFO] [stderr] Downloaded sqlx-postgres v0.7.4 [INFO] [stderr] Downloaded sqlx v0.7.4 [INFO] [stderr] Downloaded devise_core v0.4.2 [INFO] [stderr] Downloaded rocket_db_pools_codegen v0.1.0 [INFO] [stderr] Downloaded sqlx-macros-core v0.7.4 [INFO] [stderr] Downloaded pear_codegen v0.2.9 [INFO] [stderr] Downloaded ubyte v0.10.4 [INFO] [stderr] Downloaded devise_codegen v0.4.2 [INFO] [stderr] Downloaded figment v0.10.19 [INFO] [stderr] Downloaded rocket_http v0.5.1 [INFO] [stderr] Downloaded rocket_codegen v0.5.1 [INFO] [stderr] Downloaded tokio v1.46.0 [INFO] [stderr] Downloaded devise v0.4.2 [INFO] [stderr] Downloaded sqlx-macros v0.7.4 [INFO] [stderr] Downloaded rocket v0.5.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b0b16da6073c401db805d7eaf33e9f8d7b391b99c7bc84583bc92579ae143f3 [INFO] running `Command { std: "docker" "start" "-a" "4b0b16da6073c401db805d7eaf33e9f8d7b391b99c7bc84583bc92579ae143f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b0b16da6073c401db805d7eaf33e9f8d7b391b99c7bc84583bc92579ae143f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b0b16da6073c401db805d7eaf33e9f8d7b391b99c7bc84583bc92579ae143f3", kill_on_drop: false }` [INFO] [stdout] 4b0b16da6073c401db805d7eaf33e9f8d7b391b99c7bc84583bc92579ae143f3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:29356a839a4d14451438f794ce8414e707d72405f44418718d724d22562fe786" "/opt/rustwide/cargo-home/bin/cargo" "+36e2b8a3a7aad93f8a92db6d254b746aa94ed6da" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b17b029e91fd5060674fd12da2224aa718b2e97942c5880a1ea86951cd5df72 [INFO] running `Command { std: "docker" "start" "-a" "7b17b029e91fd5060674fd12da2224aa718b2e97942c5880a1ea86951cd5df72", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling slab v0.4.10 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling tokio v1.46.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling rustix v1.0.7 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [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 tokio-macros v2.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Checking serde v1.0.219 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Checking is-terminal v0.4.16 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling event-listener v2.5.3 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling uuid v1.17.0 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking either v1.15.0 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking winnow v0.7.11 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking hkdf v0.12.4 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Checking num_cpus v1.17.0 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Compiling rocket_db_pools_codegen v0.1.0 [INFO] [stderr] Checking simple_asn1 v0.6.3 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking jsonwebtoken v9.3.1 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Checking sqlx v0.7.4 [INFO] [stderr] Checking rocket_db_pools v0.1.0 [INFO] [stderr] Checking backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/controllers/auth.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let maybe_user = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 31 | | User, [INFO] [stdout] 32 | | r#" [INFO] [stdout] 33 | | SELECT id, email, tag, name, bio, group_id, group_name, privileges, token [INFO] [stdout] ... | [INFO] [stdout] 37 | | credentials.password [INFO] [stdout] 38 | | ) [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/controllers/posts.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | let vec = sqlx::query_as!(User, "SELECT id, name FROM v_user_profile") [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/controllers/posts.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: set `DATABASE_URL` to use query macros online, or run `cargo sqlx prepare` to update the query cache [INFO] [stdout] --> src/controllers/auth.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let maybe_user = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 31 | | User, [INFO] [stdout] 32 | | r#" [INFO] [stdout] 33 | | SELECT id, email, tag, name, bio, group_id, group_name, privileges, token [INFO] [stdout] ... | [INFO] [stdout] 37 | | credentials.password [INFO] [stdout] 38 | | ) [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/controllers/posts.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | let vec = sqlx::query_as!(User, "SELECT id, name FROM v_user_profile") [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/controllers/posts.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | async fn list(mut db: Connection) -> Option>> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:29:62 [INFO] [stdout] | [INFO] [stdout] 29 | async fn get(mut db: Connection, id: i32) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | let item = sqlx::query_as!(User, "SELECT id, name FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:39:52 [INFO] [stdout] | [INFO] [stdout] 39 | async fn create(mut db: Connection, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:39:74 [INFO] [stdout] | [INFO] [stdout] 39 | async fn create(mut db: Connection, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | User, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:53:61 [INFO] [stdout] | [INFO] [stdout] 53 | async fn update(mut db: Connection, id: i32, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:53:83 [INFO] [stdout] | [INFO] [stdout] 53 | async fn update(mut db: Connection, id: i32, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | User, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errors::Result as JwtResult` [INFO] [stdout] --> src/util/jwt.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::{EncodingKey, Header, encode, errors::Result as JwtResult}; [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: `rocket::request::FromRequest` [INFO] [stdout] --> src/util/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::request::FromRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::request::Request` [INFO] [stdout] --> src/util/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::request::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:19:58 [INFO] [stdout] | [INFO] [stdout] 19 | async fn list(mut db: Connection) -> Option>> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:29:62 [INFO] [stdout] | [INFO] [stdout] 29 | async fn get(mut db: Connection, id: i32) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:30:32 [INFO] [stdout] | [INFO] [stdout] 30 | let item = sqlx::query_as!(User, "SELECT id, name FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:39:52 [INFO] [stdout] | [INFO] [stdout] 39 | async fn create(mut db: Connection, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:39:74 [INFO] [stdout] | [INFO] [stdout] 39 | async fn create(mut db: Connection, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | User, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:53:61 [INFO] [stdout] | [INFO] [stdout] 53 | async fn update(mut db: Connection, id: i32, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:53:83 [INFO] [stdout] | [INFO] [stdout] 53 | async fn update(mut db: Connection, id: i32, data: Json) -> Option> { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `User` in this scope [INFO] [stdout] --> src/controllers/posts.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | User, [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::util::user::User; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `errors::Result as JwtResult` [INFO] [stdout] --> src/util/jwt.rs:3:49 [INFO] [stdout] | [INFO] [stdout] 3 | use jsonwebtoken::{EncodingKey, Header, encode, errors::Result as JwtResult}; [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: `rocket::request::FromRequest` [INFO] [stdout] --> src/util/user.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rocket::request::FromRequest; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::request::Request` [INFO] [stdout] --> src/util/user.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket::request::Request; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/controllers/auth.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let maybe_user = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 31 | | User, [INFO] [stdout] 32 | | r#" [INFO] [stdout] 33 | | SELECT id, email, tag, name, bio, group_id, group_name, privileges, token [INFO] [stdout] ... | [INFO] [stdout] 39 | | .fetch_optional(db.inner()) [INFO] [stdout] 40 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/controllers/posts.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | let vec = sqlx::query_as!(User, "SELECT id, name FROM v_user_profile") [INFO] [stdout] | _______________^ [INFO] [stdout] 21 | | .fetch_all(&mut **db) [INFO] [stdout] 22 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/controllers/posts.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | Ok(res) if res.rows_affected() > 0 => Ok(NoContent), [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 69 | let result: Result<_, E> = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/controllers/auth.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let maybe_user = sqlx::query_as!( [INFO] [stdout] | ______________________^ [INFO] [stdout] 31 | | User, [INFO] [stdout] 32 | | r#" [INFO] [stdout] 33 | | SELECT id, email, tag, name, bio, group_id, group_name, privileges, token [INFO] [stdout] ... | [INFO] [stdout] 39 | | .fetch_optional(db.inner()) [INFO] [stdout] 40 | | .await [INFO] [stdout] | |__________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/controllers/posts.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | let vec = sqlx::query_as!(User, "SELECT id, name FROM v_user_profile") [INFO] [stdout] | _______________^ [INFO] [stdout] 21 | | .fetch_all(&mut **db) [INFO] [stdout] 22 | | .await [INFO] [stdout] | |______________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `Result<_, _>` [INFO] [stdout] --> src/controllers/posts.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let result = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | Ok(res) if res.rows_affected() > 0 => Ok(NoContent), [INFO] [stdout] | --- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `result` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 69 | let result: Result<_, E> = sqlx::query!("DELETE FROM users WHERE id = $1", id) [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend" test) due to 15 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0282, E0422, E0425. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `backend` (bin "backend") due to 15 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7b17b029e91fd5060674fd12da2224aa718b2e97942c5880a1ea86951cd5df72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b17b029e91fd5060674fd12da2224aa718b2e97942c5880a1ea86951cd5df72", kill_on_drop: false }` [INFO] [stdout] 7b17b029e91fd5060674fd12da2224aa718b2e97942c5880a1ea86951cd5df72