[INFO] updating cached repository sargeras55/Rust-Server-Example [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/sargeras55/Rust-Server-Example [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/sargeras55/Rust-Server-Example" "work/ex/pr-58592/sources/master#f66e4697ae286985ddefc53c3a047614568458bb/gh/sargeras55/Rust-Server-Example"` [INFO] [stderr] Cloning into 'work/ex/pr-58592/sources/master#f66e4697ae286985ddefc53c3a047614568458bb/gh/sargeras55/Rust-Server-Example'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/sargeras55/Rust-Server-Example" "work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/gh/sargeras55/Rust-Server-Example"` [INFO] [stderr] Cloning into 'work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/gh/sargeras55/Rust-Server-Example'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] b54ab2139408b35ee871c1a37ab64f8236cde0e1 [INFO] sha for GitHub repo sargeras55/Rust-Server-Example: b54ab2139408b35ee871c1a37ab64f8236cde0e1 [INFO] validating manifest of sargeras55/Rust-Server-Example on toolchain master#f66e4697ae286985ddefc53c3a047614568458bb [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+f66e4697ae286985ddefc53c3a047614568458bb-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of sargeras55/Rust-Server-Example on toolchain try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing sargeras55/Rust-Server-Example [INFO] finished frobbing sargeras55/Rust-Server-Example [INFO] frobbed toml for sargeras55/Rust-Server-Example written to work/ex/pr-58592/sources/master#f66e4697ae286985ddefc53c3a047614568458bb/gh/sargeras55/Rust-Server-Example/Cargo.toml [INFO] started frobbing sargeras55/Rust-Server-Example [INFO] finished frobbing sargeras55/Rust-Server-Example [INFO] frobbed toml for sargeras55/Rust-Server-Example written to work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/gh/sargeras55/Rust-Server-Example/Cargo.toml [INFO] crate sargeras55/Rust-Server-Example has a lockfile. skipping [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+f66e4697ae286985ddefc53c3a047614568458bb-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking sargeras55/Rust-Server-Example against try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a for pr-58592 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-58592/worker-7/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-58592/sources/try#c3b22200e6f5b70eb1f99ae6944d989ae17a458a/gh/sargeras55/Rust-Server-Example:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+c3b22200e6f5b70eb1f99ae6944d989ae17a458a-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 6515e94766e68dbd515fbed75e59c22c51376cd1ec8b7a1d7d3123e19674914c [INFO] running `"docker" "start" "-a" "6515e94766e68dbd515fbed75e59c22c51376cd1ec8b7a1d7d3123e19674914c"` [INFO] [stderr] Compiling proc-macro2 v0.4.24 [INFO] [stderr] Compiling safemem v0.3.0 [INFO] [stderr] Compiling untrusted v0.6.2 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling indexmap v1.0.2 [INFO] [stderr] Checking unicode-xid v0.1.0 [INFO] [stderr] Compiling ring v0.13.5 [INFO] [stderr] Compiling pear_codegen v0.1.2 [INFO] [stderr] Checking base64 v0.10.0 [INFO] [stderr] Compiling mysqlclient-sys v0.2.3 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Checking smallvec v0.6.7 [INFO] [stderr] Compiling httparse v1.3.3 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking inotify-sys v0.1.3 [INFO] [stderr] Checking filetime v0.2.4 [INFO] [stderr] Checking isatty v0.1.9 [INFO] [stderr] Compiling rocket_codegen v0.4.0-rc.2 [INFO] [stderr] Compiling rocket v0.4.0-rc.2 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Checking toml v0.4.9 [INFO] [stderr] Checking bytes v0.4.11 [INFO] [stderr] Checking mio v0.6.16 [INFO] [stderr] Checking parking_lot_core v0.3.1 [INFO] [stderr] Checking diesel v1.3.3 [INFO] [stderr] Checking tokio-io v0.1.10 [INFO] [stderr] Checking parking_lot v0.6.4 [INFO] [stderr] Checking mio-extras v2.0.5 [INFO] [stderr] Checking regex v0.2.11 [INFO] [stderr] Compiling hyper v0.10.15 [INFO] [stderr] Compiling quote v0.6.10 [INFO] [stderr] Checking tokio-reactor v0.1.7 [INFO] [stderr] Compiling syn v0.15.22 [INFO] [stderr] Checking dotenv v0.9.0 [INFO] [stderr] Checking inotify v0.6.1 [INFO] [stderr] Checking cookie v0.11.0 [INFO] [stderr] Checking notify v4.0.6 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling pear v0.1.2 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Checking rocket_http v0.4.0-rc.2 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Checking rocket_contrib v0.4.0-rc.2 [INFO] [stderr] Checking server_edu v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: no rules expected the token `stringify` [INFO] [stderr] --> src/schema.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / table! { [INFO] [stderr] 2 | | user (id) { [INFO] [stderr] 3 | | id -> Integer, [INFO] [stderr] 4 | | name -> Varchar [INFO] [stderr] 5 | | } [INFO] [stderr] 6 | | } [INFO] [stderr] | |_^ no rules expected this token in macro call [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `diesel::r2d2` [INFO] [stderr] --> src/db.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use diesel::r2d2::{ConnectionManager, Pool, PooledConnection}; [INFO] [stderr] | ^^^^ could not find `r2d2` in `diesel` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `schema::users` [INFO] [stderr] --> src/user.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use schema::users; [INFO] [stderr] | ^^^^^^^^^^^^^ no `users` in `schema` [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Hero` in this scope [INFO] [stderr] --> src/main.rs:27:18 [INFO] [stderr] | [INFO] [stderr] 27 | let update = Hero { id: Some(id), name: user.name }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: cannot find type `User` in this scope [INFO] [stderr] --> src/user.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Queryable)] [INFO] [stderr] | ^^^^^^^^^ names from parent modules are not accessible without an explicit import [INFO] [stderr] | [INFO] [stderr] = note: #[warn(proc_macro_derive_resolution_fallback)] on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #50504 [INFO] [stderr] [INFO] [stderr] error: no rules expected the token `stringify` [INFO] [stderr] --> src/schema.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / table! { [INFO] [stderr] 2 | | user (id) { [INFO] [stderr] 3 | | id -> Integer, [INFO] [stderr] 4 | | name -> Varchar [INFO] [stderr] 5 | | } [INFO] [stderr] 6 | | } [INFO] [stderr] | |_^ no rules expected this token in macro call [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `rocket_contrib::json::Json: rocket::data::FromData<'_>` is not satisfied [INFO] [stderr] --> src/main.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | fn create(user: Json, connection: db::Connection) -> Json { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ the trait `rocket::data::FromData<'_>` is not implemented for `rocket_contrib::json::Json` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] as rocket::data::FromData<'a>> [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `diesel::r2d2` [INFO] [stderr] --> src/db.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use diesel::r2d2::{ConnectionManager, Pool, PooledConnection}; [INFO] [stderr] | ^^^^ could not find `r2d2` in `diesel` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `schema::users` [INFO] [stderr] --> src/user.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use schema::users; [INFO] [stderr] | ^^^^^^^^^^^^^ no `users` in `schema` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | #[post("/", data = "")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0422]: cannot find struct, variant or union type `Hero` in this scope [INFO] [stderr] --> src/main.rs:27:18 [INFO] [stderr] | [INFO] [stderr] 27 | let update = Hero { id: Some(id), name: user.name }; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: cannot find type `User` in this scope [INFO] [stderr] --> src/user.rs:6:10 [INFO] [stderr] | [INFO] [stderr] 6 | #[derive(Queryable)] [INFO] [stderr] | ^^^^^^^^^ names from parent modules are not accessible without an explicit import [INFO] [stderr] | [INFO] [stderr] = note: #[warn(proc_macro_derive_resolution_fallback)] on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #50504 [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `rocket_contrib::json::Json: rocket::data::FromData<'_>` is not satisfied [INFO] [stderr] --> src/main.rs:15:11 [INFO] [stderr] | [INFO] [stderr] 15 | fn create(user: Json, connection: db::Connection) -> Json { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ the trait `rocket::data::FromData<'_>` is not implemented for `rocket_contrib::json::Json` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] as rocket::data::FromData<'a>> [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:14:1 [INFO] [stderr] | [INFO] [stderr] 14 | #[post("/", data = "")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:16:29 [INFO] [stderr] | [INFO] [stderr] 16 | let insert = User { id: None, name: user.name }; [INFO] [stderr] | ^^^^ expected i32, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `i32` [INFO] [stderr] found type `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[get("/")] [INFO] [stderr] | ^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read` found for type `user::User` in the current scope [INFO] [stderr] --> src/main.rs:22:22 [INFO] [stderr] | [INFO] [stderr] 22 | Json(json!(User::read(&connection))) [INFO] [stderr] | ------^^^^ [INFO] [stderr] | | [INFO] [stderr] | function or associated item not found in `user::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct User { [INFO] [stderr] | --------------- function or associated item `read` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `read`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | Json(json!(User::read(&connection))) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `user::User`, found struct `rocket_contrib::json::JsonValue` [INFO] [stderr] | [INFO] [stderr] = note: expected type `user::User` [INFO] [stderr] found type `rocket_contrib::json::JsonValue` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `rocket_contrib::json::Json: rocket::data::FromData<'_>` is not satisfied [INFO] [stderr] --> src/main.rs:26:20 [INFO] [stderr] | [INFO] [stderr] 26 | fn update(id: i32, user: Json, connection: db::Connection) -> Json { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ the trait `rocket::data::FromData<'_>` is not implemented for `rocket_contrib::json::Json` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] as rocket::data::FromData<'a>> [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | #[put("/", data = "")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `update` found for type `user::User` in the current scope [INFO] [stderr] --> src/main.rs:29:26 [INFO] [stderr] | [INFO] [stderr] 29 | "success": User::update(id, update, &connection) [INFO] [stderr] | ------^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | function or associated item not found in `user::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct User { [INFO] [stderr] | --------------- function or associated item `update` not found for this [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:16:29 [INFO] [stderr] | [INFO] [stderr] 16 | let insert = User { id: None, name: user.name }; [INFO] [stderr] | ^^^^ expected i32, found enum `std::option::Option` [INFO] [stderr] | [INFO] [stderr] = note: expected type `i32` [INFO] [stderr] found type `std::option::Option<_>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:20:1 [INFO] [stderr] | [INFO] [stderr] 20 | #[get("/")] [INFO] [stderr] | ^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `read` found for type `user::User` in the current scope [INFO] [stderr] --> src/main.rs:22:22 [INFO] [stderr] | [INFO] [stderr] 22 | Json(json!(User::read(&connection))) [INFO] [stderr] | ------^^^^ [INFO] [stderr] | | [INFO] [stderr] | function or associated item not found in `user::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct User { [INFO] [stderr] | --------------- function or associated item `read` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `read`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `std::io::Read` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | Json(json!({ [INFO] [stderr] | __________^ [INFO] [stderr] 29 | | "success": User::update(id, update, &connection) [INFO] [stderr] 30 | | })) [INFO] [stderr] | |______^ expected struct `user::User`, found struct `rocket_contrib::json::JsonValue` [INFO] [stderr] | [INFO] [stderr] = note: expected type `user::User` [INFO] [stderr] found type `rocket_contrib::json::JsonValue` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | #[delete("/")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `delete` found for type `user::User` in the current scope [INFO] [stderr] --> src/main.rs:36:26 [INFO] [stderr] | [INFO] [stderr] 36 | "success": User::delete(id, &connection) [INFO] [stderr] | ------^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | function or associated item not found in `user::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct User { [INFO] [stderr] | --------------- function or associated item `delete` not found for this [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:22:10 [INFO] [stderr] | [INFO] [stderr] 22 | Json(json!(User::read(&connection))) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `user::User`, found struct `rocket_contrib::json::JsonValue` [INFO] [stderr] | [INFO] [stderr] = note: expected type `user::User` [INFO] [stderr] found type `rocket_contrib::json::JsonValue` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `rocket_contrib::json::Json: rocket::data::FromData<'_>` is not satisfied [INFO] [stderr] --> src/main.rs:26:20 [INFO] [stderr] | [INFO] [stderr] 26 | fn update(id: i32, user: Json, connection: db::Connection) -> Json { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ the trait `rocket::data::FromData<'_>` is not implemented for `rocket_contrib::json::Json` [INFO] [stderr] | [INFO] [stderr] = help: the following implementations were found: [INFO] [stderr] as rocket::data::FromData<'a>> [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | #[put("/", data = "")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `update` found for type `user::User` in the current scope [INFO] [stderr] --> src/main.rs:29:26 [INFO] [stderr] | [INFO] [stderr] 29 | "success": User::update(id, update, &connection) [INFO] [stderr] | ------^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | function or associated item not found in `user::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct User { [INFO] [stderr] | --------------- function or associated item `update` not found for this [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:35:10 [INFO] [stderr] | [INFO] [stderr] 35 | Json(json!({ [INFO] [stderr] | __________^ [INFO] [stderr] 36 | | "success": User::delete(id, &connection) [INFO] [stderr] 37 | | })) [INFO] [stderr] | |______^ expected struct `user::User`, found struct `rocket_contrib::json::JsonValue` [INFO] [stderr] | [INFO] [stderr] = note: expected type `user::User` [INFO] [stderr] found type `rocket_contrib::json::JsonValue` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `&user::User: diesel::Insertable<_>` is not satisfied [INFO] [stderr] --> src/user.rs:16:14 [INFO] [stderr] | [INFO] [stderr] 16 | .values(&user) [INFO] [stderr] | ^^^^^^ the trait `diesel::Insertable<_>` is not implemented for `&user::User` [INFO] [stderr] [INFO] [stderr] error: aborting due to 18 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0308, E0422, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `server_edu`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:28:10 [INFO] [stderr] | [INFO] [stderr] 28 | Json(json!({ [INFO] [stderr] | __________^ [INFO] [stderr] 29 | | "success": User::update(id, update, &connection) [INFO] [stderr] 30 | | })) [INFO] [stderr] | |______^ expected struct `user::User`, found struct `rocket_contrib::json::JsonValue` [INFO] [stderr] | [INFO] [stderr] = note: expected type `user::User` [INFO] [stderr] found type `rocket_contrib::json::JsonValue` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `user::User: serde::ser::Serialize` is not satisfied [INFO] [stderr] --> src/main.rs:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | #[delete("/")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `user::User` [INFO] [stderr] | [INFO] [stderr] = note: required because of the requirements on the impl of `rocket::response::Responder<'_>` for `rocket_contrib::json::Json` [INFO] [stderr] = note: required by `rocket::handler::, rocket::http::Status, rocket::Data>>::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `delete` found for type `user::User` in the current scope [INFO] [stderr] --> src/main.rs:36:26 [INFO] [stderr] | [INFO] [stderr] 36 | "success": User::delete(id, &connection) [INFO] [stderr] | ------^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | function or associated item not found in `user::User` [INFO] [stderr] | [INFO] [stderr] ::: src/user.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct User { [INFO] [stderr] | --------------- function or associated item `delete` not found for this [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:35:10 [INFO] [stderr] | [INFO] [stderr] 35 | Json(json!({ [INFO] [stderr] | __________^ [INFO] [stderr] 36 | | "success": User::delete(id, &connection) [INFO] [stderr] 37 | | })) [INFO] [stderr] | |______^ expected struct `user::User`, found struct `rocket_contrib::json::JsonValue` [INFO] [stderr] | [INFO] [stderr] = note: expected type `user::User` [INFO] [stderr] found type `rocket_contrib::json::JsonValue` [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: the trait bound `&user::User: diesel::Insertable<_>` is not satisfied [INFO] [stderr] --> src/user.rs:16:14 [INFO] [stderr] | [INFO] [stderr] 16 | .values(&user) [INFO] [stderr] | ^^^^^^ the trait `diesel::Insertable<_>` is not implemented for `&user::User` [INFO] [stderr] [INFO] [stderr] error: aborting due to 18 previous errors [INFO] [stderr] [INFO] [stderr] Some errors occurred: E0277, E0308, E0422, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `server_edu`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "6515e94766e68dbd515fbed75e59c22c51376cd1ec8b7a1d7d3123e19674914c"` [INFO] running `"docker" "rm" "-f" "6515e94766e68dbd515fbed75e59c22c51376cd1ec8b7a1d7d3123e19674914c"` [INFO] [stdout] 6515e94766e68dbd515fbed75e59c22c51376cd1ec8b7a1d7d3123e19674914c