[INFO] cloning repository https://github.com/muhammad-fiaz/logly-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/muhammad-fiaz/logly-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhammad-fiaz%2Flogly-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhammad-fiaz%2Flogly-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f8e8c909b5c3f214d939c7d4b855110f5a7c312d [INFO] checking muhammad-fiaz/logly-rs against master#d93f678fa55842cccd2f091deccd93e9494b3764 for pr-138844 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmuhammad-fiaz%2Flogly-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/muhammad-fiaz/logly-rs on toolchain d93f678fa55842cccd2f091deccd93e9494b3764 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/muhammad-fiaz/logly-rs [INFO] finished tweaking git repo https://github.com/muhammad-fiaz/logly-rs [INFO] tweaked toml for git repo https://github.com/muhammad-fiaz/logly-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/muhammad-fiaz/logly-rs 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" "+d93f678fa55842cccd2f091deccd93e9494b3764" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded colorama v0.1.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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5de53208caeb4005dde8fd00b5e32b988932576455af9eac364e3518990c3fd9 [INFO] running `Command { std: "docker" "start" "-a" "5de53208caeb4005dde8fd00b5e32b988932576455af9eac364e3518990c3fd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5de53208caeb4005dde8fd00b5e32b988932576455af9eac364e3518990c3fd9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5de53208caeb4005dde8fd00b5e32b988932576455af9eac364e3518990c3fd9", kill_on_drop: false }` [INFO] [stdout] 5de53208caeb4005dde8fd00b5e32b988932576455af9eac364e3518990c3fd9 [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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+d93f678fa55842cccd2f091deccd93e9494b3764" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a850385eaff7c9129c667de85ac4ed19601fba8f161d0b79c5f228c4c1823b39 [INFO] running `Command { std: "docker" "start" "-a" "a850385eaff7c9129c667de85ac4ed19601fba8f161d0b79c5f228c4c1823b39", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.6.4 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking iana-time-zone v0.1.58 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking fern v0.6.2 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking colorama v0.1.0 [INFO] [stderr] Checking termcolor v1.4.0 [INFO] [stderr] Checking anstream v0.6.12 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Checking chrono v0.4.31 [INFO] [stderr] Checking regex-automata v0.4.3 [INFO] [stderr] Checking regex v1.10.2 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.2 [INFO] [stderr] Checking logly v0.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/logly.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum LogLevel { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 10 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | Warn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | Fatal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Trace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogLevel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red`, `Yellow`, `Cyan`, `Blue`, `White`, and `Critical` are never constructed [INFO] [stdout] --> src/logly.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum LogColor { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 37 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 38 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | Cyan, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogColor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logly.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Logger { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/logly.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Logger { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 54 | // Create a new Logger instance [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn start_logging(&self, file_path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn stop_logging(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn set_default_file_path(&mut self, path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_default_max_file_size(&mut self, max_size: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn log_message(&self, level: LogLevel, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn info(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn warn(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn error(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn debug(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn critical(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn fatal(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn trace(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn log(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn set_color_enabled(&mut self, color_enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/logly.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum LogLevel { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 10 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | Warn, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | Error, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | Debug, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 14 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | Fatal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Trace, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogLevel` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Red`, `Yellow`, `Cyan`, `Blue`, `White`, and `Critical` are never constructed [INFO] [stdout] --> src/logly.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum LogColor { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 37 | Red, [INFO] [stdout] | ^^^ [INFO] [stdout] 38 | Yellow, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 39 | Cyan, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | Blue, [INFO] [stdout] | ^^^^ [INFO] [stdout] 41 | White, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 42 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LogColor` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logly.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 46 | pub struct Logger { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/logly.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 53 | impl Logger { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 54 | // Create a new Logger instance [INFO] [stdout] 55 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | pub fn start_logging(&self, file_path: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn stop_logging(&self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 77 | pub fn set_default_file_path(&mut self, path: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn set_default_max_file_size(&mut self, max_size: u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | fn log_message(&self, level: LogLevel, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn info(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 122 | pub fn warn(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn error(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 130 | pub fn debug(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 134 | pub fn critical(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn fatal(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | pub fn trace(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | pub fn log(&self, key: &str, value: &str, color: LogColor) { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn set_color_enabled(&mut self, color_enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.84s [INFO] running `Command { std: "docker" "inspect" "a850385eaff7c9129c667de85ac4ed19601fba8f161d0b79c5f228c4c1823b39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a850385eaff7c9129c667de85ac4ed19601fba8f161d0b79c5f228c4c1823b39", kill_on_drop: false }` [INFO] [stdout] a850385eaff7c9129c667de85ac4ed19601fba8f161d0b79c5f228c4c1823b39