[INFO] fetching crate flare-core 0.1.1... [INFO] building flare-core-0.1.1 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] extracting crate flare-core 0.1.1 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate flare-core 0.1.1 [INFO] finished tweaking crates.io crate flare-core 0.1.1 [INFO] tweaked toml for crates.io crate flare-core 0.1.1 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate flare-core 0.1.1 on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate flare-core 0.1.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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded httparse v1.10.0 [INFO] [stderr] Downloaded prost-derive v0.13.5 [INFO] [stderr] Downloaded env_logger v0.11.6 [INFO] [stderr] Downloaded prost-types v0.13.5 [INFO] [stderr] Downloaded prost-build v0.13.5 [INFO] [stderr] Downloaded zerocopy-derive v0.8.20 [INFO] [stderr] Downloaded cc v1.2.15 [INFO] [stderr] Downloaded tempfile v3.17.1 [INFO] [stderr] Downloaded rand_core v0.9.2 [INFO] [stderr] Downloaded rand v0.9.0 [INFO] [stderr] Downloaded zerocopy v0.8.20 [INFO] [stderr] Downloaded multimap v0.10.0 [INFO] [stderr] Downloaded flate2 v1.1.0 [INFO] [stderr] Downloaded either v1.14.0 [INFO] [stderr] Downloaded prost v0.13.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3d096e163c09bfe08b4b28e3e25d14735180c4bbd8bc0922da8f8a8547f07a3e [INFO] running `Command { std: "docker" "start" "-a" "3d096e163c09bfe08b4b28e3e25d14735180c4bbd8bc0922da8f8a8547f07a3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3d096e163c09bfe08b4b28e3e25d14735180c4bbd8bc0922da8f8a8547f07a3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3d096e163c09bfe08b4b28e3e25d14735180c4bbd8bc0922da8f8a8547f07a3e", kill_on_drop: false }` [INFO] [stdout] 3d096e163c09bfe08b4b28e3e25d14735180c4bbd8bc0922da8f8a8547f07a3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74af8aacd3988eaef52dd98861b60b0e09db0b7de41911d72325b3a84503e7ac [INFO] running `Command { std: "docker" "start" "-a" "74af8aacd3988eaef52dd98861b60b0e09db0b7de41911d72325b3a84503e7ac", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling either v1.14.0 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling zerocopy v0.8.20 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.96 [INFO] [stderr] Compiling bitflags v2.8.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling fixedbitset v0.5.7 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling itertools v0.14.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling thiserror v2.0.11 [INFO] [stderr] Compiling petgraph v0.7.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling multimap v0.10.0 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling data-encoding v2.8.0 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling anstream v0.6.18 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling rand_core v0.9.2 [INFO] [stderr] Compiling tempfile v3.17.1 [INFO] [stderr] Compiling http v1.2.0 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling prettyplease v0.2.29 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling prost-derive v0.13.5 [INFO] [stderr] Compiling thiserror-impl v2.0.11 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling async-trait v0.1.86 [INFO] [stderr] Compiling env_filter v0.1.3 [INFO] [stderr] Compiling tokio v1.43.0 [INFO] [stderr] Compiling env_logger v0.11.6 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling prost v0.13.5 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling prost-types v0.13.5 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling rand v0.9.0 [INFO] [stderr] Compiling prost-build v0.13.5 [INFO] [stderr] Compiling tungstenite v0.26.2 [INFO] [stderr] Compiling flare-core v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling tokio-tungstenite v0.26.2 [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/logs/rotate.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LogConfigBuilder`, `LogConfig`, `LoggerBuilder`, and `Logger` [INFO] [stdout] --> src/logs/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub use rotate::{Logger, LogConfig, LoggerBuilder, LogConfigBuilder}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT_ROTATE_CHECK` is never used [INFO] [stdout] --> src/logs/rotate.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static INIT_ROTATE_CHECK: Once = Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogConfig` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct LogConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `builder` and `get_level` are never used [INFO] [stdout] --> src/logs/rotate.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl LogConfig { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 55 | pub fn builder() -> LogConfigBuilder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_level(&self) -> LevelFilter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `get_log_file`, `rotate_logs`, `cleanup_old_logs`, `compress_file`, and `check_rotate` are never used [INFO] [stdout] --> src/logs/rotate.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Logger { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 74 | pub fn init(config: Option) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn get_log_file(config: &LogConfig) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn rotate_logs(config: &LogConfig, current_file: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn cleanup_old_logs(config: &LogConfig) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn compress_file(path: &PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn check_rotate() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoggerBuilder` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct LoggerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_config`, and `build` are never used [INFO] [stdout] --> src/logs/rotate.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 231 | impl LoggerBuilder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 232 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn from_config(config: LogConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn build(self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogConfigBuilder` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub struct LogConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/logs/rotate.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 251 | impl LogConfigBuilder { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 252 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn output_dir>(mut self, path: P) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn file_prefix>(mut self, prefix: S) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn level(mut self, level: u8) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn max_size(mut self, size: u64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn max_backups(mut self, count: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn max_age(mut self, days: u32) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn compress(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn time_format>(mut self, format: S) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn console_output(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn build(self) -> LogConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.13s [INFO] running `Command { std: "docker" "inspect" "74af8aacd3988eaef52dd98861b60b0e09db0b7de41911d72325b3a84503e7ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74af8aacd3988eaef52dd98861b60b0e09db0b7de41911d72325b3a84503e7ac", kill_on_drop: false }` [INFO] [stdout] 74af8aacd3988eaef52dd98861b60b0e09db0b7de41911d72325b3a84503e7ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a303ad6a6c7cfd9128d92097eee9cc78ba1996ead10933a50addc680d7179fd7 [INFO] running `Command { std: "docker" "start" "-a" "a303ad6a6c7cfd9128d92097eee9cc78ba1996ead10933a50addc680d7179fd7", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/logs/rotate.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LogConfigBuilder`, `LogConfig`, `LoggerBuilder`, and `Logger` [INFO] [stdout] --> src/logs/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub use rotate::{Logger, LogConfig, LoggerBuilder, LogConfigBuilder}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT_ROTATE_CHECK` is never used [INFO] [stdout] --> src/logs/rotate.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static INIT_ROTATE_CHECK: Once = Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogConfig` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct LogConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `builder` and `get_level` are never used [INFO] [stdout] --> src/logs/rotate.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl LogConfig { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 55 | pub fn builder() -> LogConfigBuilder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_level(&self) -> LevelFilter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `get_log_file`, `rotate_logs`, `cleanup_old_logs`, `compress_file`, and `check_rotate` are never used [INFO] [stdout] --> src/logs/rotate.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Logger { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 74 | pub fn init(config: Option) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn get_log_file(config: &LogConfig) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn rotate_logs(config: &LogConfig, current_file: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn cleanup_old_logs(config: &LogConfig) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn compress_file(path: &PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn check_rotate() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoggerBuilder` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct LoggerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_config`, and `build` are never used [INFO] [stdout] --> src/logs/rotate.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 231 | impl LoggerBuilder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 232 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn from_config(config: LogConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn build(self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogConfigBuilder` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub struct LogConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/logs/rotate.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 251 | impl LogConfigBuilder { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 252 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn output_dir>(mut self, path: P) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn file_prefix>(mut self, prefix: S) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn level(mut self, level: u8) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn max_size(mut self, size: u64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn max_backups(mut self, count: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn max_age(mut self, days: u32) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn compress(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn time_format>(mut self, format: S) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn console_output(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn build(self) -> LogConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling flare-core v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `DateTime` [INFO] [stdout] --> src/logs/rotate.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use chrono::{DateTime, Local}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LogConfigBuilder`, `LogConfig`, `LoggerBuilder`, and `Logger` [INFO] [stdout] --> src/logs/mod.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | pub use rotate::{Logger, LogConfig, LoggerBuilder, LogConfigBuilder}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `INIT_ROTATE_CHECK` is never used [INFO] [stdout] --> src/logs/rotate.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | static INIT_ROTATE_CHECK: Once = Once::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogConfig` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct LogConfig { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `builder` and `get_level` are never used [INFO] [stdout] --> src/logs/rotate.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl LogConfig { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 55 | pub fn builder() -> LogConfigBuilder { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | fn get_level(&self) -> LevelFilter { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Logger` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct Logger; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `init`, `get_log_file`, `rotate_logs`, `cleanup_old_logs`, `compress_file`, and `check_rotate` are never used [INFO] [stdout] --> src/logs/rotate.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl Logger { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] 74 | pub fn init(config: Option) -> std::io::Result<()> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | fn get_log_file(config: &LogConfig) -> std::io::Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 142 | fn rotate_logs(config: &LogConfig, current_file: &str) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 167 | fn cleanup_old_logs(config: &LogConfig) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 185 | fn compress_file(path: &PathBuf) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 201 | pub fn check_rotate() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LoggerBuilder` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:227:12 [INFO] [stdout] | [INFO] [stdout] 227 | pub struct LoggerBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from_config`, and `build` are never used [INFO] [stdout] --> src/logs/rotate.rs:232:12 [INFO] [stdout] | [INFO] [stdout] 231 | impl LoggerBuilder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 232 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 238 | pub fn from_config(config: LogConfig) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 242 | pub fn build(self) -> std::io::Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LogConfigBuilder` is never constructed [INFO] [stdout] --> src/logs/rotate.rs:247:12 [INFO] [stdout] | [INFO] [stdout] 247 | pub struct LogConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/logs/rotate.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 251 | impl LogConfigBuilder { [INFO] [stdout] | --------------------- associated items in this implementation [INFO] [stdout] 252 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn output_dir>(mut self, path: P) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | pub fn file_prefix>(mut self, prefix: S) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn level(mut self, level: u8) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 273 | pub fn max_size(mut self, size: u64) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 278 | pub fn max_backups(mut self, count: u32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 283 | pub fn max_age(mut self, days: u32) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 288 | pub fn compress(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 293 | pub fn time_format>(mut self, format: S) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 298 | pub fn console_output(mut self, enable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 303 | pub fn build(self) -> LogConfig { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "a303ad6a6c7cfd9128d92097eee9cc78ba1996ead10933a50addc680d7179fd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a303ad6a6c7cfd9128d92097eee9cc78ba1996ead10933a50addc680d7179fd7", kill_on_drop: false }` [INFO] [stdout] a303ad6a6c7cfd9128d92097eee9cc78ba1996ead10933a50addc680d7179fd7