[INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 804a965d10a0c13fc29e9c8eecd76e4002dd6341 [INFO] testing DavidBM/templic-backend against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDavidBM%2Ftemplic-backend" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DavidBM/templic-backend on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "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-4/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" "+1.45.2" "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-4/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" "+1.45.2" "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" "+1.45.2" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe3bb83c2d2f480246556ea2126ea0341831a0a734c7b3ff2bcf6b11a7292a0c [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" "fe3bb83c2d2f480246556ea2126ea0341831a0a734c7b3ff2bcf6b11a7292a0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe3bb83c2d2f480246556ea2126ea0341831a0a734c7b3ff2bcf6b11a7292a0c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe3bb83c2d2f480246556ea2126ea0341831a0a734c7b3ff2bcf6b11a7292a0c", kill_on_drop: false }` [INFO] [stdout] fe3bb83c2d2f480246556ea2126ea0341831a0a734c7b3ff2bcf6b11a7292a0c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4f400c4090b85eca828414059884473322cc6be32f07748f010bcaedb51e7b05 [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" "4f400c4090b85eca828414059884473322cc6be32f07748f010bcaedb51e7b05", 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 libc v0.2.74 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling futures v0.1.29 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling tinyvec v0.3.3 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling modifier v0.1.0 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling rustc-serialize v0.3.24 [INFO] [stderr] Compiling pq-sys v0.4.6 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling serde v0.9.15 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling arrayvec v0.4.12 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling antidote v1.0.0 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling constant_time_eq v0.1.5 [INFO] [stderr] Compiling slog v2.0.12 [INFO] [stderr] Compiling route-recognizer v0.1.13 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling dtoa v0.4.6 [INFO] [stderr] Compiling itoa v0.3.4 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling sequence_trie v0.3.6 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling unsafe-any v0.4.2 [INFO] [stderr] Compiling lock_api v0.3.4 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling scheduled-thread-pool v0.1.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Compiling indexmap v1.5.1 [INFO] [stderr] Compiling typemap v0.3.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling hyper v0.12.35 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling plugin v0.2.6 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling blake2-rfc v0.2.18 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling base64 v0.4.2 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling tokio-sync v0.1.8 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling r2d2 v0.7.4 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling isatty v0.1.9 [INFO] [stderr] Compiling argon2rs v0.2.5 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling tokio-executor v0.1.10 [INFO] [stderr] Compiling crossbeam-queue v0.2.3 [INFO] [stderr] Compiling bytes v0.4.12 [INFO] [stderr] Compiling futures-cpupool v0.1.8 [INFO] [stderr] Compiling serde_codegen_internals v0.14.2 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling tokio-timer v0.2.13 [INFO] [stderr] Compiling tokio-current-thread v0.1.7 [INFO] [stderr] Compiling num-traits v0.1.43 [INFO] [stderr] Compiling crossbeam-deque v0.7.3 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling rand v0.3.23 [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 chrono v0.4.13 [INFO] [stderr] Compiling tokio-threadpool v0.1.18 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling tokio-reactor v0.1.12 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling chrono v0.3.0 [INFO] [stderr] Compiling serde_json v0.9.10 [INFO] [stderr] Compiling serde_derive v0.9.15 [INFO] [stderr] Compiling phf_codegen v0.7.24 [INFO] [stderr] Compiling mime_guess v1.8.8 [INFO] [stderr] Compiling tokio-tcp v0.1.4 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling dotenv v0.8.0 [INFO] [stderr] Compiling slog-json v2.0.2 [INFO] [stderr] Compiling slog-term v2.0.4 [INFO] [stderr] Compiling diesel v0.12.1 [INFO] [stderr] Compiling iron v0.6.1 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling persistent v0.4.0 [INFO] [stderr] Compiling iron-cors v0.8.0 [INFO] [stderr] Compiling router v0.6.0 [INFO] [stderr] Compiling bodyparser v0.8.0 (https://github.com/iron/body-parser.git#49ae53cd) [INFO] [stderr] Compiling jsonwebtoken v1.1.3 [INFO] [stderr] Compiling iron v0.6.0 (https://github.com/iron/iron#e38695bf) [INFO] [stderr] Compiling diesel_infer_schema v0.12.0 [INFO] [stderr] Compiling r2d2-diesel v0.12.0 [INFO] [stderr] Compiling mount v0.4.0 (https://github.com/iron/mount.git#5dbbc881) [INFO] [stderr] Compiling diesel_codegen v0.12.0 [INFO] [stderr] Compiling 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 type 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 type 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 type 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 type 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 type 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 type 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 type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `users` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type 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 type 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 type 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 type 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 type 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 type 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 type 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 type 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 type or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type or module `posts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type 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 type 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 item '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 item '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 item '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 item '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 `std::ops::Fn<(&mut iron::Request<'_, '_>,)>` closure, found `mount::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::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> std::ops::Fn<(&'r mut iron::Request<'s, 't0>,)>` is not implemented for `mount::Mount` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::Handler` for `mount::Mount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `std::ops::FnOnce<(&mut iron::Request<'_, '_>,)>` closure, found `mount::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 `FnOnce<(&mut iron::Request<'_, '_>,)>` closure, found `mount::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 `std::ops::FnOnce<(&mut iron::Request<'_, '_>,)>` is not implemented for `mount::Mount` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::Handler` for `mount::Mount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: expected a `std::ops::Fn<(&mut iron::request::Request,)>` closure, found `router::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::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> std::ops::Fn<(&'r mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::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 `std::ops::FnOnce<(&mut iron::request::Request,)>` closure, found `router::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 `FnOnce<(&mut iron::request::Request,)>` closure, found `router::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 `std::ops::FnOnce<(&mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::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 `std::ops::Fn<(&mut iron::request::Request,)>` closure, found `router::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::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> std::ops::Fn<(&'r mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::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 `std::ops::FnOnce<(&mut iron::request::Request,)>` closure, found `router::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 `FnOnce<(&mut iron::request::Request,)>` closure, found `router::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 `std::ops::FnOnce<(&mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::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 `std::ops::Fn<(&mut iron::request::Request,)>` closure, found `router::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::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> std::ops::Fn<(&'r mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::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 `std::ops::FnOnce<(&mut iron::request::Request,)>` closure, found `router::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 `FnOnce<(&mut iron::request::Request,)>` closure, found `router::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 `std::ops::FnOnce<(&mut iron::request::Request,)>` is not implemented for `router::Router` [INFO] [stdout] = note: required because of the requirements on the impl of `iron::middleware::Handler` for `router::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 27 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] running `Command { std: "docker" "inspect" "4f400c4090b85eca828414059884473322cc6be32f07748f010bcaedb51e7b05", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f400c4090b85eca828414059884473322cc6be32f07748f010bcaedb51e7b05", kill_on_drop: false }` [INFO] [stdout] 4f400c4090b85eca828414059884473322cc6be32f07748f010bcaedb51e7b05