[INFO] fetching crate rocketjson_data 1.0.5... [INFO] testing rocketjson_data-1.0.5 against 1.55.0 for beta-1.56-1 [INFO] extracting crate rocketjson_data 1.0.5 into /workspace/builds/worker-0/source [INFO] validating manifest of crates.io crate rocketjson_data 1.0.5 on toolchain 1.55.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rocketjson_data 1.0.5 [INFO] finished tweaking crates.io crate rocketjson_data 1.0.5 [INFO] tweaked toml for crates.io crate rocketjson_data 1.0.5 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.55.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "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" "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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] dea5706661f90a2a46617eea65cc01318ff254ea05c018735b9a9615070654b7 [INFO] running `Command { std: "docker" "start" "-a" "dea5706661f90a2a46617eea65cc01318ff254ea05c018735b9a9615070654b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dea5706661f90a2a46617eea65cc01318ff254ea05c018735b9a9615070654b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dea5706661f90a2a46617eea65cc01318ff254ea05c018735b9a9615070654b7", kill_on_drop: false }` [INFO] [stdout] dea5706661f90a2a46617eea65cc01318ff254ea05c018735b9a9615070654b7 [INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af1e15f90caee67f27df76b487b6d72b034d6427c40a8f22abfc902a01d9e516 [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" "af1e15f90caee67f27df76b487b6d72b034d6427c40a8f22abfc902a01d9e516", kill_on_drop: false }` [INFO] [stderr] Compiling inlinable_string v0.1.14 [INFO] [stderr] Compiling state v0.5.2 [INFO] [stderr] Compiling spin v0.9.2 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.9.1 [INFO] [stderr] Compiling tokio v1.11.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling uncased v0.9.6 [INFO] [stderr] Compiling cookie v0.15.1 [INFO] [stderr] Compiling multer v2.0.1 [INFO] [stderr] Compiling figment v0.10.6 [INFO] [stderr] Compiling rocket v0.5.0-rc.1 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling twoway v0.2.2 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling ref-cast-impl v1.0.6 [INFO] [stderr] Compiling async-stream-impl v0.3.2 [INFO] [stderr] Compiling validator_types v0.14.0 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling devise_core v0.3.1 [INFO] [stderr] Compiling pear_codegen v0.2.3 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling ref-cast v1.0.6 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling async-stream v0.3.2 [INFO] [stderr] Compiling devise_codegen v0.3.1 [INFO] [stderr] Compiling pear v0.2.3 [INFO] [stderr] Compiling devise v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Compiling ubyte v0.10.1 [INFO] [stderr] Compiling tokio-util v0.6.8 [INFO] [stderr] Compiling tokio-stream v0.1.7 [INFO] [stderr] Compiling validator v0.14.0 [INFO] [stderr] Compiling h2 v0.3.4 [INFO] [stderr] Compiling hyper v0.14.12 [INFO] [stderr] Compiling rocket_http v0.5.0-rc.1 [INFO] [stderr] Compiling rocket_codegen v0.5.0-rc.1 [INFO] [stderr] Compiling rocketjson_data v1.0.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 46s [INFO] running `Command { std: "docker" "inspect" "af1e15f90caee67f27df76b487b6d72b034d6427c40a8f22abfc902a01d9e516", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af1e15f90caee67f27df76b487b6d72b034d6427c40a8f22abfc902a01d9e516", kill_on_drop: false }` [INFO] [stdout] af1e15f90caee67f27df76b487b6d72b034d6427c40a8f22abfc902a01d9e516 [INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] caeb78c807aba9b918d4780533d3bf4d9bde8c585abb99102c285371475806b4 [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" "caeb78c807aba9b918d4780533d3bf4d9bde8c585abb99102c285371475806b4", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rocketjson_data v1.0.5 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.20s [INFO] running `Command { std: "docker" "inspect" "caeb78c807aba9b918d4780533d3bf4d9bde8c585abb99102c285371475806b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caeb78c807aba9b918d4780533d3bf4d9bde8c585abb99102c285371475806b4", kill_on_drop: false }` [INFO] [stdout] caeb78c807aba9b918d4780533d3bf4d9bde8c585abb99102c285371475806b4 [INFO] running `Command { std: "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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+1.55.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 103db2eb253b4374598f50d6f371985c85357115cffc5485307b16bc560ea253 [INFO] running `Command { std: "docker" "start" "-a" "103db2eb253b4374598f50d6f371985c85357115cffc5485307b16bc560ea253", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/rocketjson_data-e8b4e3218954b16f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests rocketjson_data [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/api/response.rs - api::response::ApiResponse (line 24) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 55) ... FAILED [INFO] [stdout] test src/api/mod.rs - api (line 20) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 35) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 42) ... FAILED [INFO] [stdout] test src/error/mod.rs - error (line 15) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 48) ... FAILED [INFO] [stdout] test src/error/mod.rs - error (line 22) ... FAILED [INFO] [stdout] test src/error/mod.rs - error (line 5) ... FAILED [INFO] [stdout] test src/api/mod.rs - api (line 5) ... FAILED [INFO] [stdout] test src/api/response.rs - api::response::ApiResponse (line 9) ... FAILED [INFO] [stdout] test src/error/error_handling.rs - error::error_handling::get_catcher (line 8) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 8) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/api/response.rs - api::response::ApiResponse (line 24) stdout ---- [INFO] [stdout] error: struct literal body without path [INFO] [stdout] --> src/api/response.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 3 | / { [INFO] [stdout] 4 | | data: "test" [INFO] [stdout] 5 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: you might have forgotten to add the struct literal inside the block [INFO] [stdout] | [INFO] [stdout] 3 | { SomeStruct { [INFO] [stdout] 4 | data: "test" [INFO] [stdout] 5 | } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 55) stdout ---- [INFO] [stdout] error: expected type, found `"login failed"` [INFO] [stdout] --> src/api/response_err.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 4 | "error": "login failed" [INFO] [stdout] | - ^^^^^^^^^^^^^^ expected type [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/mod.rs - api (line 20) stdout ---- [INFO] [stdout] error: struct literal body without path [INFO] [stdout] --> src/api/mod.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 3 | / { [INFO] [stdout] 4 | | data: "test" [INFO] [stdout] 5 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] help: you might have forgotten to add the struct literal inside the block [INFO] [stdout] | [INFO] [stdout] 3 | { SomeStruct { [INFO] [stdout] 4 | data: "test" [INFO] [stdout] 5 | } } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 35) stdout ---- [INFO] [stdout] error: expected type, found `"admin"` [INFO] [stdout] --> src/api/response_err.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 4 | "username": "admin", [INFO] [stdout] | - ^^^^^^^ expected type [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 42) stdout ---- [INFO] [stdout] error: expected type, found `"logged in"` [INFO] [stdout] --> src/api/response_err.rs:44:16 [INFO] [stdout] | [INFO] [stdout] 4 | "message": "logged in" [INFO] [stdout] | - ^^^^^^^^^^^ expected type [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/mod.rs - error (line 15) stdout ---- [INFO] [stdout] error: expected type, found `"Bad Request"` [INFO] [stdout] --> src/error/mod.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 4 | "error": "Bad Request" [INFO] [stdout] | - ^^^^^^^^^^^^^ expected type [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 48) stdout ---- [INFO] [stdout] error: expected type, found `"test"` [INFO] [stdout] --> src/api/response_err.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 4 | "username": "test", [INFO] [stdout] | - ^^^^^^ expected type [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/mod.rs - error (line 22) stdout ---- [INFO] [stdout] error: expected type, found `{` [INFO] [stdout] --> src/error/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 4 | "username": [ [INFO] [stdout] | - help: maybe write a path separator here: `::` [INFO] [stdout] 5 | { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/mod.rs - error (line 5) stdout ---- [INFO] [stdout] error: cannot find attribute `launch` in this scope [INFO] [stdout] --> src/error/mod.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[launch] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/error/mod.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 6 | .mount("/", routes![]). [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rocket::routes [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/error/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 7 | register("/", vec![rocketjson::error::get_catcher()]) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `rocketjson` [INFO] [stdout] [INFO] [stdout] error[E0121]: the type placeholder `_` is not allowed within types on item signatures for return types [INFO] [stdout] --> src/error/mod.rs:7:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn rocket() -> _ { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | not allowed in type signatures [INFO] [stdout] | help: replace with the correct return type: `Rocket` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0121, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0121`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/mod.rs - api (line 5) stdout ---- [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/api/mod.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[post("/test")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/mod.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `rocketjson` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `RegisterResponse` in this scope [INFO] [stdout] --> src/api/mod.rs:12:42 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TestResponse { [INFO] [stdout] | ----------------------- similarly named struct `TestResponse` defined here [INFO] [stdout] ... [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: a struct with a similar name exists [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/mod.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 10 | rocketjson::ApiResponse::new( [INFO] [stdout] | ^^^^^^^^^^^ not found in `rocketjson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocketjson_data::ApiResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `RegisterResponse` in this scope [INFO] [stdout] --> src/api/mod.rs:14:36 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct TestResponse { [INFO] [stdout] | ----------------------- similarly named struct `TestResponse` defined here [INFO] [stdout] ... [INFO] [stdout] 11 | rocket::http::Status::Ok, RegisterResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: a struct with a similar name exists: `TestResponse` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response.rs - api::response::ApiResponse (line 9) stdout ---- [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/api/response.rs:15:3 [INFO] [stdout] | [INFO] [stdout] 8 | #[post("/test")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/response.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `rocketjson` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/response.rs:17:18 [INFO] [stdout] | [INFO] [stdout] 10 | rocketjson::ApiResponse::new( [INFO] [stdout] | ^^^^^^^^^^^ not found in `rocketjson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocketjson_data::ApiResponse; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/error_handling.rs - error::error_handling::get_catcher (line 8) stdout ---- [INFO] [stdout] error: cannot find attribute `launch` in this scope [INFO] [stdout] --> src/error/error_handling.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[launch] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find macro `routes` in this scope [INFO] [stdout] --> src/error/error_handling.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 6 | .mount("/", routes![]). [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] rocket::routes [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/error/error_handling.rs:13:28 [INFO] [stdout] | [INFO] [stdout] 7 | register("/", vec![rocketjson::error::get_catcher()]) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `rocketjson` [INFO] [stdout] [INFO] [stdout] error[E0121]: the type placeholder `_` is not allowed within types on item signatures for return types [INFO] [stdout] --> src/error/error_handling.rs:10:16 [INFO] [stdout] | [INFO] [stdout] 4 | fn rocket() -> _ { [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | not allowed in type signatures [INFO] [stdout] | help: replace with the correct return type: `Rocket` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0121, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0121`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 8) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `Validate` in `validator` [INFO] [stdout] --> src/api/response_err.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(serde::Deserialize, validator::Validate, rocketjson::JsonBody)] [INFO] [stdout] | ^^^^^^^^ could not find `Validate` in `validator` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:9:51 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(serde::Deserialize, validator::Validate, rocketjson::JsonBody)] [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `rocketjson` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> src/api/response_err.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[validate(length(min = 1))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> src/api/response_err.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 7 | #[validate(length(min = 1))] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `post` in this scope [INFO] [stdout] --> src/api/response_err.rs:22:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[post("/login", data="")] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:23:37 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn login(data: LoginRequest) -> rocketjson::ApiResponseErr { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `rocketjson` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 19 | return rocketjson::ApiResponseErr::ok( [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `rocketjson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocketjson_data::ApiResponseErr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:31:24 [INFO] [stdout] | [INFO] [stdout] 25 | return rocketjson::ApiResponseErr::err(rocket::http::Status::InternalServerError, String::from("login failed")) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in `rocketjson` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rocketjson_data::ApiResponseErr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/api/response_err.rs:27:37 [INFO] [stdout] | [INFO] [stdout] 21 | LoginResponse{ message: "logged in" } [INFO] [stdout] | ^^^^^^^^^^^ expected struct `std::string::String`, found `&str` [INFO] [stdout] | [INFO] [stdout] help: try using a conversion method [INFO] [stdout] | [INFO] [stdout] 21 | LoginResponse{ message: "logged in".to_string() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | LoginResponse{ message: "logged in".to_string() } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/api/mod.rs - api (line 20) [INFO] [stdout] src/api/mod.rs - api (line 5) [INFO] [stdout] src/api/response.rs - api::response::ApiResponse (line 24) [INFO] [stdout] src/api/response.rs - api::response::ApiResponse (line 9) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 35) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 42) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 48) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 55) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 8) [INFO] [stdout] src/error/error_handling.rs - error::error_handling::get_catcher (line 8) [INFO] [stdout] src/error/mod.rs - error (line 15) [INFO] [stdout] src/error/mod.rs - error (line 22) [INFO] [stdout] src/error/mod.rs - error (line 5) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 3.61s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "103db2eb253b4374598f50d6f371985c85357115cffc5485307b16bc560ea253", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "103db2eb253b4374598f50d6f371985c85357115cffc5485307b16bc560ea253", kill_on_drop: false }` [INFO] [stdout] 103db2eb253b4374598f50d6f371985c85357115cffc5485307b16bc560ea253