[INFO] cloning repository https://github.com/tolumide-ng/feed-bkd [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tolumide-ng/feed-bkd" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Ffeed-bkd", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Ffeed-bkd'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cab9c6da067f974aa5f7e68ca8c751e0e0c53483 [INFO] checking tolumide-ng/feed-bkd against try#45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 for pr-83744 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftolumide-ng%2Ffeed-bkd" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tolumide-ng/feed-bkd on toolchain 45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tolumide-ng/feed-bkd [INFO] finished tweaking git repo https://github.com/tolumide-ng/feed-bkd [INFO] tweaked toml for git repo https://github.com/tolumide-ng/feed-bkd written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/tolumide-ng/feed-bkd already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded if_chain v1.0.1 [INFO] [stderr] Downloaded validator_types v0.12.0 [INFO] [stderr] Downloaded validator v0.12.0 [INFO] [stderr] Downloaded rocket_contrib_codegen v0.4.7 [INFO] [stderr] Downloaded validator_derive v0.12.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14b9f0a8fe435360d86e7c53f70337c338f832c1b7fc9c687815081e84661c98 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "14b9f0a8fe435360d86e7c53f70337c338f832c1b7fc9c687815081e84661c98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14b9f0a8fe435360d86e7c53f70337c338f832c1b7fc9c687815081e84661c98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14b9f0a8fe435360d86e7c53f70337c338f832c1b7fc9c687815081e84661c98", kill_on_drop: false }` [INFO] [stdout] 14b9f0a8fe435360d86e7c53f70337c338f832c1b7fc9c687815081e84661c98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+45d8b6e68beee1c9c1ce92ae258a7e02f8f13aa4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fabc95df4f8eca4fadcbf9e4f33fc6cca1a8300f9d8c196a3f39714593af86eb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fabc95df4f8eca4fadcbf9e4f33fc6cca1a8300f9d8c196a3f39714593af86eb", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.86 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v1.4.2 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Checking opaque-debug v0.2.3 [INFO] [stderr] Compiling subtle v1.0.0 [INFO] [stderr] Checking byte-tools v0.3.1 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Compiling percent-encoding v1.0.1 [INFO] [stderr] Compiling zeroize v1.2.0 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Compiling once_cell v1.7.0 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling state v0.4.2 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling regex-syntax v0.6.22 [INFO] [stderr] Compiling validator_types v0.12.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling if_chain v1.0.1 [INFO] [stderr] Checking dotenv v0.15.0 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Compiling tinyvec v1.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Checking block-padding v0.1.5 [INFO] [stderr] Checking form_urlencoded v1.0.1 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling rocket_codegen v0.4.7 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rocket_contrib_codegen v0.4.7 [INFO] [stderr] Compiling rocket v0.4.7 [INFO] [stderr] Compiling thread_local v1.1.3 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Compiling unicode-normalization v0.1.17 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking universal-hash v0.3.0 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking digest v0.8.1 [INFO] [stderr] Checking crypto-mac v0.7.0 [INFO] [stderr] Checking aead v0.2.0 [INFO] [stderr] Checking block-buffer v0.7.3 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking inotify-sys v0.1.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking filetime v0.2.14 [INFO] [stderr] Checking aes-soft v0.3.3 [INFO] [stderr] Checking polyval v0.3.3 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking hmac v0.7.1 [INFO] [stderr] Checking sha2 v0.8.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking regex v1.4.3 [INFO] [stderr] Checking inotify v0.7.1 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking ghash v0.2.3 [INFO] [stderr] Checking hkdf v0.8.0 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking aes v0.3.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking scheduled-thread-pool v0.2.5 [INFO] [stderr] Checking aes-gcm v0.5.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking r2d2 v0.8.9 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking notify v4.0.15 [INFO] [stderr] Compiling cookie v0.11.3 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.123 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Compiling validator_derive v0.12.0 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Checking rocket_http v0.4.7 [INFO] [stderr] Checking diesel v1.4.6 [INFO] [stderr] Checking serde v1.0.123 [INFO] [stderr] Checking toml v0.4.10 [INFO] [stderr] Checking validator v0.12.0 [INFO] [stderr] Checking rocket_contrib v0.4.7 [INFO] [stderr] Checking monoli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::controllers::post::NewCreatePost` [INFO] [stdout] --> src/routes/post.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | controllers::post::{self as posts, NewCreatePost}, [INFO] [stdout] | ^^^^^^^^^^^^^ no `NewCreatePost` in `controllers::post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::controllers::post::NewCreatePost` [INFO] [stdout] --> src/routes/post.rs:2:40 [INFO] [stdout] | [INFO] [stdout] 2 | controllers::post::{self as posts, NewCreatePost}, [INFO] [stdout] | ^^^^^^^^^^^^^ no `NewCreatePost` in `controllers::post` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Json` in this scope [INFO] [stdout] --> src/controllers/post.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_post<'a>(new_post: Json) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::connect::diesel::types::Json; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::field_validator::response::content::Json; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::posts::Json; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::validators::posts::Json; [INFO] [stdout] | [INFO] [stdout] and 4 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NewCreatePost` in this scope [INFO] [stdout] --> src/controllers/post.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_post<'a>(new_post: Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::validators::posts::NewCreatePost; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonValue` in this scope [INFO] [stdout] --> src/controllers/post.rs:21:65 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_post<'a>(new_post: Json) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::validators::posts::JsonValue; [INFO] [stdout] | [INFO] [stdout] 1 | use rocket_contrib::json::JsonValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/controllers/post.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | .get_result::(conn) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Json` in this scope [INFO] [stdout] --> src/controllers/post.rs:21:34 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_post<'a>(new_post: Json) -> Result { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db::connect::diesel::types::Json; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::field_validator::response::content::Json; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::schema::posts::Json; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::validators::posts::Json; [INFO] [stdout] | [INFO] [stdout] and 4 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NewCreatePost` in this scope [INFO] [stdout] --> src/controllers/post.rs:21:39 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_post<'a>(new_post: Json) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::validators::posts::NewCreatePost; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `JsonValue` in this scope [INFO] [stdout] --> src/controllers/post.rs:21:65 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn create_post<'a>(new_post: Json) -> Result { [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::validators::posts::JsonValue; [INFO] [stdout] | [INFO] [stdout] 1 | use rocket_contrib::json::JsonValue; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `conn` in this scope [INFO] [stdout] --> src/controllers/post.rs:43:29 [INFO] [stdout] | [INFO] [stdout] 43 | .get_result::(conn) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db` [INFO] [stdout] --> src/controllers/post.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FieldErrorCode` [INFO] [stdout] --> src/controllers/post.rs:3:46 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::errors::field_validator::{Errors, FieldErrorCode, FieldValidator}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::db` [INFO] [stdout] --> src/controllers/post.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::db; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::pg::PgConnection` [INFO] [stdout] --> src/controllers/post.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `FieldErrorCode` [INFO] [stdout] --> src/controllers/post.rs:3:46 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::errors::field_validator::{Errors, FieldErrorCode, FieldValidator}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::setup::DATE_FORMAT` [INFO] [stdout] --> src/models/posts.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::config::setup::DATE_FORMAT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::pg::PgConnection` [INFO] [stdout] --> src/controllers/post.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::config::setup::DATE_FORMAT` [INFO] [stdout] --> src/models/posts.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::config::setup::DATE_FORMAT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self as posts` [INFO] [stdout] --> src/routes/post.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | controllers::post::{self as posts, NewCreatePost}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/routes/post.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket_contrib::json::{self, Json, JsonValue}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self as posts` [INFO] [stdout] --> src/routes/post.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | controllers::post::{self as posts, NewCreatePost}, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/routes/post.rs:6:28 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket_contrib::json::{self, Json, JsonValue}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::RawStr` [INFO] [stdout] --> src/validators/basics.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rocket::http::RawStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::request::FromFormValue` [INFO] [stdout] --> src/validators/basics.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rocket::request::FromFormValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Errors`, `FieldErrorCode` [INFO] [stdout] --> src/validators/posts.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::field_validator::{Errors, FieldErrorCode, FieldValidator}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::RawStr` [INFO] [stdout] --> src/validators/basics.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use rocket::http::RawStr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JsonValue` [INFO] [stdout] --> src/validators/posts.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_contrib::json::{Json, JsonValue}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::request::FromFormValue` [INFO] [stdout] --> src/validators/basics.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rocket::request::FromFormValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Errors`, `FieldErrorCode` [INFO] [stdout] --> src/validators/posts.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::errors::field_validator::{Errors, FieldErrorCode, FieldValidator}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `JsonValue` [INFO] [stdout] --> src/validators/posts.rs:2:34 [INFO] [stdout] | [INFO] [stdout] 2 | use rocket_contrib::json::{Json, JsonValue}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::pg::PgConnection` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude::*` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::pg::PgConnection` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | use diesel::pg::PgConnection; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `routes::auth` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use routes::auth; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude::*` [INFO] [stdout] --> src/lib.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `routes::auth` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | use routes::auth; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DateTime: Queryable` is not satisfied [INFO] [stdout] --> src/controllers/post.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | .get_result::(conn) [INFO] [stdout] | ^^^^^^^^^^ the trait `Queryable` is not implemented for `DateTime` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Bool, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Timestamptz, diesel::sql_types::Timestamptz), Pg>` for `(i32, std::string::String, std::string::String, bool, std::string::String, std::string::String, DateTime, DateTime)` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Bool, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Timestamptz, diesel::sql_types::Timestamptz), Pg>` for `models::posts::Post` [INFO] [stdout] = note: required because of the requirements on the impl of `LoadQuery<_, models::posts::Post>` for `InsertStatement>, ColumnInsertValue>, ColumnInsertValue>), table>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `DateTime: Queryable` is not satisfied [INFO] [stdout] --> src/controllers/post.rs:43:10 [INFO] [stdout] | [INFO] [stdout] 43 | .get_result::(conn) [INFO] [stdout] | ^^^^^^^^^^ the trait `Queryable` is not implemented for `DateTime` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Bool, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Timestamptz, diesel::sql_types::Timestamptz), Pg>` for `(i32, std::string::String, std::string::String, bool, std::string::String, std::string::String, DateTime, DateTime)` [INFO] [stdout] = note: 1 redundant requirements hidden [INFO] [stdout] = note: required because of the requirements on the impl of `Queryable<(diesel::sql_types::Integer, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Bool, diesel::sql_types::Text, diesel::sql_types::Text, diesel::sql_types::Timestamptz, diesel::sql_types::Timestamptz), Pg>` for `models::posts::Post` [INFO] [stdout] = note: required because of the requirements on the impl of `LoadQuery<_, models::posts::Post>` for `InsertStatement>, ColumnInsertValue>, ColumnInsertValue>), table>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/post.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn create_post( [INFO] [stdout] | ----------- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 20 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/routes/post.rs:20:6 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn create_post( [INFO] [stdout] | ----------- implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 20 | ) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected enum `Result`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0412, E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `monoli` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "fabc95df4f8eca4fadcbf9e4f33fc6cca1a8300f9d8c196a3f39714593af86eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fabc95df4f8eca4fadcbf9e4f33fc6cca1a8300f9d8c196a3f39714593af86eb", kill_on_drop: false }` [INFO] [stdout] fabc95df4f8eca4fadcbf9e4f33fc6cca1a8300f9d8c196a3f39714593af86eb