[INFO] cloning repository https://github.com/DavidBM/templic-backend [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DavidBM/templic-backend" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidBM%2Ftemplic-backend", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidBM%2Ftemplic-backend'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 804a965d10a0c13fc29e9c8eecd76e4002dd6341 [INFO] checking DavidBM/templic-backend against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidBM%2Ftemplic-backend" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DavidBM/templic-backend on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-7/source/Cargo.toml [INFO] crate git repo https://github.com/DavidBM/templic-backend already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-7/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 `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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 `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 456456f5b1d8660c1b0faeee2532ea25ccec411db85c62896cf10e6418e1cce0 [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" "456456f5b1d8660c1b0faeee2532ea25ccec411db85c62896cf10e6418e1cce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "456456f5b1d8660c1b0faeee2532ea25ccec411db85c62896cf10e6418e1cce0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "456456f5b1d8660c1b0faeee2532ea25ccec411db85c62896cf10e6418e1cce0", kill_on_drop: false }` [INFO] [stdout] 456456f5b1d8660c1b0faeee2532ea25ccec411db85c62896cf10e6418e1cce0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23b599e11d4e5caef9f4c7d195ee083b81900f96da27413e0d32d6085d079992 [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" "23b599e11d4e5caef9f4c7d195ee083b81900f96da27413e0d32d6085d079992", kill_on_drop: false }` [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 version_check v0.1.5 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling siphasher v0.2.3 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Checking language-tags v0.2.2 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking serde v0.9.15 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Checking antidote v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking slog v2.0.12 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Checking unsafe-any v0.4.2 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Checking tokio-sync v0.1.8 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Checking scheduled-thread-pool v0.1.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Checking typemap v0.3.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking isatty v0.1.9 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking base64 v0.4.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking plugin v0.2.6 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking blake2-rfc v0.2.18 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking r2d2 v0.7.4 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking tokio-executor v0.1.10 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking parking_lot_core v0.6.2 [INFO] [stderr] Checking rust-crypto v0.2.36 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Checking tokio-io v0.1.13 [INFO] [stderr] Checking http v0.1.21 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling phf_shared v0.7.24 [INFO] [stderr] Checking argon2rs v0.2.5 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Checking tokio-timer v0.2.13 [INFO] [stderr] Checking tokio-current-thread v0.1.7 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Compiling phf v0.7.24 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Checking serde_json v0.9.10 [INFO] [stderr] Checking chrono v0.3.0 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Checking tokio-threadpool v0.1.18 [INFO] [stderr] Checking tokio-reactor v0.1.12 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Checking slog-term v2.0.4 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking tokio-tcp v0.1.4 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Checking diesel v0.12.1 [INFO] [stderr] Checking dotenv v0.8.0 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking jsonwebtoken v1.1.3 [INFO] [stderr] Checking serde_json v1.0.58 [INFO] [stderr] Checking iron v0.6.1 [INFO] [stderr] Checking persistent v0.4.0 [INFO] [stderr] Checking router v0.6.0 [INFO] [stderr] Checking iron-cors v0.8.0 [INFO] [stderr] Checking slog-json v2.0.2 [INFO] [stderr] Checking bodyparser v0.8.0 (https://github.com/iron/body-parser.git#49ae53cd) [INFO] [stderr] Checking r2d2-diesel v0.12.0 [INFO] [stderr] Compiling diesel_infer_schema v0.12.0 [INFO] [stderr] Checking iron v0.6.0 (https://github.com/iron/iron?branch=master#e38695bf) [INFO] [stderr] Compiling diesel_codegen v0.12.0 [INFO] [stderr] Checking mount v0.4.0 (https://github.com/iron/mount.git#5dbbc881) [INFO] [stderr] Checking templic-backend v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> src/dal/db_schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | infer_schema!("dotenv:DATABASE_URL"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = 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] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Insertable, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `users` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Clone, Debug, Queryable, Serialize, AsChangeset, Identifiable)] [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `users` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:27:59 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Clone, Debug, Queryable, Serialize, AsChangeset, Identifiable)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `users` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | let statement = users::table.filter(users::id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | let statement = users::table.filter(users::id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | let statement = users::table.filter( [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | users::name.eq(&login.user_or_email) [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | .or(users::email.eq(&login.user_or_email)) [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | .into(users::table); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:111:34 [INFO] [stdout] | [INFO] [stdout] 111 | let statement = diesel::delete(users::table.filter(users::id.eq(user_id))); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:111:54 [INFO] [stdout] | [INFO] [stdout] 111 | let statement = diesel::delete(users::table.filter(users::id.eq(user_id))); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Insertable, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:17:60 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: proc-macro derive panicked [INFO] [stdout] --> src/dal/db_schema.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | infer_schema!("dotenv:DATABASE_URL"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = 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] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:17:60 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | .into(posts::table); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | let statement = posts::table.filter(posts::user_id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 45 | let statement = posts::table.filter(posts::user_id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dal::db_schema::*` [INFO] [stdout] --> src/dal/models/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use dal::db_schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dal::db_schema::*` [INFO] [stdout] --> src/dal/models/post.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dal::db_schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/controllers/utils.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / macro_rules! filter_struct_values_for_json { [INFO] [stdout] 122 | | ($item:expr, $($key:expr),*) => { [INFO] [stdout] 123 | | { [INFO] [stdout] 124 | | let mut structure = serde_json::to_value(&$item).expect("Not possible to serialize to JSON"); [INFO] [stdout] ... | [INFO] [stdout] 134 | | } [INFO] [stdout] 135 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/middlewares/utils.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Debug, Insertable, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `users` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:27:46 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Clone, Debug, Queryable, Serialize, AsChangeset, Identifiable)] [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared crate or module `users` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:27:59 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Clone, Debug, Queryable, Serialize, AsChangeset, Identifiable)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `users` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | let statement = users::table.filter(users::id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:39:39 [INFO] [stdout] | [INFO] [stdout] 39 | let statement = users::table.filter(users::id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | let statement = users::table.filter( [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | users::name.eq(&login.user_or_email) [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | .or(users::email.eq(&login.user_or_email)) [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | .into(users::table); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:111:34 [INFO] [stdout] | [INFO] [stdout] 111 | let statement = diesel::delete(users::table.filter(users::id.eq(user_id))); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `users` [INFO] [stdout] --> src/dal/models/user.rs:111:54 [INFO] [stdout] | [INFO] [stdout] 111 | let statement = diesel::delete(users::table.filter(users::id.eq(user_id))); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:8:17 [INFO] [stdout] | [INFO] [stdout] 8 | #[derive(Debug, Insertable, Deserialize)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:17:46 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:17:60 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:17:60 [INFO] [stdout] | [INFO] [stdout] 17 | #[derive(Clone, Debug, Queryable, Serialize, Identifiable, Associations)] [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | .into(posts::table); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | let statement = posts::table.filter(posts::user_id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `posts` [INFO] [stdout] --> src/dal/models/post.rs:45:39 [INFO] [stdout] | [INFO] [stdout] 45 | let statement = posts::table.filter(posts::user_id.eq(user_id)); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dal::db_schema::*` [INFO] [stdout] --> src/dal/models/user.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use dal::db_schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `dal::db_schema::*` [INFO] [stdout] --> src/dal/models/post.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use dal::db_schema::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/controllers/utils.rs:121:1 [INFO] [stdout] | [INFO] [stdout] 121 | / macro_rules! filter_struct_values_for_json { [INFO] [stdout] 122 | | ($item:expr, $($key:expr),*) => { [INFO] [stdout] 123 | | { [INFO] [stdout] 124 | | let mut structure = serde_json::to_value(&$item).expect("Not possible to serialize to JSON"); [INFO] [stdout] ... | [INFO] [stdout] 134 | | } [INFO] [stdout] 135 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/middlewares/utils.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | fn cause(&self) -> Option<&error::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ help: use `dyn`: `dyn error::Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/login.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | let login_data = get_body_as!(Login, req, response_bad_request); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/login.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut user = get_body_as!(NewUser, req, response_bad_request); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/user.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | let user = get_body_as!(UpdateUser, req, response_bad_request); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/post.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | let mut new_post = get_body_as!(NewPost, req, response_bad_request); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/login.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | let login_data = get_body_as!(Login, req, response_bad_request); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/login.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 39 | let mut user = get_body_as!(NewUser, req, response_bad_request); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/user.rs:45:16 [INFO] [stdout] | [INFO] [stdout] 45 | let user = get_body_as!(UpdateUser, req, response_bad_request); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `iron::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/controllers/utils.rs:78:60 [INFO] [stdout] | [INFO] [stdout] 78 | Err(error) => return $error_fn(format!("{}: {}", error.description(), error)) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/controllers/post.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | let mut new_post = get_body_as!(NewPost, req, response_bad_request); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::Request<'_, '_>,)>` closure, found `Mount` [INFO] [stdout] --> src/http_adaptor/adaptor.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | let mut chain = Chain::new(routes); [INFO] [stdout] | ^^^^^^ expected an `Fn<(&mut iron::Request<'_, '_>,)>` closure, found `Mount` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/iron-0.6.1/src/middleware/mod.rs:218:19 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn new(handler: H) -> Chain { [INFO] [stdout] | ------- required by this bound in `iron::Chain::new` [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r, 's, 't0> Fn<(&'r mut iron::Request<'s, 't0>,)>` is not implemented for `Mount` [INFO] [stdout] = note: required because of the requirements on the impl of `Handler` for `Mount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stdout] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] ... [INFO] [stdout] 43 | declare_multiple_endpoints!( [INFO] [stdout] | _____- [INFO] [stdout] 44 | | routes, "/", [INFO] [stdout] 45 | | "ping" => get; "/ping"; [] => TestController::ping => [], [INFO] [stdout] 46 | | "read_login_user" => get; "/read_login_user"; [loggin.clone()] => TestController::read_login_user => [], [INFO] [stdout] 47 | | "login" => post; "/login"; [salt.clone()] => LoginController::login => [], [INFO] [stdout] 48 | | "register" => post; "/register"; [salt.clone()] => LoginController::register => [] [INFO] [stdout] 49 | | ); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r> Fn<(&'r mut iron::request::Request,)>` is not implemented for `Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `Router` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stdout] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] ... [INFO] [stdout] 51 | declare_multiple_endpoints!( [INFO] [stdout] | _____- [INFO] [stdout] 52 | | routes, "/user/", [INFO] [stdout] 53 | | "get_me" => get; "/me"; [loggin.clone()] => UserController::get_me => [], [INFO] [stdout] 54 | | "get_user_posts" => get; "/me/post"; [loggin.clone()] => UserController::get_user_posts => [], [INFO] [stdout] ... | [INFO] [stdout] 57 | | "update_user" => put; "/:id"; [] => UserController::update => [] [INFO] [stdout] 58 | | ); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r> Fn<(&'r mut iron::request::Request,)>` is not implemented for `Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `Router` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stdout] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] ... [INFO] [stdout] 60 | declare_multiple_endpoints!( [INFO] [stdout] | _____- [INFO] [stdout] 61 | | routes, "/post/", [INFO] [stdout] 62 | | "create_post" => post; "/"; [loggin.clone()] => PostController::create => [] [INFO] [stdout] 63 | | ); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r> Fn<(&'r mut iron::request::Request,)>` is not implemented for `Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `Router` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/dal/models/post.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `templic-backend` [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] [stdout] error[E0277]: expected a `Fn<(&mut iron::Request<'_, '_>,)>` closure, found `Mount` [INFO] [stdout] --> src/http_adaptor/adaptor.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | let mut chain = Chain::new(routes); [INFO] [stdout] | ^^^^^^ expected an `Fn<(&mut iron::Request<'_, '_>,)>` closure, found `Mount` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/iron-0.6.1/src/middleware/mod.rs:218:19 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn new(handler: H) -> Chain { [INFO] [stdout] | ------- required by this bound in `iron::Chain::new` [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r, 's, 't0> Fn<(&'r mut iron::Request<'s, 't0>,)>` is not implemented for `Mount` [INFO] [stdout] = note: required because of the requirements on the impl of `Handler` for `Mount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stdout] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] ... [INFO] [stdout] 43 | declare_multiple_endpoints!( [INFO] [stdout] | _____- [INFO] [stdout] 44 | | routes, "/", [INFO] [stdout] 45 | | "ping" => get; "/ping"; [] => TestController::ping => [], [INFO] [stdout] 46 | | "read_login_user" => get; "/read_login_user"; [loggin.clone()] => TestController::read_login_user => [], [INFO] [stdout] 47 | | "login" => post; "/login"; [salt.clone()] => LoginController::login => [], [INFO] [stdout] 48 | | "register" => post; "/register"; [salt.clone()] => LoginController::register => [] [INFO] [stdout] 49 | | ); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r> Fn<(&'r mut iron::request::Request,)>` is not implemented for `Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `Router` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stdout] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] ... [INFO] [stdout] 51 | declare_multiple_endpoints!( [INFO] [stdout] | _____- [INFO] [stdout] 52 | | routes, "/user/", [INFO] [stdout] 53 | | "get_me" => get; "/me"; [loggin.clone()] => UserController::get_me => [], [INFO] [stdout] 54 | | "get_user_posts" => get; "/me/post"; [loggin.clone()] => UserController::get_user_posts => [], [INFO] [stdout] ... | [INFO] [stdout] 57 | | "update_user" => put; "/:id"; [] => UserController::update => [] [INFO] [stdout] 58 | | ); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r> Fn<(&'r mut iron::request::Request,)>` is not implemented for `Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `Router` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] --> src/http_adaptor/endpoints.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | $main_router.mount($mount_route, sub_router); [INFO] [stdout] | ^^^^^^^^^^ expected an `Fn<(&mut iron::request::Request,)>` closure, found `Router` [INFO] [stdout] ... [INFO] [stdout] 60 | declare_multiple_endpoints!( [INFO] [stdout] | _____- [INFO] [stdout] 61 | | routes, "/post/", [INFO] [stdout] 62 | | "create_post" => post; "/"; [loggin.clone()] => PostController::create => [] [INFO] [stdout] 63 | | ); [INFO] [stdout] | |______- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `for<'r> Fn<(&'r mut iron::request::Request,)>` is not implemented for `Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `Router` [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `diesel::prelude` [INFO] [stdout] --> src/dal/models/post.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use diesel::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "23b599e11d4e5caef9f4c7d195ee083b81900f96da27413e0d32d6085d079992", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23b599e11d4e5caef9f4c7d195ee083b81900f96da27413e0d32d6085d079992", kill_on_drop: false }` [INFO] [stdout] 23b599e11d4e5caef9f4c7d195ee083b81900f96da27413e0d32d6085d079992