[INFO] fetching crate log4rust 0.1.6... [INFO] testing log4rust-0.1.6 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate log4rust 0.1.6 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate log4rust 0.1.6 [INFO] finished tweaking crates.io crate log4rust 0.1.6 [INFO] tweaked toml for crates.io crate log4rust 0.1.6 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate log4rust 0.1.6 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 98 packages to latest compatible versions [INFO] [stderr] Adding colored v2.2.0 (available: v3.0.0) [INFO] [stderr] Adding ureq v2.12.1 (available: v3.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f6e1a672d8c947219a3ddd5018c46d0d0a16277bb2c2e53d14e34640929ae2a [INFO] running `Command { std: "docker" "start" "-a" "7f6e1a672d8c947219a3ddd5018c46d0d0a16277bb2c2e53d14e34640929ae2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f6e1a672d8c947219a3ddd5018c46d0d0a16277bb2c2e53d14e34640929ae2a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f6e1a672d8c947219a3ddd5018c46d0d0a16277bb2c2e53d14e34640929ae2a", kill_on_drop: false }` [INFO] [stdout] 7f6e1a672d8c947219a3ddd5018c46d0d0a16277bb2c2e53d14e34640929ae2a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4cc4d7f4dd00a3ca398ff513ed398d56cf3c8f1d95a087fad05b05452952a0e0 [INFO] running `Command { std: "docker" "start" "-a" "4cc4d7f4dd00a3ca398ff513ed398d56cf3c8f1d95a087fad05b05452952a0e0", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling object v0.36.7 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling gimli v0.31.1 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling iana-time-zone v0.1.63 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling addr2line v0.24.2 [INFO] [stderr] Compiling backtrace v0.3.75 [INFO] [stderr] Compiling log4rust v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.03s [INFO] running `Command { std: "docker" "inspect" "4cc4d7f4dd00a3ca398ff513ed398d56cf3c8f1d95a087fad05b05452952a0e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cc4d7f4dd00a3ca398ff513ed398d56cf3c8f1d95a087fad05b05452952a0e0", kill_on_drop: false }` [INFO] [stdout] 4cc4d7f4dd00a3ca398ff513ed398d56cf3c8f1d95a087fad05b05452952a0e0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af6f2f02e70374593093e9aa47115df75480288e15af663e32c3276402df54e8 [INFO] running `Command { std: "docker" "start" "-a" "af6f2f02e70374593093e9aa47115df75480288e15af663e32c3276402df54e8", kill_on_drop: false }` [INFO] [stderr] Compiling log4rust v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] running `Command { std: "docker" "inspect" "af6f2f02e70374593093e9aa47115df75480288e15af663e32c3276402df54e8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af6f2f02e70374593093e9aa47115df75480288e15af663e32c3276402df54e8", kill_on_drop: false }` [INFO] [stdout] af6f2f02e70374593093e9aa47115df75480288e15af663e32c3276402df54e8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 56421490cd51009946a0641d68de2d16e6f18585b8e3f7fdc043270bbd817723 [INFO] running `Command { std: "docker" "start" "-a" "56421490cd51009946a0641d68de2d16e6f18585b8e3f7fdc043270bbd817723", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/log4rust-896475cd575417d4) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests log4rust [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 85) ... FAILED [INFO] [stdout] test src/config.rs - config::Config (line 60) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error: cannot find macro `fatal` in this scope [INFO] [stdout] --> src/lib.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 10 | fatal!("This is something fatal"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::fatal; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/lib.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 9 | error!("This is an error"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/lib.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 8 | warn!("This is a warning"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/lib.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | info!("This is some info"); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/config.rs - config::Config (line 85) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Time` [INFO] [stdout] --> src/config.rs:88:10 [INFO] [stdout] | [INFO] [stdout] 6 | .time(Time::UTC) [INFO] [stdout] | ^^^^ use of undeclared type `Time` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Log` [INFO] [stdout] --> src/config.rs:89:14 [INFO] [stdout] | [INFO] [stdout] 7 | .set_type(Log::Info)?.console(Console::_None)? [INFO] [stdout] | ^^^ use of undeclared type `Log` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Console` [INFO] [stdout] --> src/config.rs:89:34 [INFO] [stdout] | [INFO] [stdout] 7 | .set_type(Log::Info)?.console(Console::_None)? [INFO] [stdout] | ^^^^^^^ use of undeclared type `Console` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Console; [INFO] [stdout] | [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:89:24 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_85_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | .set_type(Log::Info)?.console(Console::_None)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_85_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 9 | .unwrap(); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [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:89:49 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_85_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | .set_type(Log::Info)?.console(Console::_None)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_85_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 9 | .unwrap(); [INFO] [stdout] 10+ Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [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 (line 60) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Time` [INFO] [stdout] --> src/config.rs:63:11 [INFO] [stdout] | [INFO] [stdout] 6 | .time(Time::Local) [INFO] [stdout] | ^^^^ use of undeclared type `Time` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Log` [INFO] [stdout] --> src/config.rs:64:15 [INFO] [stdout] | [INFO] [stdout] 7 | .set_type(Log::Info)? [INFO] [stdout] | ^^^ use of undeclared type `Log` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/config.rs:65:16 [INFO] [stdout] | [INFO] [stdout] 8 | .color(Color::TrueColor{r:0,g:255,b:255})? [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use colored::Color; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Console` [INFO] [stdout] --> src/config.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 9 | .console(Console::Stdout)? [INFO] [stdout] | ^^^^^^^ use of undeclared type `Console` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Console; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Backtrace` [INFO] [stdout] --> src/config.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 10 | .backtrace(Backtrace::_None)? [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Backtrace` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Backtrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Log` [INFO] [stdout] --> src/config.rs:68:15 [INFO] [stdout] | [INFO] [stdout] 11 | .set_type(Log::Warn)? [INFO] [stdout] | ^^^ use of undeclared type `Log` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/config.rs:69:16 [INFO] [stdout] | [INFO] [stdout] 12 | .color(Color::TrueColor{r:255,g:215,b:185})? [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use colored::Color; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Console` [INFO] [stdout] --> src/config.rs:70:18 [INFO] [stdout] | [INFO] [stdout] 13 | .console(Console::Stderr)? [INFO] [stdout] | ^^^^^^^ use of undeclared type `Console` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Console; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Backtrace` [INFO] [stdout] --> src/config.rs:71:20 [INFO] [stdout] | [INFO] [stdout] 14 | .backtrace(Backtrace::_None)? [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Backtrace` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Backtrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Log` [INFO] [stdout] --> src/config.rs:72:15 [INFO] [stdout] | [INFO] [stdout] 15 | .set_type(Log::Error)? [INFO] [stdout] | ^^^ use of undeclared type `Log` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/config.rs:73:16 [INFO] [stdout] | [INFO] [stdout] 16 | .color(Color::TrueColor{r:255,g:100,b:0})? [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use colored::Color; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Console` [INFO] [stdout] --> src/config.rs:74:18 [INFO] [stdout] | [INFO] [stdout] 17 | .console(Console::Stderr)? [INFO] [stdout] | ^^^^^^^ use of undeclared type `Console` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Console; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Backtrace` [INFO] [stdout] --> src/config.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 18 | .backtrace(Backtrace::Simple)? [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Backtrace` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Backtrace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Log` [INFO] [stdout] --> src/config.rs:76:15 [INFO] [stdout] | [INFO] [stdout] 19 | .set_type(Log::Fatal)? [INFO] [stdout] | ^^^ use of undeclared type `Log` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Log; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Color` [INFO] [stdout] --> src/config.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 20 | .color(Color::TrueColor{r:255,g:0,b:0})? [INFO] [stdout] | ^^^^^ use of undeclared type `Color` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these enums [INFO] [stdout] | [INFO] [stdout] 2 + use colored::Color; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Color; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Console` [INFO] [stdout] --> src/config.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 21 | .console(Console::Stderr)? [INFO] [stdout] | ^^^^^^^ use of undeclared type `Console` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Console; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Backtrace` [INFO] [stdout] --> src/config.rs:79:20 [INFO] [stdout] | [INFO] [stdout] 22 | .backtrace(Backtrace::Complex)? [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `Backtrace` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use std::backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use backtrace::Backtrace; [INFO] [stdout] | [INFO] [stdout] 2 + use log4rust::Backtrace; [INFO] [stdout] | [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:64:25 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 7 | .set_type(Log::Info)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24| .unwrap(); [INFO] [stdout] 25+ Ok(()) [INFO] [stdout] | [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:65:50 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | .color(Color::TrueColor{r:0,g:255,b:255})? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24| .unwrap(); [INFO] [stdout] 25+ Ok(()) [INFO] [stdout] | [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:66:34 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | .console(Console::Stdout)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24| .unwrap(); [INFO] [stdout] 25+ Ok(()) [INFO] [stdout] | [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:67:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 10 | .backtrace(Backtrace::_None)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:68:25 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | .set_type(Log::Warn)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:69:52 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 12 | .color(Color::TrueColor{r:255,g:215,b:185})? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:70:34 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 13 | .console(Console::Stderr)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:71:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 14 | .backtrace(Backtrace::_None)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:72:26 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 15 | .set_type(Log::Error)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:73:50 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 16 | .color(Color::TrueColor{r:255,g:100,b:0})? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:74:34 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 17 | .console(Console::Stderr)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:75:38 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 18 | .backtrace(Backtrace::Simple)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:76:26 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 19 | .set_type(Log::Fatal)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:77:48 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 20 | .color(Color::TrueColor{r:255,g:0,b:0})? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:78:34 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 21 | .console(Console::Stderr)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [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:79:39 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 22 | .backtrace(Backtrace::Complex)? [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_config_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 5 | log4rust::new() [INFO] [stdout] ... [INFO] [stdout] 24 | .unwrap(); [INFO] [stdout] 25 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 33 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [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 (line 60) [INFO] [stdout] src/config.rs - config::Config (line 85) [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "56421490cd51009946a0641d68de2d16e6f18585b8e3f7fdc043270bbd817723", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "56421490cd51009946a0641d68de2d16e6f18585b8e3f7fdc043270bbd817723", kill_on_drop: false }` [INFO] [stdout] 56421490cd51009946a0641d68de2d16e6f18585b8e3f7fdc043270bbd817723