[INFO] fetching crate irx-config 2.0.0... [INFO] testing irx-config-2.0.0 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate irx-config 2.0.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate irx-config 2.0.0 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate irx-config 2.0.0 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate irx-config 2.0.0 [INFO] tweaked toml for crates.io crate irx-config 2.0.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57067a593a31b013b0570815a65c62b1cf795140d81c9f9dd693db0d09815475 [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" "57067a593a31b013b0570815a65c62b1cf795140d81c9f9dd693db0d09815475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57067a593a31b013b0570815a65c62b1cf795140d81c9f9dd693db0d09815475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57067a593a31b013b0570815a65c62b1cf795140d81c9f9dd693db0d09815475", kill_on_drop: false }` [INFO] [stdout] 57067a593a31b013b0570815a65c62b1cf795140d81c9f9dd693db0d09815475 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", 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] 302c5433080202f1224ede1b3e09cf6c3984dded2704223c6a85a15904c473c5 [INFO] running `Command { std: "docker" "start" "-a" "302c5433080202f1224ede1b3e09cf6c3984dded2704223c6a85a15904c473c5", kill_on_drop: false }` [INFO] [stderr] Compiling blake2b_simd v1.0.0 [INFO] [stderr] Compiling irx-config v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.39s [INFO] running `Command { std: "docker" "inspect" "302c5433080202f1224ede1b3e09cf6c3984dded2704223c6a85a15904c473c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "302c5433080202f1224ede1b3e09cf6c3984dded2704223c6a85a15904c473c5", kill_on_drop: false }` [INFO] [stdout] 302c5433080202f1224ede1b3e09cf6c3984dded2704223c6a85a15904c473c5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", 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] 2cf5104401c5f9fccaea9fecfd1a07a3fbd41f239e3ba5271e5c31f663556a06 [INFO] running `Command { std: "docker" "start" "-a" "2cf5104401c5f9fccaea9fecfd1a07a3fbd41f239e3ba5271e5c31f663556a06", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling irx-config v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.13s [INFO] [stderr] Executable unittests src/lib.rs (/opt/rustwide/target/debug/deps/irx_config-9182a87dc6dbd6a3) [INFO] running `Command { std: "docker" "inspect" "2cf5104401c5f9fccaea9fecfd1a07a3fbd41f239e3ba5271e5c31f663556a06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cf5104401c5f9fccaea9fecfd1a07a3fbd41f239e3ba5271e5c31f663556a06", kill_on_drop: false }` [INFO] [stdout] 2cf5104401c5f9fccaea9fecfd1a07a3fbd41f239e3ba5271e5c31f663556a06 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] ee01192ace068308d6b570132ce46b01e0d3e607f4c36d212895150468f100db [INFO] running `Command { std: "docker" "start" "-a" "ee01192ace068308d6b570132ce46b01e0d3e607f4c36d212895150468f100db", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/irx_config-9182a87dc6dbd6a3) [INFO] [stdout] [INFO] [stdout] running 30 tests [INFO] [stdout] test tests::config::config_eq ... ok [INFO] [stdout] test tests::config::display ... ok [INFO] [stdout] test tests::config::display_sealed_nested ... ok [INFO] [stdout] test tests::config::get_by_key_path_longer_path ... ok [INFO] [stdout] test tests::config::get_by_key_path_empty ... ok [INFO] [stdout] test tests::config::get_by_key_path_none ... ok [INFO] [stdout] test tests::config::config_ne ... ok [INFO] [stdout] test tests::config::get_by_key_path_one_level ... ok [INFO] [stdout] test tests::config::display_debug ... ok [INFO] [stdout] test tests::config::get_by_key_path ... ok [INFO] [stdout] test tests::config::display_sealed ... ok [INFO] [stdout] test tests::value::set_by_key_path_to_empty_map ... ok [INFO] [stdout] test tests::value::reset_by_keys ... ok [INFO] [stdout] test tests::value::display_sealed_none ... ok [INFO] [stdout] test tests::value::set_by_empty_key_path ... ok [INFO] [stdout] test tests::value::display_sealed_off ... ok [INFO] [stdout] test tests::value::merge_value ... ok [INFO] [stdout] test tests::value::merge_with_unseal ... ok [INFO] [stdout] test tests::config::get_by_keys_empty ... ok [INFO] [stdout] test tests::value::display_debug_sealed_mutated ... ok [INFO] [stdout] test tests::config::single_parser ... ok [INFO] [stdout] test tests::value::merge_without_unseal ... ok [INFO] [stdout] test tests::value::set_by_key_path_to_map_override ... ok [INFO] [stdout] test tests::value::set_by_path_to_map ... ok [INFO] [stdout] test tests::config::get_by_keys_none ... ok [INFO] [stdout] test tests::config::merge_nested_structs ... ok [INFO] [stdout] test tests::config::get_by_key_path_empty_sep - should panic ... ok [INFO] [stdout] test tests::config::parse_error - should panic ... ok [INFO] [stdout] test tests::value::set_by_key_path_to_not_map - should panic ... ok [INFO] [stdout] test tests::config::type_mismatch - should panic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 30 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] Doc-tests irx-config [INFO] [stdout] [INFO] [stdout] running 21 tests [INFO] [stdout] test src/config.rs - config::ConfigBuilder::keys_delimiter (line 268) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::get (line 283) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::ConfigBuilder::append_parser (line 209) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 67) ... FAILED [INFO] [stdout] test src/value.rs - value::Value::get_by_keys (line 165) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::get_by_key_path_with_delim (line 239) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 166) ... FAILED [INFO] [stdout] test src/lib.rs - (line 122) ... FAILED [INFO] [stdout] test src/value.rs - value::Value::merge (line 114) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 28) ... FAILED [INFO] [stdout] test src/config.rs - config::Config::get_by_keys (line 48) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::seal (line 445) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::Config::get (line 121) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::Config::get_by_key_path (line 70) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::get_by_key_path (line 209) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::Config::get_by_key_path_with_delim (line 100) - compile ... FAILED [INFO] [stdout] test src/config.rs - config::ConfigBuilder::sealed_suffix (line 242) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::set_by_key_path (line 374) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::set_by_key_path_with_delim (line 399) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::try_from (line 60) - compile ... FAILED [INFO] [stdout] test src/value.rs - value::Value::set_by_keys (line 322) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/config.rs - config::ConfigBuilder::keys_delimiter (line 268) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> src/config.rs:269:5 [INFO] [stdout] | [INFO] [stdout] 4 | use clap::app_from_crate; [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `irx_config::parsers` [INFO] [stdout] --> src/config.rs:270:17 [INFO] [stdout] | [INFO] [stdout] 5 | use irx_config::parsers::cmd; [INFO] [stdout] | ^^^^^^^ could not find `parsers` in `irx_config` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `app_from_crate` [INFO] [stdout] --> src/config.rs:273:11 [INFO] [stdout] | [INFO] [stdout] 8 | let app = app_from_crate!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:276:56 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_268_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::cmd; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 11 | | .append_parser(cmd::ParserBuilder::new(app).build()?) [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | .keys_delimiter("/") [INFO] [stdout] 13 | | .load()?; [INFO] [stdout] 14 | | } _doctest_main_src_config_rs_268_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:278:12 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_268_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::cmd; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 13 | | .load()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | } _doctest_main_src_config_rs_268_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::get (line 283) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:303:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_283_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | use serde::Deserialize; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 23 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 24 | | [INFO] [stdout] 25 | | let config: Config = config.get()?; [INFO] [stdout] 26 | | } _doctest_main_src_value_rs_283_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:305:34 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_283_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | use serde::Deserialize; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 25 | | let config: Config = config.get()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 26 | | } _doctest_main_src_value_rs_283_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:298:30 [INFO] [stdout] | [INFO] [stdout] 18 | let config = Value::try_from(json!({ [INFO] [stdout] | ______________________________^ [INFO] [stdout] 19 | | "logger": { [INFO] [stdout] 20 | | "id": 42, [INFO] [stdout] 21 | | "host": "localhost" [INFO] [stdout] 22 | | } [INFO] [stdout] 23 | | }))?; [INFO] [stdout] | |__^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: Serialize` found in the `serde` crate: [INFO] [stdout] - impl Serialize for i128; [INFO] [stdout] - impl Serialize for i16; [INFO] [stdout] - impl Serialize for i32; [INFO] [stdout] - impl Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `Serialize` for `&{integer}` [INFO] [stdout] note: required by a bound in `serde_json::value::to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.79/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `serde_json::value::to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::ConfigBuilder::append_parser (line 209) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `irx_config::parsers` [INFO] [stdout] --> src/config.rs:210:17 [INFO] [stdout] | [INFO] [stdout] 4 | use irx_config::parsers::{env, json}; [INFO] [stdout] | ^^^^^^^ could not find `parsers` in `irx_config` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:217:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_209_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 11 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 18 | | .load()?; [INFO] [stdout] 19 | | } _doctest_main_src_config_rs_209_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:222:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_209_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 16 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 17 | | ) [INFO] [stdout] 18 | | .load()?; [INFO] [stdout] 19 | | } _doctest_main_src_config_rs_209_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_209_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 18 | | .load()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 19 | | } _doctest_main_src_config_rs_209_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 67) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `irx_config::parsers` [INFO] [stdout] --> src/lib.rs:69:17 [INFO] [stdout] | [INFO] [stdout] 5 | use irx_config::parsers::{cmd, env, toml}; [INFO] [stdout] | ^^^^^^^ could not find `parsers` in `irx_config` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `clap` [INFO] [stdout] --> src/lib.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 4 | use clap::app_from_crate; [INFO] [stdout] | ^^^^ use of undeclared crate or module `clap` [INFO] [stdout] [INFO] [stdout] error: cannot determine resolution for the macro `app_from_crate` [INFO] [stdout] --> src/lib.rs:93:11 [INFO] [stdout] | [INFO] [stdout] 29 | let app = app_from_crate!(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: import resolution is stuck, try simplifying macro imports [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `localhost` in this scope [INFO] [stdout] --> src/lib.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 17 | #[serde(default = "localhost")] [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:101:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::{cmd, env, toml}; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 37 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 53 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 54 | | } _doctest_main_src_lib_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::{cmd, env, toml}; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 43 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 53 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 54 | | } _doctest_main_src_lib_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::{cmd, env, toml}; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 49 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 53 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 54 | | } _doctest_main_src_lib_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::{cmd, env, toml}; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 51 | | .load()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 52 | | [INFO] [stdout] 53 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 54 | | } _doctest_main_src_lib_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:117:35 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_67_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use clap::app_from_crate; [INFO] [stdout] 5 | | use irx_config::parsers::{cmd, env, toml}; [INFO] [stdout] 6 | | use irx_config::ConfigBuilder; [INFO] [stdout] ... | [INFO] [stdout] 53 | | let conf_data: Conf = config.get()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 54 | | } _doctest_main_src_lib_rs_67_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::get_by_keys (line 165) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:173:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let logger = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 11 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | [INFO] [stdout] 13 | | let id: u32 = logger.get_by_keys(["logger", "id"])?.unwrap(); [INFO] [stdout] 14 | | } _doctest_main_src_value_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:175:51 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_165_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let logger = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 13 | | let id: u32 = logger.get_by_keys(["logger", "id"])?.unwrap(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | } _doctest_main_src_value_rs_165_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:168:30 [INFO] [stdout] | [INFO] [stdout] 6 | let logger = Value::try_from(json!({ [INFO] [stdout] | ______________________________^ [INFO] [stdout] 7 | | "logger": { [INFO] [stdout] 8 | | "id": 42, [INFO] [stdout] 9 | | "host": "localhost" [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | }))?; [INFO] [stdout] | |__^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `serde::ser::Serialize` for `&{integer}` [INFO] [stdout] note: required by a bound in `serde_json::value::to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.79/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `serde_json::value::to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::get_by_key_path_with_delim (line 239) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:247:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_239_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let logger = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 11 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | [INFO] [stdout] 13 | | let host: String = logger.get_by_key_path_with_delim("logger/host", "/")?.unwrap(); [INFO] [stdout] 14 | | } _doctest_main_src_value_rs_239_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:249:73 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_239_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let logger = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 13 | | let host: String = logger.get_by_key_path_with_delim("logger/host", "/")?.unwrap(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | } _doctest_main_src_value_rs_239_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:242:30 [INFO] [stdout] | [INFO] [stdout] 6 | let logger = Value::try_from(json!({ [INFO] [stdout] | ______________________________^ [INFO] [stdout] 7 | | "logger": { [INFO] [stdout] 8 | | "id": 42, [INFO] [stdout] 9 | | "host": "localhost" [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | }))?; [INFO] [stdout] | |__^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `serde::ser::Serialize` for `&{integer}` [INFO] [stdout] note: required by a bound in `serde_json::value::to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.79/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `serde_json::value::to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 166) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `irx_config::parsers` [INFO] [stdout] --> src/lib.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 4 | use irx_config::parsers::json; [INFO] [stdout] | ^^^^^^^ could not find `parsers` in `irx_config` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `localhost` in this scope [INFO] [stdout] --> src/lib.rs:179:23 [INFO] [stdout] | [INFO] [stdout] 16 | #[serde(default = "localhost")] [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:187:17 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::json; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 24 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 28 | | let port: u16 = config.get_by_key_path("connection:port")?.unwrap(); [INFO] [stdout] 29 | | } _doctest_main_src_lib_rs_166_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:188:2 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::json; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 25 | | )?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 28 | | let port: u16 = config.get_by_key_path("connection:port")?.unwrap(); [INFO] [stdout] 29 | | } _doctest_main_src_lib_rs_166_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:190:54 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::json; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 27 | | let logger: Logger = config.get_by_key_path("logger")?.unwrap(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 28 | | let port: u16 = config.get_by_key_path("connection:port")?.unwrap(); [INFO] [stdout] 29 | | } _doctest_main_src_lib_rs_166_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:191:58 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_166_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::json; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 28 | | let port: u16 = config.get_by_key_path("connection:port")?.unwrap(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 29 | | } _doctest_main_src_lib_rs_166_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 122) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:153:66 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_122_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{AnyResult, Case, ConfigBuilder, Parse, Value}; [INFO] [stdout] 5 | | use serde::Deserialize; [INFO] [stdout] 6 | | use std::borrow::Cow; [INFO] [stdout] ... | [INFO] [stdout] 34 | | let config = ConfigBuilder::load_one(JsonStringParser::new(data))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 35 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 36 | | } _doctest_main_src_lib_rs_122_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:154:35 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_122_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{AnyResult, Case, ConfigBuilder, Parse, Value}; [INFO] [stdout] 5 | | use serde::Deserialize; [INFO] [stdout] 6 | | use std::borrow::Cow; [INFO] [stdout] ... | [INFO] [stdout] 35 | | let conf_data: Conf = config.get()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 36 | | } _doctest_main_src_lib_rs_122_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::merge (line 114) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:120:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_114_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut person = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 9 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 18 | | person = person.merge(&phones); [INFO] [stdout] 19 | | } _doctest_main_src_value_rs_114_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:127:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_114_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut person = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 16 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 17 | | [INFO] [stdout] 18 | | person = person.merge(&phones); [INFO] [stdout] 19 | | } _doctest_main_src_value_rs_114_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:117:34 [INFO] [stdout] | [INFO] [stdout] 6 | let mut person = Value::try_from(json!({ [INFO] [stdout] | __________________________________^ [INFO] [stdout] 7 | | "name": "John Doe", [INFO] [stdout] 8 | | "age": 43 [INFO] [stdout] 9 | | }))?; [INFO] [stdout] | |__^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `serde::ser::Serialize` for `&{integer}` [INFO] [stdout] note: required by a bound in `serde_json::value::to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.79/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `serde_json::value::to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 28) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `irx_config::parsers` [INFO] [stdout] --> src/lib.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 4 | use irx_config::parsers::{env, json}; [INFO] [stdout] | ^^^^^^^ could not find `parsers` in `irx_config` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_28_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 21 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 30 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 31 | | } _doctest_main_src_lib_rs_28_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:51:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_28_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 26 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 30 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 31 | | } _doctest_main_src_lib_rs_28_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_28_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 28 | | .load()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 29 | | [INFO] [stdout] 30 | | let conf_data: Conf = config.get()?; [INFO] [stdout] 31 | | } _doctest_main_src_lib_rs_28_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:55:35 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_28_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::{env, json}; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | use serde::Deserialize; [INFO] [stdout] ... | [INFO] [stdout] 30 | | let conf_data: Conf = config.get()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 31 | | } _doctest_main_src_lib_rs_28_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config::get_by_keys (line 48) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conf` in this scope [INFO] [stdout] --> src/config.rs:49:25 [INFO] [stdout] | [INFO] [stdout] 3 | let name: Option = conf.get_by_keys(["logger", "name"])?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:49:61 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_48_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let name: Option = conf.get_by_keys(["logger", "name"])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_config_rs_48_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::seal (line 445) stdout ---- [INFO] [stdout] error: cannot find macro `json` in this scope [INFO] [stdout] --> src/value.rs:448:33 [INFO] [stdout] | [INFO] [stdout] 6 | let mut value = Value::try_from(json!({ [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing one of these items: [INFO] [stdout] irx_config::json [INFO] [stdout] serde_json::json [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:451:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_445_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::Value; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut value = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 9 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | [INFO] [stdout] 11 | | value.seal("_sealed_"); [INFO] [stdout] 12 | | } _doctest_main_src_value_rs_445_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config::get (line 121) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conf` in this scope [INFO] [stdout] --> src/config.rs:131:22 [INFO] [stdout] | [INFO] [stdout] 12 | let person: Person = conf.get()?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:131:32 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_121_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use serde::Deserialize; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | #[derive(Deserialize)] [INFO] [stdout] ... | [INFO] [stdout] 12 | | let person: Person = conf.get()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } _doctest_main_src_config_rs_121_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config::get_by_key_path (line 70) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conf` in this scope [INFO] [stdout] --> src/config.rs:80:30 [INFO] [stdout] | [INFO] [stdout] 12 | let person: Option = conf.get_by_key_path("contact:info")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:80:66 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_70_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use serde::Deserialize; [INFO] [stdout] 4 | | [INFO] [stdout] 5 | | #[derive(Deserialize)] [INFO] [stdout] ... | [INFO] [stdout] 12 | | let person: Option = conf.get_by_key_path("contact:info")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 13 | | } _doctest_main_src_config_rs_70_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::get_by_key_path (line 209) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:217:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_209_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let logger = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 11 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 12 | | [INFO] [stdout] 13 | | let id: u32 = logger.get_by_key_path("logger:id")?.unwrap(); [INFO] [stdout] 14 | | } _doctest_main_src_value_rs_209_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:219:50 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_209_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let logger = Value::try_from(json!({ [INFO] [stdout] ... | [INFO] [stdout] 13 | | let id: u32 = logger.get_by_key_path("logger:id")?.unwrap(); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 14 | | } _doctest_main_src_value_rs_209_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:212:30 [INFO] [stdout] | [INFO] [stdout] 6 | let logger = Value::try_from(json!({ [INFO] [stdout] | ______________________________^ [INFO] [stdout] 7 | | "logger": { [INFO] [stdout] 8 | | "id": 42, [INFO] [stdout] 9 | | "host": "localhost" [INFO] [stdout] 10 | | } [INFO] [stdout] 11 | | }))?; [INFO] [stdout] | |__^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `serde::ser::Serialize` for `&{integer}` [INFO] [stdout] note: required by a bound in `serde_json::value::to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.79/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `serde_json::value::to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config::get_by_key_path_with_delim (line 100) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `conf` in this scope [INFO] [stdout] --> src/config.rs:101:25 [INFO] [stdout] | [INFO] [stdout] 3 | let name: Option = conf.get_by_key_path_with_delim("logger:name", ":")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:101:76 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_100_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let name: Option = conf.get_by_key_path_with_delim("logger:name", ":")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_config_rs_100_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::ConfigBuilder::sealed_suffix (line 242) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `irx_config::parsers` [INFO] [stdout] --> src/config.rs:243:17 [INFO] [stdout] | [INFO] [stdout] 4 | use irx_config::parsers::env; [INFO] [stdout] | ^^^^^^^ could not find `parsers` in `irx_config` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:250:21 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_242_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::env; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 11 | | .build()?, [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 14 | | .load()?; [INFO] [stdout] 15 | | } _doctest_main_src_config_rs_242_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/config.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_242_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::parsers::env; [INFO] [stdout] 5 | | use irx_config::ConfigBuilder; [INFO] [stdout] 6 | | [INFO] [stdout] ... | [INFO] [stdout] 14 | | .load()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 15 | | } _doctest_main_src_config_rs_242_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::set_by_key_path (line 374) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:378:39 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_374_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::Value; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut value = Value::default(); [INFO] [stdout] 7 | | value.set_by_key_path("logger:id", 42)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_value_rs_374_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:378:7 [INFO] [stdout] | [INFO] [stdout] 7 | value.set_by_key_path("logger:id", 42)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] note: required by a bound in `Value::set_by_key_path` [INFO] [stdout] --> /opt/rustwide/workdir/src/value.rs:383:12 [INFO] [stdout] | [INFO] [stdout] 383 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Value::set_by_key_path` [INFO] [stdout] help: consider specifying the type arguments in the function call [INFO] [stdout] | [INFO] [stdout] 7 | value.set_by_key_path::("logger:id", 42)?; [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::set_by_key_path_with_delim (line 399) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:403:55 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_399_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::Value; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut value = Value::default(); [INFO] [stdout] 7 | | value.set_by_key_path_with_delim("logger/id", "/", 42)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_value_rs_399_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:403:7 [INFO] [stdout] | [INFO] [stdout] 7 | value.set_by_key_path_with_delim("logger/id", "/", 42)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] note: required by a bound in `Value::set_by_key_path_with_delim` [INFO] [stdout] --> /opt/rustwide/workdir/src/value.rs:412:12 [INFO] [stdout] | [INFO] [stdout] 412 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Value::set_by_key_path_with_delim` [INFO] [stdout] help: consider specifying the type arguments in the function call [INFO] [stdout] | [INFO] [stdout] 7 | value.set_by_key_path_with_delim::("logger/id", "/", 42)?; [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::try_from (line 60) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_60_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::{json, Value}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let data = Value::try_from(json!( [INFO] [stdout] ... | [INFO] [stdout] 14 | | }))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 15 | | } _doctest_main_src_value_rs_60_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:63:28 [INFO] [stdout] | [INFO] [stdout] 6 | let data = Value::try_from(json!( [INFO] [stdout] | ____________________________^ [INFO] [stdout] 7 | | { [INFO] [stdout] 8 | | "name": "John Doe", [INFO] [stdout] 9 | | "age": 43, [INFO] [stdout] ... | [INFO] [stdout] 13 | | ] [INFO] [stdout] 14 | | }))?; [INFO] [stdout] | |__^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] = note: required because of the requirements on the impl of `serde::ser::Serialize` for `&{integer}` [INFO] [stdout] note: required by a bound in `serde_json::value::to_value` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.79/src/value/mod.rs:944:8 [INFO] [stdout] | [INFO] [stdout] 944 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `serde_json::value::to_value` [INFO] [stdout] = note: this error originates in the macro `json_internal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/value.rs - value::Value::set_by_keys (line 322) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/value.rs:326:40 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_value_rs_322_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use irx_config::Value; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | let mut value = Value::default(); [INFO] [stdout] 7 | | value.set_by_keys(["logger", "id"], 42)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 8 | | } _doctest_main_src_value_rs_322_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/value.rs:326:7 [INFO] [stdout] | [INFO] [stdout] 7 | value.set_by_keys(["logger", "id"], 42)?; [INFO] [stdout] | ^^^^^^^^^^^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `{integer}: serde::ser::Serialize` found in the `serde` crate: [INFO] [stdout] - impl serde::ser::Serialize for i128; [INFO] [stdout] - impl serde::ser::Serialize for i16; [INFO] [stdout] - impl serde::ser::Serialize for i32; [INFO] [stdout] - impl serde::ser::Serialize for i64; [INFO] [stdout] and 8 more [INFO] [stdout] note: required by a bound in `Value::set_by_keys` [INFO] [stdout] --> /opt/rustwide/workdir/src/value.rs:332:12 [INFO] [stdout] | [INFO] [stdout] 332 | T: Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `Value::set_by_keys` [INFO] [stdout] help: consider specifying the type arguments in the function call [INFO] [stdout] | [INFO] [stdout] 7 | value.set_by_keys::(["logger", "id"], 42)?; [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/config.rs - config::Config::get (line 121) [INFO] [stdout] src/config.rs - config::Config::get_by_key_path (line 70) [INFO] [stdout] src/config.rs - config::Config::get_by_key_path_with_delim (line 100) [INFO] [stdout] src/config.rs - config::Config::get_by_keys (line 48) [INFO] [stdout] src/config.rs - config::ConfigBuilder::append_parser (line 209) [INFO] [stdout] src/config.rs - config::ConfigBuilder::keys_delimiter (line 268) [INFO] [stdout] src/config.rs - config::ConfigBuilder::sealed_suffix (line 242) [INFO] [stdout] src/lib.rs - (line 122) [INFO] [stdout] src/lib.rs - (line 166) [INFO] [stdout] src/lib.rs - (line 28) [INFO] [stdout] src/lib.rs - (line 67) [INFO] [stdout] src/value.rs - value::Value::get (line 283) [INFO] [stdout] src/value.rs - value::Value::get_by_key_path (line 209) [INFO] [stdout] src/value.rs - value::Value::get_by_key_path_with_delim (line 239) [INFO] [stdout] src/value.rs - value::Value::get_by_keys (line 165) [INFO] [stdout] src/value.rs - value::Value::merge (line 114) [INFO] [stdout] src/value.rs - value::Value::seal (line 445) [INFO] [stdout] src/value.rs - value::Value::set_by_key_path (line 374) [INFO] [stdout] src/value.rs - value::Value::set_by_key_path_with_delim (line 399) [INFO] [stdout] src/value.rs - value::Value::set_by_keys (line 322) [INFO] [stdout] src/value.rs - value::Value::try_from (line 60) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 21 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.37s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "ee01192ace068308d6b570132ce46b01e0d3e607f4c36d212895150468f100db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee01192ace068308d6b570132ce46b01e0d3e607f4c36d212895150468f100db", kill_on_drop: false }` [INFO] [stdout] ee01192ace068308d6b570132ce46b01e0d3e607f4c36d212895150468f100db