[INFO] updating cached repository https://github.com/romainbellande/rust-hyper-jsonapi [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] 610e9fa063204a3cb3c38078c6d510da82e6f168 [INFO] checking romainbellande/rust-hyper-jsonapi against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fromainbellande%2Frust-hyper-jsonapi" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/romainbellande/rust-hyper-jsonapi on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/romainbellande/rust-hyper-jsonapi [INFO] removed path dependency japi from git repo https://github.com/romainbellande/rust-hyper-jsonapi [INFO] finished tweaking git repo https://github.com/romainbellande/rust-hyper-jsonapi [INFO] tweaked toml for git repo https://github.com/romainbellande/rust-hyper-jsonapi written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/romainbellande/rust-hyper-jsonapi already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (japi) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-0/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] warning: dependency (japi) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 17bb08dc32fb0fcc199e6ae422d0536743267daf24d524adfc3e00e0123d0c93 [INFO] running `"docker" "start" "-a" "17bb08dc32fb0fcc199e6ae422d0536743267daf24d524adfc3e00e0123d0c93"` [INFO] [stderr] warning: dependency (japi) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling diesel v0.16.0 [INFO] [stderr] Compiling error-chain v0.10.0 [INFO] [stderr] Checking tokio-reactor v0.1.10 [INFO] [stderr] Checking scheduled-thread-pool v0.2.2 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking tokio-threadpool v0.1.16 [INFO] [stderr] Checking dotenv v0.10.1 [INFO] [stderr] Checking r2d2 v0.8.6 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking hyper v0.12.35 [INFO] [stderr] Compiling diesel_infer_schema v0.16.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling diesel_derives v1.4.1 [INFO] [stderr] Checking serde v1.0.101 [INFO] [stderr] Checking uuid v0.6.5 [INFO] [stderr] Checking serde_json v1.0.41 [INFO] [stderr] Checking envy v0.3.3 [INFO] [stderr] Checking diesel v1.4.3 [INFO] [stderr] Checking japi v0.2.0 [INFO] [stderr] Compiling diesel_codegen v0.16.1 [INFO] [stderr] Checking r2d2-diesel v1.0.0 [INFO] [stderr] Checking jsonapi-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `japi::model` [INFO] [stderr] --> src/modules/hero/model.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | use japi::model::JApiModel; [INFO] [stderr] | ^^^^^ could not find `model` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::japi_model` [INFO] [stderr] --> src/modules/hero/model.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use japi::japi_model; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `japi_model` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::api` [INFO] [stderr] --> src/modules/hero/controller.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use japi::api::{DocumentDto}; [INFO] [stderr] | ^^^ could not find `api` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::model` [INFO] [stderr] --> src/modules/hero/controller.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | use japi::model::JApiModel; [INFO] [stderr] | ^^^^^ could not find `model` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::controller` [INFO] [stderr] --> src/modules/hero/controller.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | use japi::controller::Controller; [INFO] [stderr] | ^^^^^^^^^^ could not find `controller` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::query` [INFO] [stderr] --> src/modules/hero/controller.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | use japi::query::{build_japi_reponse}; [INFO] [stderr] | ^^^^^ could not find `query` in `japi` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `japi_model` [INFO] [stderr] --> src/modules/hero/model.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | japi_model!(Hero; "hero"); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/helpers.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | pub type BoxFuture = Box, Error=hyper::Error> + Send>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future, Error=hyper::Error> + Send` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::model` [INFO] [stderr] --> src/modules/hero/model.rs:6:11 [INFO] [stderr] | [INFO] [stderr] 6 | use japi::model::JApiModel; [INFO] [stderr] | ^^^^^ could not find `model` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::japi_model` [INFO] [stderr] --> src/modules/hero/model.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use japi::japi_model; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ no `japi_model` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::api` [INFO] [stderr] --> src/modules/hero/controller.rs:10:11 [INFO] [stderr] | [INFO] [stderr] 10 | use japi::api::{DocumentDto}; [INFO] [stderr] | ^^^ could not find `api` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::model` [INFO] [stderr] --> src/modules/hero/controller.rs:11:11 [INFO] [stderr] | [INFO] [stderr] 11 | use japi::model::JApiModel; [INFO] [stderr] | ^^^^^ could not find `model` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::controller` [INFO] [stderr] --> src/modules/hero/controller.rs:12:11 [INFO] [stderr] | [INFO] [stderr] 12 | use japi::controller::Controller; [INFO] [stderr] | ^^^^^^^^^^ could not find `controller` in `japi` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `japi::query` [INFO] [stderr] --> src/modules/hero/controller.rs:13:11 [INFO] [stderr] | [INFO] [stderr] 13 | use japi::query::{build_japi_reponse}; [INFO] [stderr] | ^^^^^ could not find `query` in `japi` [INFO] [stderr] [INFO] [stderr] error: cannot determine resolution for the macro `japi_model` [INFO] [stderr] --> src/modules/hero/model.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | japi_model!(Hero; "hero"); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: import resolution is stuck, try simplifying macro imports [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/helpers.rs:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | pub type BoxFuture = Box, Error=hyper::Error> + Send>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Future, Error=hyper::Error> + Send` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `serialize` found for type `&modules::hero::model::Hero` in the current scope [INFO] [stderr] --> src/modules/hero/controller.rs:17:84 [INFO] [stderr] | [INFO] [stderr] 17 | let serialized_heroes: Vec<_> = Hero::read(&connection).iter().map(|hero| hero.serialize()).collect(); [INFO] [stderr] | ^^^^^^^^^ method not found in `&modules::hero::model::Hero` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] `use crate::serde::Serialize;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `serialize` found for type `modules::hero::model::Hero` in the current scope [INFO] [stderr] --> src/modules/hero/controller.rs:29:56 [INFO] [stderr] | [INFO] [stderr] 29 | let data = Hero::create(hero_dto, &connection).serialize(); [INFO] [stderr] | ^^^^^^^^^ method not found in `modules::hero::model::Hero` [INFO] [stderr] | [INFO] [stderr] ::: src/modules/hero/model.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct Hero { [INFO] [stderr] | --------------- method `serialize` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] `use crate::serde::Serialize;` [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `jsonapi-rust`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `serialize` found for type `&modules::hero::model::Hero` in the current scope [INFO] [stderr] --> src/modules/hero/controller.rs:17:84 [INFO] [stderr] | [INFO] [stderr] 17 | let serialized_heroes: Vec<_> = Hero::read(&connection).iter().map(|hero| hero.serialize()).collect(); [INFO] [stderr] | ^^^^^^^^^ method not found in `&modules::hero::model::Hero` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] `use crate::serde::Serialize;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `serialize` found for type `modules::hero::model::Hero` in the current scope [INFO] [stderr] --> src/modules/hero/controller.rs:29:56 [INFO] [stderr] | [INFO] [stderr] 29 | let data = Hero::create(hero_dto, &connection).serialize(); [INFO] [stderr] | ^^^^^^^^^ method not found in `modules::hero::model::Hero` [INFO] [stderr] | [INFO] [stderr] ::: src/modules/hero/model.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | pub struct Hero { [INFO] [stderr] | --------------- method `serialize` not found for this [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stderr] `use crate::serde::Serialize;` [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: could not compile `jsonapi-rust`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "17bb08dc32fb0fcc199e6ae422d0536743267daf24d524adfc3e00e0123d0c93"` [INFO] running `"docker" "rm" "-f" "17bb08dc32fb0fcc199e6ae422d0536743267daf24d524adfc3e00e0123d0c93"` [INFO] [stdout] 17bb08dc32fb0fcc199e6ae422d0536743267daf24d524adfc3e00e0123d0c93