[INFO] fetching crate konfik 0.2.1... [INFO] testing konfik-0.2.1 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate konfik 0.2.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate konfik 0.2.1 [INFO] finished tweaking crates.io crate konfik 0.2.1 [INFO] tweaked toml for crates.io crate konfik 0.2.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate konfik 0.2.1 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate konfik 0.2.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded konfik_derive v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5027880d601219308817f84decd58ae4e81f33d6eba2823b9f7c169f8e5e274f [INFO] running `Command { std: "docker" "start" "-a" "5027880d601219308817f84decd58ae4e81f33d6eba2823b9f7c169f8e5e274f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5027880d601219308817f84decd58ae4e81f33d6eba2823b9f7c169f8e5e274f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5027880d601219308817f84decd58ae4e81f33d6eba2823b9f7c169f8e5e274f", kill_on_drop: false }` [INFO] [stdout] 5027880d601219308817f84decd58ae4e81f33d6eba2823b9f7c169f8e5e274f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 290800332db44fe25e7d84c5f6cc82bc8674f8cfea62f4f6df01f4ef87726ded [INFO] running `Command { std: "docker" "start" "-a" "290800332db44fe25e7d84c5f6cc82bc8674f8cfea62f4f6df01f4ef87726ded", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.97 [INFO] [stderr] Compiling winnow v0.7.12 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling clap_builder v4.5.44 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling konfik_derive v0.2.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling clap v4.5.45 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling konfik v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 19.62s [INFO] running `Command { std: "docker" "inspect" "290800332db44fe25e7d84c5f6cc82bc8674f8cfea62f4f6df01f4ef87726ded", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "290800332db44fe25e7d84c5f6cc82bc8674f8cfea62f4f6df01f4ef87726ded", kill_on_drop: false }` [INFO] [stdout] 290800332db44fe25e7d84c5f6cc82bc8674f8cfea62f4f6df01f4ef87726ded [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 53242ee4ad204b3d278029ace8cfbb4bc900b2f8a8f2a5ff7f1b4f7c8ac851a5 [INFO] running `Command { std: "docker" "start" "-a" "53242ee4ad204b3d278029ace8cfbb4bc900b2f8a8f2a5ff7f1b4f7c8ac851a5", kill_on_drop: false }` [INFO] [stderr] Compiling konfik v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.59s [INFO] running `Command { std: "docker" "inspect" "53242ee4ad204b3d278029ace8cfbb4bc900b2f8a8f2a5ff7f1b4f7c8ac851a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "53242ee4ad204b3d278029ace8cfbb4bc900b2f8a8f2a5ff7f1b4f7c8ac851a5", kill_on_drop: false }` [INFO] [stdout] 53242ee4ad204b3d278029ace8cfbb4bc900b2f8a8f2a5ff7f1b4f7c8ac851a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c5e0534f6d3c31bd66975592b473afd867737654cf72bdcfc5f948c20ff70b37 [INFO] running `Command { std: "docker" "start" "-a" "c5e0534f6d3c31bd66975592b473afd867737654cf72bdcfc5f948c20ff70b37", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/konfik-0917dccdba31cf15) [INFO] [stderr] Doc-tests konfik [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 7 tests [INFO] [stdout] test src/lib.rs - (line 104) ... FAILED [INFO] [stdout] test src/lib.rs - (line 137) ... FAILED [INFO] [stdout] test src/lib.rs - (line 126) ... FAILED [INFO] [stdout] test src/lib.rs - (line 154) ... FAILED [INFO] [stdout] test src/lib.rs - (line 115) ... FAILED [INFO] [stdout] test src/lib.rs - (line 52) ... FAILED [INFO] [stdout] test src/lib.rs - (line 30) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 104) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConfigLoader` [INFO] [stdout] --> src/lib.rs:105:14 [INFO] [stdout] | [INFO] [stdout] 105 | let config = ConfigLoader::default() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ConfigLoader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 104 + use konfik::ConfigLoader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AppConfig` in this scope [INFO] [stdout] --> src/lib.rs:108:13 [INFO] [stdout] | [INFO] [stdout] 108 | .load::()?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 104 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_104_0() { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 137) stdout ---- [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:138:10 [INFO] [stdout] | [INFO] [stdout] 138 | #[derive(Deserialize, Konfik)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 137 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Konfik` in this scope [INFO] [stdout] --> src/lib.rs:138:23 [INFO] [stdout] | [INFO] [stdout] 138 | #[derive(Deserialize, Konfik)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Konfik` is in scope, but it is a struct, not a derive macro [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 137 + use konfik::Konfik; [INFO] [stdout] | [INFO] [stdout] 137 + use konfik_derive::Konfik; [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/lib.rs - (line 126) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConfigLoader` [INFO] [stdout] --> src/lib.rs:127:14 [INFO] [stdout] | [INFO] [stdout] 127 | let config = ConfigLoader::default() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ConfigLoader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 126 + use konfik::ConfigLoader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Config` in this scope [INFO] [stdout] --> src/lib.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | .load::()?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 126 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_126_0() { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 154) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ConfigLoader` [INFO] [stdout] --> src/lib.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | let config = ConfigLoader::default() [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `ConfigLoader` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 154 + use konfik::ConfigLoader; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> src/lib.rs:160:28 [INFO] [stdout] | [INFO] [stdout] 160 | return Err(Error::Validation("Port must be between 1024 and 65535".into())); [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 154 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 154 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 154 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 154 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 11 other candidates [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Error` [INFO] [stdout] --> src/lib.rs:169:24 [INFO] [stdout] | [INFO] [stdout] 169 | return Err(Error::Validation("SSL enabled but no certificate path provided".into())); [INFO] [stdout] | ^^^^^ use of undeclared type `Error` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 154 + use std::error::Error; [INFO] [stdout] | [INFO] [stdout] 154 + use std::fmt::Error; [INFO] [stdout] | [INFO] [stdout] 154 + use std::io::Error; [INFO] [stdout] | [INFO] [stdout] 154 + use core::error::Error; [INFO] [stdout] | [INFO] [stdout] = and 11 other candidates [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `AppConfig` in this scope [INFO] [stdout] --> src/lib.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | .load::()?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 154 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_154_0() { [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:156:23 [INFO] [stdout] | [INFO] [stdout] 156 | .with_validation(|config| { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 157 | // Validate port range [INFO] [stdout] 158 | if let Some(port) = config.get("port").and_then(|v| v.as_u64()) { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 156 | .with_validation(|config: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:158:58 [INFO] [stdout] | [INFO] [stdout] 158 | if let Some(port) = config.get("port").and_then(|v| v.as_u64()) { [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 158 | if let Some(port) = config.get("port").and_then(|v: /* Type */| v.as_u64()) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:165:59 [INFO] [stdout] | [INFO] [stdout] 165 | let has_ssl = config.get("ssl_enabled").and_then(|v| v.as_bool()).unwrap_or(false); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 165 | let has_ssl = config.get("ssl_enabled").and_then(|v: /* Type */| v.as_bool()).unwrap_or(false); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:166:66 [INFO] [stdout] | [INFO] [stdout] 166 | let has_ssl_cert = config.get("ssl_cert_path").and_then(|v| v.as_str()).is_some(); [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 166 | let has_ssl_cert = config.get("ssl_cert_path").and_then(|v: /* Type */| v.as_str()).is_some(); [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 115) stdout ---- [INFO] [stdout] error: cannot find derive macro `Deserialize` in this scope [INFO] [stdout] --> src/lib.rs:116:10 [INFO] [stdout] | [INFO] [stdout] 116 | #[derive(Deserialize, Konfik)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 115 + use serde::Deserialize; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Konfik` in this scope [INFO] [stdout] --> src/lib.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | #[derive(Deserialize, Konfik)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these derive macros [INFO] [stdout] | [INFO] [stdout] 115 + use konfik::Konfik; [INFO] [stdout] | [INFO] [stdout] 115 + use konfik_derive::Konfik; [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/lib.rs - (line 52) stdout ---- [INFO] [stdout] error[E0599]: no method named `with_cli` found for struct `ConfigLoader` in the current scope [INFO] [stdout] --> src/lib.rs:71:10 [INFO] [stdout] | [INFO] [stdout] 68 | let config = ConfigLoader::default() [INFO] [stdout] | __________________- [INFO] [stdout] 69 | | .with_env_prefix("MYAPP") // Environment variables: MYAPP_DATABASE_URL, etc. [INFO] [stdout] 70 | | .with_config_file("app.toml") // Additional config file [INFO] [stdout] 71 | | .with_cli() // Enable CLI argument parsing [INFO] [stdout] | |_________-^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `load_with_cli` with a similar name [INFO] [stdout] | [INFO] [stdout] 71 | .load_with_cli() // Enable CLI argument parsing [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | .with_validation(|config| { // Custom validation [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 73 | if let Some(port) = config.get("port").and_then(|v| v.as_u64()) { [INFO] [stdout] | ------ type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 72 | .with_validation(|config: /* Type */| { // Custom validation [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:73:62 [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(port) = config.get("port").and_then(|v| v.as_u64()) { [INFO] [stdout] | ^ - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 73 | if let Some(port) = config.get("port").and_then(|v: /* Type */| v.as_u64()) { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 30) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: ConfigParse { type_name: "rust_out::AppConfig", source: Error("missing field `database_url`", line: 0, column: 0) } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 104) [INFO] [stdout] src/lib.rs - (line 115) [INFO] [stdout] src/lib.rs - (line 126) [INFO] [stdout] src/lib.rs - (line 137) [INFO] [stdout] src/lib.rs - (line 154) [INFO] [stdout] src/lib.rs - (line 30) [INFO] [stdout] src/lib.rs - (line 52) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.87s [INFO] [stdout] [INFO] [stdout] all doctests ran in 1.17s; merged doctests compilation took 0.29s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "c5e0534f6d3c31bd66975592b473afd867737654cf72bdcfc5f948c20ff70b37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c5e0534f6d3c31bd66975592b473afd867737654cf72bdcfc5f948c20ff70b37", kill_on_drop: false }` [INFO] [stdout] c5e0534f6d3c31bd66975592b473afd867737654cf72bdcfc5f948c20ff70b37