[INFO] fetching crate rocketjson_data 1.3.2... [INFO] testing rocketjson_data-1.3.2 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate rocketjson_data 1.3.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate rocketjson_data 1.3.2 [INFO] finished tweaking crates.io crate rocketjson_data 1.3.2 [INFO] tweaked toml for crates.io crate rocketjson_data 1.3.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate rocketjson_data 1.3.2 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 216 packages to latest compatible versions [INFO] [stderr] Adding syn v0.15.44 (available: v2.0.106) [INFO] [stderr] Adding validator v0.14.0 (available: v0.20.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e5237eee7d2ba2219f0caf68baa9d12206457699f226e05f88a7394091568c5 [INFO] running `Command { std: "docker" "start" "-a" "5e5237eee7d2ba2219f0caf68baa9d12206457699f226e05f88a7394091568c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e5237eee7d2ba2219f0caf68baa9d12206457699f226e05f88a7394091568c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e5237eee7d2ba2219f0caf68baa9d12206457699f226e05f88a7394091568c5", kill_on_drop: false }` [INFO] [stdout] 5e5237eee7d2ba2219f0caf68baa9d12206457699f226e05f88a7394091568c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ffe634b0d285a98afede3bd8cb68ef9c63a862b190be6429b915c07e6a396b5b [INFO] running `Command { std: "docker" "start" "-a" "ffe634b0d285a98afede3bd8cb68ef9c63a862b190be6429b915c07e6a396b5b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling litemap v0.8.0 [INFO] [stderr] Compiling writeable v0.6.1 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling bitflags v2.9.4 [INFO] [stderr] Compiling icu_normalizer_data v2.0.0 [INFO] [stderr] Compiling icu_properties_data v2.0.1 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling zerocopy v0.8.27 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling deranged v0.5.4 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling inlinable_string v0.1.15 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling ref-cast v1.0.25 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.25 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling validator_types v0.14.0 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling binascii v0.1.4 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling atomic v0.5.3 [INFO] [stderr] Compiling validator v0.14.0 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling rocketjson_data v1.3.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 31s [INFO] running `Command { std: "docker" "inspect" "ffe634b0d285a98afede3bd8cb68ef9c63a862b190be6429b915c07e6a396b5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ffe634b0d285a98afede3bd8cb68ef9c63a862b190be6429b915c07e6a396b5b", kill_on_drop: false }` [INFO] [stdout] ffe634b0d285a98afede3bd8cb68ef9c63a862b190be6429b915c07e6a396b5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dc5da90ea73cc4332fdad688f888634f04656352bd174f6c229d62bbea6f37cf [INFO] running `Command { std: "docker" "start" "-a" "dc5da90ea73cc4332fdad688f888634f04656352bd174f6c229d62bbea6f37cf", kill_on_drop: false }` [INFO] [stderr] Compiling rocketjson_data v1.3.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.75s [INFO] running `Command { std: "docker" "inspect" "dc5da90ea73cc4332fdad688f888634f04656352bd174f6c229d62bbea6f37cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc5da90ea73cc4332fdad688f888634f04656352bd174f6c229d62bbea6f37cf", kill_on_drop: false }` [INFO] [stdout] dc5da90ea73cc4332fdad688f888634f04656352bd174f6c229d62bbea6f37cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 113d1128552ac8626bb18ada0bc4f6fcd23f857f0c8ce95999fd2cbde5d48cef [INFO] running `Command { std: "docker" "start" "-a" "113d1128552ac8626bb18ada0bc4f6fcd23f857f0c8ce95999fd2cbde5d48cef", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rocketjson_data-9e156f432793c95b) [INFO] [stderr] Doc-tests rocketjson_data [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] [stdout] [INFO] [stdout] running 17 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 47) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 54) ... 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 67) ... FAILED [INFO] [stdout] test src/api/mod.rs - api (line 5) ... FAILED [INFO] [stdout] test src/error/errors.rs - error::errors::JsonBodyError (line 24) ... FAILED [INFO] [stdout] test src/error/error_util.rs - error::error_util::ApiErrorsCreate (line 5) ... FAILED [INFO] [stdout] test src/error/mod.rs - error (line 15) ... FAILED [INFO] [stdout] test src/api/response.rs - api::response::ApiResponse (line 9) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 60) ... FAILED [INFO] [stdout] test src/error/mod.rs - error (line 22) ... FAILED [INFO] [stdout] test src/api/response_err.rs - api::response_err::ApiResponseErr (line 10) ... FAILED [INFO] [stdout] test src/error/error_util.rs - error::error_util::rjtry (line 31) ... 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 20) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/error/mod.rs - error (line 5) ... 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 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 47) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> src/api/response_err.rs:49:15 [INFO] [stdout] | [INFO] [stdout] 4 | "username": "admin", [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 54) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> src/api/response_err.rs:56:14 [INFO] [stdout] | [INFO] [stdout] 4 | "message": "logged in" [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 67) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> src/api/response_err.rs:69:12 [INFO] [stdout] | [INFO] [stdout] 4 | "error": "login failed" [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [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] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::post; [INFO] [stdout] | [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] 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 unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/mod.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 10 | rocketjson::ApiResponse::new( [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::ApiResponse; [INFO] [stdout] | [INFO] [stdout] help: if you import `ApiResponse`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 10 - rocketjson::ApiResponse::new( [INFO] [stdout] 10 + ApiResponse::new( [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[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/mod.rs:12:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [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/error/errors.rs - error::errors::JsonBodyError (line 24) stdout ---- [INFO] [stdout] error: unexpected `...` [INFO] [stdout] --> src/error/errors.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'r> FromRequest<'r> for ... { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: only `extern "C"` and `extern "C-unwind"` functions may have a C variable argument list [INFO] [stdout] [INFO] [stdout] error: expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, `dyn`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime [INFO] [stdout] --> src/error/errors.rs:26:30 [INFO] [stdout] | [INFO] [stdout] 4 | impl<'r> FromRequest<'r> for ... { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/error_util.rs - error::error_util::ApiErrorsCreate (line 5) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/error/error_util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocketjson::{ApiResponseErr, error::{ApiErrors, ApiErrorsCreate}}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocketjson` [INFO] [stdout] --> src/error/error_util.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocketjson::{ApiResponseErr, error::{ApiErrors, ApiErrorsCreate}}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `error` in this scope [INFO] [stdout] --> src/error/error_util.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 5 | ApiResponseErr::err(ApiErrors::to_rocketjson_error(error)) [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/mod.rs - error (line 15) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> src/error/mod.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 4 | "error": "Bad Request" [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [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] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/response.rs:17:6 [INFO] [stdout] | [INFO] [stdout] 10 | rocketjson::ApiResponse::new( [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::ApiResponse; [INFO] [stdout] | [INFO] [stdout] help: if you import `ApiResponse`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 10 - rocketjson::ApiResponse::new( [INFO] [stdout] 10 + ApiResponse::new( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/response.rs:16:18 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn test() -> rocketjson::ApiResponse { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [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/api/response_err.rs - api::response_err::ApiResponseErr (line 60) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> src/api/response_err.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 4 | "username": "test", [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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 one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> src/error/mod.rs:24:15 [INFO] [stdout] | [INFO] [stdout] 4 | "username": [ [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/api/response_err.rs - api::response_err::ApiResponseErr (line 10) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/api/response_err.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 4 - ... [INFO] [stdout] 4 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 4 - ... [INFO] [stdout] 4 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/api/response_err.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 4 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 4 - ... [INFO] [stdout] 4 + .. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `rjtry` in this scope [INFO] [stdout] --> src/api/response_err.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 8 | let user = rjtry!(db_get_users().await); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::rjtry; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `diesel` [INFO] [stdout] --> src/api/response_err.rs:11:47 [INFO] [stdout] | [INFO] [stdout] 3 | pub async fn db_get_users() -> Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `diesel` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `diesel`, use `cargo add diesel` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `ApiResponseErr` in this scope [INFO] [stdout] --> src/api/response_err.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 7 | pub async fn is_admin() -> ApiResponseErr { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [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: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/error/error_util.rs - error::error_util::rjtry (line 31) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/error/error_util.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 6 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 6 - ... [INFO] [stdout] 6 + .. [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 6 - ... [INFO] [stdout] 6 + ..= [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/error/error_util.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 6 | ... [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 6 - ... [INFO] [stdout] 6 + .. [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/error/error_util.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocketjson::{ApiResponseErr, rjtry, error::ApiErrorsCreate}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rocketjson` [INFO] [stdout] --> src/error/error_util.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rocketjson::{ApiResponseErr, rjtry, error::ApiErrorsCreate}; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `diesel` [INFO] [stdout] --> src/error/error_util.rs:34:47 [INFO] [stdout] | [INFO] [stdout] 5 | pub async fn db_get_users() -> Result { [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `diesel` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `diesel`, use `cargo add diesel` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [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] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::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] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `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 unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::error; [INFO] [stdout] | [INFO] [stdout] help: if you import `error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - register("/", vec![rocketjson::error::get_catcher()]) [INFO] [stdout] 7 + register("/", vec![error::get_catcher()]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0121]: the 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 20) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: could not find `Validate` in `validator` [INFO] [stdout] --> src/api/response_err.rs:21: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] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/validator-0.14.0/src/lib.rs:92:27 [INFO] [stdout] | [INFO] [stdout] 91 | #[cfg(feature = "derive")] [INFO] [stdout] | ------------------ the item is gated behind the `derive` feature [INFO] [stdout] 92 | pub use validator_derive::Validate; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:21:51 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(serde::Deserialize, validator::Validate, rocketjson::JsonBody)] [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `validate` in this scope [INFO] [stdout] --> src/api/response_err.rs:23: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:25: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:34:3 [INFO] [stdout] | [INFO] [stdout] 16 | #[post("/login", data="")] [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::post; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:37:16 [INFO] [stdout] | [INFO] [stdout] 19 | return rocketjson::ApiResponseErr::ok( [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::ApiResponseErr; [INFO] [stdout] | [INFO] [stdout] help: if you import `ApiResponseErr`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 19 - return rocketjson::ApiResponseErr::ok( [INFO] [stdout] 19 + return ApiResponseErr::ok( [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 25 | return rocketjson::ApiResponseErr::api_err(rocket::http::Status::InternalServerError, String::from("login failed")) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::ApiResponseErr; [INFO] [stdout] | [INFO] [stdout] help: if you import `ApiResponseErr`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 25 - return rocketjson::ApiResponseErr::api_err(rocket::http::Status::InternalServerError, String::from("login failed")) [INFO] [stdout] 25 + return ApiResponseErr::api_err(rocket::http::Status::InternalServerError, String::from("login failed")) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/api/response_err.rs:39:37 [INFO] [stdout] | [INFO] [stdout] 21 | LoginResponse{ message: "logged in" } [INFO] [stdout] | ^^^^^^^^^^^ expected `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] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/api/response_err.rs:35:37 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn login(data: LoginRequest) -> rocketjson::ApiResponseErr { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [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] ---- 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] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::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] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use rocket::routes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] --> src/error/mod.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 7 | register("/", vec![rocketjson::error::get_catcher()]) [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `rocketjson` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rocketjson`, use `cargo add rocketjson` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 2 + use rocketjson_data::error; [INFO] [stdout] | [INFO] [stdout] help: if you import `error`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 7 - register("/", vec![rocketjson::error::get_catcher()]) [INFO] [stdout] 7 + register("/", vec![error::get_catcher()]) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0121]: the 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] [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 10) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 20) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 47) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 54) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 60) [INFO] [stdout] src/api/response_err.rs - api::response_err::ApiResponseErr (line 67) [INFO] [stdout] src/error/error_handling.rs - error::error_handling::get_catcher (line 8) [INFO] [stdout] src/error/error_util.rs - error::error_util::ApiErrorsCreate (line 5) [INFO] [stdout] src/error/error_util.rs - error::error_util::rjtry (line 31) [INFO] [stdout] src/error/errors.rs - error::errors::JsonBodyError (line 24) [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; 17 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.97s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "113d1128552ac8626bb18ada0bc4f6fcd23f857f0c8ce95999fd2cbde5d48cef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "113d1128552ac8626bb18ada0bc4f6fcd23f857f0c8ce95999fd2cbde5d48cef", kill_on_drop: false }` [INFO] [stdout] 113d1128552ac8626bb18ada0bc4f6fcd23f857f0c8ce95999fd2cbde5d48cef