[INFO] cloning repository https://github.com/Random-user-doing-random-stuff/rocket [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Random-user-doing-random-stuff/rocket" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandom-user-doing-random-stuff%2Frocket", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandom-user-doing-random-stuff%2Frocket'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ecf25f0c3bb061ce2da8f9fe9302bf49f9afee5d [INFO] checking Random-user-doing-random-stuff/rocket/ecf25f0c3bb061ce2da8f9fe9302bf49f9afee5d against master#fd17deacce374a4185c882795be162e17b557050 for pr-138001 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRandom-user-doing-random-stuff%2Frocket" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Random-user-doing-random-stuff/rocket on toolchain fd17deacce374a4185c882795be162e17b557050 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Random-user-doing-random-stuff/rocket [INFO] finished tweaking git repo https://github.com/Random-user-doing-random-stuff/rocket [INFO] tweaked toml for git repo https://github.com/Random-user-doing-random-stuff/rocket written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Random-user-doing-random-stuff/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" "+fd17deacce374a4185c882795be162e17b557050" "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 rocket-include-static-resources v0.10.5 [INFO] [stderr] Downloaded rc-u8-reader v2.0.16 [INFO] [stderr] Downloaded diesel-derive-enum v2.1.0 [INFO] [stderr] Downloaded manifest-dir-macros v0.1.18 [INFO] [stderr] Downloaded rocket-etag-if-none-match v0.4.4 [INFO] [stderr] Downloaded entity-tag v0.1.8 [INFO] [stderr] Downloaded highway v1.2.0 [INFO] [stderr] Downloaded pq-sys v0.6.3 [INFO] [stderr] Downloaded diesel_derives v2.2.3 [INFO] [stderr] Downloaded rocket_dyn_templates v0.2.0 [INFO] [stderr] Downloaded diesel v2.2.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 740ebe4625f7fe3fc52153467912a7262149e734d8b25541593f3f42db434f12 [INFO] running `Command { std: "docker" "start" "-a" "740ebe4625f7fe3fc52153467912a7262149e734d8b25541593f3f42db434f12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "740ebe4625f7fe3fc52153467912a7262149e734d8b25541593f3f42db434f12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "740ebe4625f7fe3fc52153467912a7262149e734d8b25541593f3f42db434f12", kill_on_drop: false }` [INFO] [stdout] 740ebe4625f7fe3fc52153467912a7262149e734d8b25541593f3f42db434f12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+fd17deacce374a4185c882795be162e17b557050" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d04769f8e82fe8cd309fd6259d8478eb04ca0c37c9c6972ccd61fd71a55fb2da [INFO] running `Command { std: "docker" "start" "-a" "d04769f8e82fe8cd309fd6259d8478eb04ca0c37c9c6972ccd61fd71a55fb2da", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking bytes v1.9.0 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking socket2 v0.5.8 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling time-macros v0.2.19 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Checking bitflags v2.7.0 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Checking tracing-core v0.1.33 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling time v0.3.37 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Compiling phf_generator v0.11.3 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling rustix v0.38.43 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Checking winnow v0.6.22 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Compiling serde_json v1.0.137 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling parse-zoneinfo v0.3.1 [INFO] [stderr] Compiling indexmap v2.7.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling phf_codegen v0.11.3 [INFO] [stderr] Compiling phf v0.11.3 [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] Compiling unicase v2.8.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking linux-raw-sys v0.4.15 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling darling_core v0.20.10 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Compiling mime_guess v2.0.5 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Compiling chrono-tz-build v0.3.0 [INFO] [stderr] Compiling pest v2.7.15 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking http v1.2.0 [INFO] [stderr] Checking bstr v1.11.3 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Compiling glob v0.3.2 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Checking unic-char-range v0.9.0 [INFO] [stderr] Checking fastrand v2.3.0 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking unic-common v0.9.0 [INFO] [stderr] Checking tempfile v3.15.0 [INFO] [stderr] Checking unic-ucd-version v0.9.0 [INFO] [stderr] Checking unic-char-property v0.9.0 [INFO] [stderr] Compiling pest_meta v2.7.15 [INFO] [stderr] Checking globset v0.4.15 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling chrono-tz v0.9.0 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Compiling darling_macro v0.20.10 [INFO] [stderr] Compiling async-trait v0.1.85 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Compiling darling v0.20.10 [INFO] [stderr] Checking ignore v0.4.23 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Checking unic-ucd-segment v0.9.0 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Compiling pest_generator v2.7.15 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking deunicode v1.6.0 [INFO] [stderr] Checking highway v1.2.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling pq-sys v0.6.3 [INFO] [stderr] Checking serde_spanned v0.6.8 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking chrono v0.4.39 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Checking inotify v0.9.6 [INFO] [stderr] Checking entity-tag v0.1.8 [INFO] [stderr] Compiling pest_derive v2.7.15 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml_edit v0.22.22 [INFO] [stderr] Compiling dsl_auto_type v0.1.2 [INFO] [stderr] Checking slug v0.1.6 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking humansize v2.1.3 [INFO] [stderr] Checking unic-segment v0.9.0 [INFO] [stderr] Checking globwalk v0.9.1 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.2.0 [INFO] [stderr] Checking scheduled-thread-pool v0.2.7 [INFO] [stderr] Checking crossbeam-channel v0.5.14 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking debug-helper v0.3.13 [INFO] [stderr] Checking base64ct v1.6.0 [INFO] [stderr] Checking rc-u8-reader v2.0.16 [INFO] [stderr] Checking notify v6.1.1 [INFO] [stderr] Checking password-hash v0.5.0 [INFO] [stderr] Compiling diesel_derives v2.2.3 [INFO] [stderr] Checking r2d2 v0.8.10 [INFO] [stderr] Compiling manifest-dir-macros v0.1.18 [INFO] [stderr] Checking blake2 v0.10.6 [INFO] [stderr] Checking cpufeatures v0.2.16 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Checking normpath v1.3.0 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking argon2 v0.5.3 [INFO] [stderr] Compiling diesel-derive-enum v2.1.0 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking tera v1.20.0 [INFO] [stderr] Checking diesel v2.2.6 [INFO] [stderr] Checking rocket-etag-if-none-match v0.4.4 [INFO] [stderr] Checking rocket_dyn_templates v0.2.0 [INFO] [stderr] Checking rocket-include-static-resources v0.10.5 [INFO] [stderr] Checking rocket v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models/role.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 1 + use rocket::serde::Serialize; [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_dyn_templates::serde::Serialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models/role.rs:31:51 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 1 + use rocket::serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_dyn_templates::serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::backend::Backend` [INFO] [stdout] --> src/models/role.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::backend::Backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IsNull` [INFO] [stdout] --> src/models/role.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::serialize::{self, IsNull, Output, ToSql}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsExpression` [INFO] [stdout] --> src/models/role.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel_derives::{AsExpression, Insertable, Queryable}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::roles` [INFO] [stdout] --> src/models/role.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::schema::roles; // Assuming `roles` is the table schema imported from `schema.rs` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::roles::dsl::*` [INFO] [stdout] --> src/routes/api/roles/get.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::roles::dsl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::role::Role` [INFO] [stdout] --> src/routes/api/roles/get.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{db::establish_connection, models::role::Role, schema::roles}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `QueryDsl` [INFO] [stdout] --> src/routes/api/roles/get.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use diesel::{QueryDsl, RunQueryDsl}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/routes/api/roles/get.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewUser` and `User` [INFO] [stdout] --> src/main.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::models::user::{NewUser, User}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FileServer`, `form::Form`, `relative`, and `serde::json::Json` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | form::Form, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | fs::{relative, FileServer}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 19 | serde::json::Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Serialize` in this scope [INFO] [stdout] --> src/models/role.rs:31:40 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 1 + use rocket::serde::Serialize; [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_dyn_templates::serde::Serialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Serialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/models/role.rs:31:51 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 1 + use rocket::serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] 1 + use rocket_dyn_templates::serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] 1 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::backend::Backend` [INFO] [stdout] --> src/models/role.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use diesel::backend::Backend; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IsNull` [INFO] [stdout] --> src/models/role.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::serialize::{self, IsNull, Output, ToSql}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `AsExpression` [INFO] [stdout] --> src/models/role.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel_derives::{AsExpression, Insertable, Queryable}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::roles` [INFO] [stdout] --> src/models/role.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::schema::roles; // Assuming `roles` is the table schema imported from `schema.rs` [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::schema::roles::dsl::*` [INFO] [stdout] --> src/routes/api/roles/get.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::roles::dsl::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `models::role::Role` [INFO] [stdout] --> src/routes/api/roles/get.rs:2:39 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{db::establish_connection, models::role::Role, schema::roles}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `QueryDsl` [INFO] [stdout] --> src/routes/api/roles/get.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use diesel::{QueryDsl, RunQueryDsl}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::serde::json::Json` [INFO] [stdout] --> src/routes/api/roles/get.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rocket::serde::json::Json; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NewUser` and `User` [INFO] [stdout] --> src/main.rs:15:27 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::models::user::{NewUser, User}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FileServer`, `form::Form`, `relative`, and `serde::json::Json` [INFO] [stdout] --> src/main.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | form::Form, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 18 | fs::{relative, FileServer}, [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] 19 | serde::json::Json, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `serde_json::Value` to implement `AsExpression` [INFO] [stdout] = note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `diesel::Expression` [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `AsExpression` [INFO] [stdout] = note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub permissions: serde_json::Value, [INFO] [stdout] | ^^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `serde_json::Value` to implement `AsExpression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub permissions: serde_json::Value, [INFO] [stdout] | ^^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `diesel::Expression` [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `AsExpression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `serde_json::Value` to implement `AsExpression` [INFO] [stdout] = note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | #[derive(Queryable, Insertable, Debug, Serialize, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `diesel::Expression` [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `AsExpression` [INFO] [stdout] = note: this error originates in the derive macro `Insertable` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub permissions: serde_json::Value, [INFO] [stdout] | ^^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `serde_json::Value` to implement `AsExpression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/models/role.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | pub permissions: serde_json::Value, [INFO] [stdout] | ^^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `diesel::Expression` [INFO] [stdout] = note: required for `&'insert serde_json::Value` to implement `AsExpression` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/role.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(json) [INFO] [stdout] | -- ^^^^ expected `Role`, found `Value` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `serde_json::Value` due to the type of the argument passed [INFO] [stdout] --> src/models/role.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(json) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fd17deacce374a4185c882795be162e17b557050/library/core/src/result.rs:532:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `0` on type `&'b Role` [INFO] [stdout] --> src/models/role.rs:24:55 [INFO] [stdout] | [INFO] [stdout] 24 | let json_string = serde_json::to_string(&self.0) [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `permissions`, `active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/models/role.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(json) [INFO] [stdout] | -- ^^^^ expected `Role`, found `Value` [INFO] [stdout] | | [INFO] [stdout] | arguments to this enum variant are incorrect [INFO] [stdout] | [INFO] [stdout] help: the type constructed contains `serde_json::Value` due to the type of the argument passed [INFO] [stdout] --> src/models/role.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | Ok(json) [INFO] [stdout] | ^^^----^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the type of `Ok` [INFO] [stdout] note: tuple variant defined here [INFO] [stdout] --> /rustc/fd17deacce374a4185c882795be162e17b557050/library/core/src/result.rs:532:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `0` on type `&'b Role` [INFO] [stdout] --> src/models/role.rs:24:55 [INFO] [stdout] | [INFO] [stdout] 24 | let json_string = serde_json::to_string(&self.0) [INFO] [stdout] | ^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `id`, `name`, `permissions`, `active` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] note: required by a bound in `diesel::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:465:8 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] 464 | where [INFO] [stdout] 465 | T: Expression, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: Cannot select `serde_json::Value` from `NoFromClause` [INFO] [stdout] --> src/routes/api/roles/get.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `SelectableExpression` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: `serde_json::Value` is no valid selection for `NoFromClause` [INFO] [stdout] = help: the following other types implement trait `SelectableExpression`: [INFO] [stdout] `&'a T` implements `SelectableExpression` [INFO] [stdout] `(T0, T1)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6, T7)` implements `SelectableExpression` [INFO] [stdout] and 419 others [INFO] [stdout] = note: required for `query_builder::select_clause::SelectClause` to implement `query_builder::select_clause::SelectClauseExpression` [INFO] [stdout] = note: required for `SelectStatement>` to implement `diesel::query_builder::Query` [INFO] [stdout] = note: required for `SelectStatement>` to implement `AsQuery` [INFO] [stdout] note: required by a bound in `diesel::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:466:28 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 466 | crate::dsl::select: AsQuery, [INFO] [stdout] | ^^^^^^^ required by this bound in `select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: ValidGrouping<()>` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `ValidGrouping<()>` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ValidGrouping`: [INFO] [stdout] `&'a T` implements `ValidGrouping` [INFO] [stdout] `(T0, T1)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6, T7)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] and 230 others [INFO] [stdout] = note: required for `SelectStatement>` to implement `diesel::query_builder::Query` [INFO] [stdout] = note: required for `SelectStatement>` to implement `AsQuery` [INFO] [stdout] note: required by a bound in `diesel::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:466:28 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 466 | crate::dsl::select: AsQuery, [INFO] [stdout] | ^^^^^^^ required by this bound in `select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/api/roles/get.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `Value`, found `permissions` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `schema::roles::columns::permissions` due to the type of the argument passed [INFO] [stdout] --> src/routes/api/roles/get.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `diesel` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:463:8 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: ValidGrouping<()>` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ the trait `ValidGrouping<()>` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ValidGrouping`: [INFO] [stdout] `&'a T` implements `ValidGrouping` [INFO] [stdout] `(T0, T1)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6, T7)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] and 230 others [INFO] [stdout] = note: required for `SelectStatement>` to implement `diesel::query_builder::Query` [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, _, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, _, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: QueryId` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ the trait `QueryId` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `QueryId`: [INFO] [stdout] &'a T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] and 296 others [INFO] [stdout] = note: required for `query_builder::select_clause::SelectClause` to implement `QueryId` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `SelectStatement>` to implement `QueryId` [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, _, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::SelectStatementSyntax == NotSpecialized` [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ expected `AnsiSqlSelectStatement`, found `query_builder::private::NotSpecialized` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `SelectStatement>` to implement `QueryFragment` [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, PgConnection, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/api/roles/get.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn list_roles() -> Vec { [INFO] [stdout] | ---------------------- expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 9 | troll [INFO] [stdout] | ^^^^^ expected `Vec`, found `Result, Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found enum `Result, diesel::result::Error>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result, diesel::result::Error>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 9 | troll.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:34 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] note: required by a bound in `diesel::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:465:8 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] 464 | where [INFO] [stdout] 465 | T: Expression, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: Cannot select `serde_json::Value` from `NoFromClause` [INFO] [stdout] --> src/routes/api/roles/get.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `SelectableExpression` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: `serde_json::Value` is no valid selection for `NoFromClause` [INFO] [stdout] = help: the following other types implement trait `SelectableExpression`: [INFO] [stdout] `&'a T` implements `SelectableExpression` [INFO] [stdout] `(T0, T1)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6)` implements `SelectableExpression` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6, T7)` implements `SelectableExpression` [INFO] [stdout] and 419 others [INFO] [stdout] = note: required for `query_builder::select_clause::SelectClause` to implement `query_builder::select_clause::SelectClauseExpression` [INFO] [stdout] = note: required for `SelectStatement>` to implement `diesel::query_builder::Query` [INFO] [stdout] = note: required for `SelectStatement>` to implement `AsQuery` [INFO] [stdout] note: required by a bound in `diesel::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:466:28 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 466 | crate::dsl::select: AsQuery, [INFO] [stdout] | ^^^^^^^ required by this bound in `select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: ValidGrouping<()>` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ the trait `ValidGrouping<()>` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ValidGrouping`: [INFO] [stdout] `&'a T` implements `ValidGrouping` [INFO] [stdout] `(T0, T1)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6, T7)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] and 230 others [INFO] [stdout] = note: required for `SelectStatement>` to implement `diesel::query_builder::Query` [INFO] [stdout] = note: required for `SelectStatement>` to implement `AsQuery` [INFO] [stdout] note: required by a bound in `diesel::select` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:466:28 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ------ required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 466 | crate::dsl::select: AsQuery, [INFO] [stdout] | ^^^^^^^ required by this bound in `select` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/api/roles/get.rs:8:53 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^^^^^^^^^^^^^^ expected `Value`, found `permissions` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] help: the return type of this call is `schema::roles::columns::permissions` due to the type of the argument passed [INFO] [stdout] --> src/routes/api/roles/get.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----------------------^ [INFO] [stdout] | | [INFO] [stdout] | this argument influences the return type of `diesel` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_builder/functions.rs:463:8 [INFO] [stdout] | [INFO] [stdout] 463 | pub fn select(expression: T) -> crate::dsl::select [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: ValidGrouping<()>` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ the trait `ValidGrouping<()>` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `ValidGrouping`: [INFO] [stdout] `&'a T` implements `ValidGrouping` [INFO] [stdout] `(T0, T1)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] `(T0, T1, T2, T3, T4, T5, T6, T7)` implements `ValidGrouping<__GroupByClause>` [INFO] [stdout] and 230 others [INFO] [stdout] = note: required for `SelectStatement>` to implement `diesel::query_builder::Query` [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, _, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: diesel::Expression` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ the trait `diesel::Expression` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `diesel::Expression`: [INFO] [stdout] &'a T [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6, T7) [INFO] [stdout] and 174 others [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, _, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `serde_json::Value: QueryId` is not satisfied [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ the trait `QueryId` is not implemented for `serde_json::Value` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `QueryId`: [INFO] [stdout] &'a T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] (T0, T1, T2, T3, T4, T5, T6) [INFO] [stdout] and 296 others [INFO] [stdout] = note: required for `query_builder::select_clause::SelectClause` to implement `QueryId` [INFO] [stdout] = note: 1 redundant requirement hidden [INFO] [stdout] = note: required for `SelectStatement>` to implement `QueryId` [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, _, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0271]: type mismatch resolving `::SelectStatementSyntax == NotSpecialized` [INFO] [stdout] --> src/routes/api/roles/get.rs:8:90 [INFO] [stdout] | [INFO] [stdout] 8 | let troll = diesel::select::(roles::dsl::permissions).get_results(conn); [INFO] [stdout] | ----------- ^^^^ expected `AnsiSqlSelectStatement`, found `query_builder::private::NotSpecialized` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = note: required for `SelectStatement>` to implement `QueryFragment` [INFO] [stdout] = note: required for `SelectStatement>` to implement `LoadQuery<'_, PgConnection, _>` [INFO] [stdout] note: required by a bound in `get_results` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/diesel-2.2.6/src/query_dsl/mod.rs:1738:15 [INFO] [stdout] | [INFO] [stdout] 1736 | fn get_results<'query, U>(self, conn: &mut Conn) -> QueryResult> [INFO] [stdout] | ----------- required by a bound in this associated function [INFO] [stdout] 1737 | where [INFO] [stdout] 1738 | Self: LoadQuery<'query, Conn, U>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `RunQueryDsl::get_results` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/api/roles/get.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn list_roles() -> Vec { [INFO] [stdout] | ---------------------- expected `Vec` because of return type [INFO] [stdout] ... [INFO] [stdout] 9 | troll [INFO] [stdout] | ^^^^^ expected `Vec`, found `Result, Error>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found enum `Result, diesel::result::Error>` [INFO] [stdout] help: consider using `Result::expect` to unwrap the `Result, diesel::result::Error>` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 9 | troll.expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket` (bin "rocket") due to 17 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0271, E0277, E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0271`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rocket` (bin "rocket" test) due to 17 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d04769f8e82fe8cd309fd6259d8478eb04ca0c37c9c6972ccd61fd71a55fb2da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d04769f8e82fe8cd309fd6259d8478eb04ca0c37c9c6972ccd61fd71a55fb2da", kill_on_drop: false }` [INFO] [stdout] d04769f8e82fe8cd309fd6259d8478eb04ca0c37c9c6972ccd61fd71a55fb2da