[INFO] updating cached repository https://github.com/DavidBM/templic-backend [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 804a965d10a0c13fc29e9c8eecd76e4002dd6341 [INFO] testing DavidBM/templic-backend against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidBM%2Ftemplic-backend" "/workspace/builds/worker-12/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DavidBM/templic-backend on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/DavidBM/templic-backend [INFO] removed path dependency iron-cors from git repo https://github.com/DavidBM/templic-backend [INFO] finished tweaking git repo https://github.com/DavidBM/templic-backend [INFO] tweaked toml for git repo https://github.com/DavidBM/templic-backend written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/DavidBM/templic-backend already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (iron-cors) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-12/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/iron/body-parser.git` [INFO] [stderr] Updating git repository `https://github.com/iron/mount.git` [INFO] [stderr] Updating git repository `https://github.com/iron/iron` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (iron-cors) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] dc19eacfd606e0effe3089cfe92b38da7b6cca75e3c259cf4f79752315eebad3 [INFO] running `"docker" "start" "-a" "dc19eacfd606e0effe3089cfe92b38da7b6cca75e3c259cf4f79752315eebad3"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] warning: dependency (iron-cors) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling serde v0.9.15 [INFO] [stderr] Compiling slog v2.0.12 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling sequence_trie v0.3.6 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling scheduled-thread-pool v0.1.0 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling base64 v0.4.2 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Compiling isatty v0.1.9 [INFO] [stderr] Compiling chrono v0.4.11 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling dotenv v0.8.0 [INFO] [stderr] Compiling blake2-rfc v0.2.18 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling r2d2 v0.7.4 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling argon2rs v0.2.5 [INFO] [stderr] Compiling tokio-io v0.1.13 [INFO] [stderr] Compiling http v0.1.21 [INFO] [stderr] Compiling string v0.2.1 [INFO] [stderr] Compiling tokio-buf v0.1.1 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling slog-json v2.0.2 [INFO] [stderr] Compiling slog-term v2.0.4 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling persistent v0.4.0 [INFO] [stderr] Compiling router v0.6.0 [INFO] [stderr] Compiling iron-cors v0.8.0 [INFO] [stderr] Compiling bodyparser v0.8.0 (https://github.com/iron/body-parser.git#49ae53cd) [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling jsonwebtoken v1.1.3 [INFO] [stderr] Compiling chrono v0.3.0 [INFO] [stderr] Compiling serde_json v0.9.10 [INFO] [stderr] Compiling diesel v0.12.1 [INFO] [stderr] Compiling iron v0.6.0 (https://github.com/iron/iron#e38695bf) [INFO] [stderr] Compiling mount v0.4.0 (https://github.com/iron/mount.git#5dbbc881) [INFO] [stderr] Compiling diesel_infer_schema v0.12.0 [INFO] [stderr] Compiling r2d2-diesel v0.12.0 [INFO] [stderr] Compiling diesel_codegen v0.12.0 [INFO] [stderr] Compiling templic-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: proc-macro derive panicked [INFO] [stderr] --> src/dal/db_schema.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | infer_schema!("dotenv:DATABASE_URL"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: message: Could not load table names from database `postgres://postgres:postgres@localhost/test`: "Failed to establish a database connection at postgres://postgres:postgres@localhost/test. Error: BadConnection(\"could not connect to server: Connection refused\\n\\tIs the server running on host \\\"localhost\\\" (127.0.0.1) and accepting\\n\\tTCP/IP connections on port 5432?\\ncould not connect to server: Cannot assign requested address\\n\\tIs the server running on host \\\"localhost\\\" (::1) and accepting\\n\\tTCP/IP connections on port 5432?\\n\")" [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | #[derive(Debug, Insertable, Deserialize)] [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `users` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:27:46 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Clone, Debug, Queryable, Serialize, AsChangeset, Identifiable)] [INFO] [stderr] | ^^^^^^^^^^^ use of undeclared type or module `users` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:27:59 [INFO] [stderr] | [INFO] [stderr] 27 | #[derive(Clone, Debug, Queryable, Serialize, AsChangeset, Identifiable)] [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `users` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:39:19 [INFO] [stderr] | [INFO] [stderr] 39 | let statement = users::table.filter(users::id.eq(user_id)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:39:39 [INFO] [stderr] | [INFO] [stderr] 39 | let statement = users::table.filter(users::id.eq(user_id)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:52:19 [INFO] [stderr] | [INFO] [stderr] 52 | let statement = users::table.filter( [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:53:4 [INFO] [stderr] | [INFO] [stderr] 53 | users::name.eq(&login.user_or_email) [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:54:8 [INFO] [stderr] | [INFO] [stderr] 54 | .or(users::email.eq(&login.user_or_email)) [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:69:9 [INFO] [stderr] | [INFO] [stderr] 69 | .into(users::table); [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:111:34 [INFO] [stderr] | [INFO] [stderr] 111 | let statement = diesel::delete(users::table.filter(users::id.eq(user_id))); [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `users` [INFO] [stderr] --> src/dal/models/user.rs:111:54 [INFO] [stderr] | [INFO] [stderr] 111 | let statement = diesel::delete(users::table.filter(users::id.eq(user_id))); [INFO] [stderr] | ^^^^^ use of undeclared type or module `users` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:8:17 [INFO] [stderr] | [INFO] [stderr] 8 | #[derive(Debug, Insertable, Deserialize)] [INFO] [stderr] | ^^^^^^^^^^ use of undeclared type or module `posts` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:17:46 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `posts` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:17:60 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `posts` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:17:60 [INFO] [stderr] | [INFO] [stderr] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stderr] | ^^^^^^^^^^^^ use of undeclared type or module `posts` [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | .into(posts::table); [INFO] [stderr] | ^^^^^ use of undeclared type or module `posts` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:45:19 [INFO] [stderr] | [INFO] [stderr] 45 | let statement = posts::table.filter(posts::user_id.eq(user_id)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `posts` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `posts` [INFO] [stderr] --> src/dal/models/post.rs:45:39 [INFO] [stderr] | [INFO] [stderr] 45 | let statement = posts::table.filter(posts::user_id.eq(user_id)); [INFO] [stderr] | ^^^^^ use of undeclared type or module `posts` [INFO] [stderr] [INFO] [stderr] warning: unused import: `dal::db_schema::*` [INFO] [stderr] --> src/dal/models/user.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use dal::db_schema::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `dal::db_schema::*` [INFO] [stderr] --> src/dal/models/post.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use dal::db_schema::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused macro definition [INFO] [stderr] --> src/controllers/utils.rs:121:1 [INFO] [stderr] | [INFO] [stderr] 121 | / macro_rules! filter_struct_values_for_json { [INFO] [stderr] 122 | | ($item:expr, $($key:expr),*) => { [INFO] [stderr] 123 | | { [INFO] [stderr] 124 | | let mut structure = serde_json::to_value(&$item).expect("Not possible to serialize to JSON"); [INFO] [stderr] ... | [INFO] [stderr] 134 | | } [INFO] [stderr] 135 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_macros)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/middlewares/utils.rs:24:29 [INFO] [stderr] | [INFO] [stderr] 24 | fn cause(&self) -> Option<&error::Error> { [INFO] [stderr] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Error::description': use the Display impl or to_string() [INFO] [stderr] --> src/controllers/utils.rs:78:60 [INFO] [stderr] | [INFO] [stderr] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/controllers/login.rs:18:22 [INFO] [stderr] | [INFO] [stderr] 18 | let login_data = get_body_as!(Login, req, response_bad_request); [INFO] [stderr] | ---------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Error::description': use the Display impl or to_string() [INFO] [stderr] --> src/controllers/utils.rs:78:60 [INFO] [stderr] | [INFO] [stderr] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/controllers/login.rs:39:20 [INFO] [stderr] | [INFO] [stderr] 39 | let mut user = get_body_as!(NewUser, req, response_bad_request); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Error::description': use the Display impl or to_string() [INFO] [stderr] --> src/controllers/utils.rs:78:60 [INFO] [stderr] | [INFO] [stderr] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/controllers/user.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | let user = get_body_as!(UpdateUser, req, response_bad_request); [INFO] [stderr] | --------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'iron::Error::description': use the Display impl or to_string() [INFO] [stderr] --> src/controllers/utils.rs:78:60 [INFO] [stderr] | [INFO] [stderr] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] ::: src/controllers/post.rs:6:24 [INFO] [stderr] | [INFO] [stderr] 6 | let mut new_post = get_body_as!(NewPost, req, response_bad_request); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::Fn<(&mut iron::Request<'_, '_>,)>` closure, found `mount::Mount` [INFO] [stderr] --> src/http_adaptor/adaptor.rs:33:30 [INFO] [stderr] | [INFO] [stderr] 33 | let mut chain = Chain::new(routes); [INFO] [stderr] | ^^^^^^ expected an `Fn<(&mut iron::Request<'_, '_>,)>` closure, found `mount::Mount` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/iron-0.6.1/src/middleware/mod.rs:218:19 [INFO] [stderr] | [INFO] [stderr] 218 | pub fn new(handler: H) -> Chain { [INFO] [stderr] | ------- required by this bound in `iron::Chain::new` [INFO] [stderr] | [INFO] [stderr] = help: the trait `for<'r, 's, 't0> std::ops::Fn<(&'r mut iron::Request<'s, 't0>,)>` is not implemented for `mount::Mount` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::Handler` for `mount::Mount` [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::FnOnce<(&mut iron::Request<'_, '_>,)>` closure, found `mount::Mount` [INFO] [stderr] --> src/http_adaptor/adaptor.rs:33:30 [INFO] [stderr] | [INFO] [stderr] 33 | let mut chain = Chain::new(routes); [INFO] [stderr] | ^^^^^^ expected an `FnOnce<(&mut iron::Request<'_, '_>,)>` closure, found `mount::Mount` [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/iron-0.6.1/src/middleware/mod.rs:218:19 [INFO] [stderr] | [INFO] [stderr] 218 | pub fn new(handler: H) -> Chain { [INFO] [stderr] | ------- required by this bound in `iron::Chain::new` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::FnOnce<(&mut iron::Request<'_, '_>,)>` is not implemented for `mount::Mount` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::Handler` for `mount::Mount` [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::Fn<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stderr] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] ... [INFO] [stderr] 43 | declare_multiple_endpoints!( [INFO] [stderr] | _____- [INFO] [stderr] 44 | | routes, "/", [INFO] [stderr] 45 | | "ping" => get; "/ping"; [] => TestController::ping => [], [INFO] [stderr] 46 | | "read_login_user" => get; "/read_login_user"; [loggin.clone()] => TestController::read_login_user => [], [INFO] [stderr] 47 | | "login" => post; "/login"; [salt.clone()] => LoginController::login => [], [INFO] [stderr] 48 | | "register" => post; "/register"; [salt.clone()] => LoginController::register => [] [INFO] [stderr] 49 | | ); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: the trait `for<'r> std::ops::Fn<(&'r mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::Router` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::FnOnce<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stderr] | ^^^^^^^^^^ expected an `FnOnce<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] ... [INFO] [stderr] 43 | declare_multiple_endpoints!( [INFO] [stderr] | _____- [INFO] [stderr] 44 | | routes, "/", [INFO] [stderr] 45 | | "ping" => get; "/ping"; [] => TestController::ping => [], [INFO] [stderr] 46 | | "read_login_user" => get; "/read_login_user"; [loggin.clone()] => TestController::read_login_user => [], [INFO] [stderr] 47 | | "login" => post; "/login"; [salt.clone()] => LoginController::login => [], [INFO] [stderr] 48 | | "register" => post; "/register"; [salt.clone()] => LoginController::register => [] [INFO] [stderr] 49 | | ); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::FnOnce<(&mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::Router` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::Fn<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stderr] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] ... [INFO] [stderr] 51 | declare_multiple_endpoints!( [INFO] [stderr] | _____- [INFO] [stderr] 52 | | routes, "/user/", [INFO] [stderr] 53 | | "get_me" => get; "/me"; [loggin.clone()] => UserController::get_me => [], [INFO] [stderr] 54 | | "get_user_posts" => get; "/me/post"; [loggin.clone()] => UserController::get_user_posts => [], [INFO] [stderr] ... | [INFO] [stderr] 57 | | "update_user" => put; "/:id"; [] => UserController::update => [] [INFO] [stderr] 58 | | ); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: the trait `for<'r> std::ops::Fn<(&'r mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::Router` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::FnOnce<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stderr] | ^^^^^^^^^^ expected an `FnOnce<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] ... [INFO] [stderr] 51 | declare_multiple_endpoints!( [INFO] [stderr] | _____- [INFO] [stderr] 52 | | routes, "/user/", [INFO] [stderr] 53 | | "get_me" => get; "/me"; [loggin.clone()] => UserController::get_me => [], [INFO] [stderr] 54 | | "get_user_posts" => get; "/me/post"; [loggin.clone()] => UserController::get_user_posts => [], [INFO] [stderr] ... | [INFO] [stderr] 57 | | "update_user" => put; "/:id"; [] => UserController::update => [] [INFO] [stderr] 58 | | ); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::FnOnce<(&mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::Router` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::Fn<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stderr] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] ... [INFO] [stderr] 60 | declare_multiple_endpoints!( [INFO] [stderr] | _____- [INFO] [stderr] 61 | | routes, "/post/", [INFO] [stderr] 62 | | "create_post" => post; "/"; [loggin.clone()] => PostController::create => [] [INFO] [stderr] 63 | | ); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: the trait `for<'r> std::ops::Fn<(&'r mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::Router` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0277]: expected a `std::ops::FnOnce<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stderr] | [INFO] [stderr] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stderr] | ^^^^^^^^^^ expected an `FnOnce<(&mut iron::request::Request,)>` closure, found `router::Router` [INFO] [stderr] ... [INFO] [stderr] 60 | declare_multiple_endpoints!( [INFO] [stderr] | _____- [INFO] [stderr] 61 | | routes, "/post/", [INFO] [stderr] 62 | | "create_post" => post; "/"; [loggin.clone()] => PostController::create => [] [INFO] [stderr] 63 | | ); [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::FnOnce<(&mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stderr] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::Router` [INFO] [stderr] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused import: `diesel::prelude` [INFO] [stderr] --> src/dal/models/post.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use diesel::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 27 previous errors; 9 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `templic-backend`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "dc19eacfd606e0effe3089cfe92b38da7b6cca75e3c259cf4f79752315eebad3"` [INFO] running `"docker" "rm" "-f" "dc19eacfd606e0effe3089cfe92b38da7b6cca75e3c259cf4f79752315eebad3"` [INFO] [stdout] dc19eacfd606e0effe3089cfe92b38da7b6cca75e3c259cf4f79752315eebad3