[INFO] fetching crate loggit 0.1.9... [INFO] building loggit-0.1.9 against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] extracting crate loggit 0.1.9 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate loggit 0.1.9 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate loggit 0.1.9 [INFO] tweaked toml for crates.io crate loggit 0.1.9 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate loggit 0.1.9 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 loggit 0.1.9 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] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded dtor v0.0.6 [INFO] [stderr] Downloaded ctor-proc-macro v0.0.5 [INFO] [stderr] Downloaded dtor-proc-macro v0.0.5 [INFO] [stderr] Downloaded ctor v0.4.2 [INFO] [stderr] Downloaded lalrpop-util v0.19.12 [INFO] [stderr] Downloaded env-file-reader v0.3.0 [INFO] [stderr] Downloaded libz-rs-sys v0.5.0 [INFO] [stderr] Downloaded time v0.3.40 [INFO] [stderr] Downloaded lalrpop v0.19.12 [INFO] [stderr] Downloaded zlib-rs v0.5.0 [INFO] [stderr] Downloaded zip v3.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 2f1db96d6ff2fa89021a76d19259a168cba41fe7ac667228082ed60e67b5f408 [INFO] running `Command { std: "docker" "start" "-a" "2f1db96d6ff2fa89021a76d19259a168cba41fe7ac667228082ed60e67b5f408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f1db96d6ff2fa89021a76d19259a168cba41fe7ac667228082ed60e67b5f408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f1db96d6ff2fa89021a76d19259a168cba41fe7ac667228082ed60e67b5f408", kill_on_drop: false }` [INFO] [stdout] 2f1db96d6ff2fa89021a76d19259a168cba41fe7ac667228082ed60e67b5f408 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6e62e2dda6f436af046dfa84964ebccff2233bd49baf07c86e9879a901eb7789 [INFO] running `Command { std: "docker" "start" "-a" "6e62e2dda6f436af046dfa84964ebccff2233bd49baf07c86e9879a901eb7789", kill_on_drop: false }` [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling once_cell v1.21.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling cc v1.2.16 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling zlib-rs v0.5.0 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling crc v3.2.1 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling lockfree-object-pool v0.1.6 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling dtor-proc-macro v0.0.5 [INFO] [stderr] Compiling zopfli v0.8.1 [INFO] [stderr] Compiling time v0.3.40 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling lzma-rs v0.3.0 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling dtor v0.0.6 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ctor-proc-macro v0.0.5 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling deflate64 v0.1.9 [INFO] [stderr] Compiling trim-in-place v0.1.7 [INFO] [stderr] Compiling ctor v0.4.2 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling rust-ini v0.21.1 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling xz2 v0.1.7 [INFO] [stderr] Compiling bzip2 v0.5.2 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling libz-rs-sys v0.5.0 [INFO] [stderr] Compiling flate2 v1.1.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zip v3.0.0 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling env-file-reader v0.3.0 [INFO] [stderr] Compiling loggit v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::sync::Once` [INFO] [stdout] --> src/logger.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::Once; [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 import: `fs::File` [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | let secs_desirable = ((h * 60 * 60) + (m * 60)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 549 - let secs_desirable = ((h * 60 * 60) + (m * 60)); [INFO] [stdout] 549 + let secs_desirable = (h * 60 * 60) + (m * 60); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let mut file = match std::fs::OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_res` [INFO] [stdout] --> src/logger/from_file_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | let read_res = file [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/logger/from_file_config.rs:405:24 [INFO] [stdout] | [INFO] [stdout] 405 | fn read_from_json_file(path: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/logger/from_file_config.rs:407:23 [INFO] [stdout] | [INFO] [stdout] 407 | fn read_from_ini_file(path: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seconds_to_ymdhms` is never used [INFO] [stdout] --> src/helper.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) fn seconds_to_ymdhms(mut seconds: u64) -> (u64, u64, u64, u64, u64, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnableToWriteToArchive` is never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) enum CompressFileError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 63 | UnableToWriteToArchive, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompressFileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnableToVerifyFileExistence`, `UnableToCreateFile`, and `UnableToOpenFile` are never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) enum VerifyConstraintsError { [INFO] [stdout] | ---------------------- variants in this enum [INFO] [stdout] 74 | #[error("unable to verify file existence {0}")] [INFO] [stdout] 75 | UnableToVerifyFileExistence(std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | #[error("unable to create file {0} {1}")] [INFO] [stdout] 77 | UnableToCreateFile(String, std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[error("unable to open file: {0} {1}")] [INFO] [stdout] 79 | UnableToOpenFile(String, std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VerifyConstraintsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnableToVerifyFileExistence` is never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) enum CreateNewFileError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 102 | #[error("unable to verify that the file exists: {0}")] [INFO] [stdout] 103 | UnableToVerifyFileExistence(std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateNewFileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_file_name`, `remove_rotations`, and `remove_compression` are never used [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 110 | impl FileManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub(crate) fn get_file_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub(crate) fn remove_rotations(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub(crate) fn remove_compression(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `End` is never constructed [INFO] [stdout] --> src/logger/formatter.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 199 | enum ParseParts { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 200 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseParts` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_json_file` is never used [INFO] [stdout] --> src/logger/from_file_config.rs:405:4 [INFO] [stdout] | [INFO] [stdout] 405 | fn read_from_json_file(path: &str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_ini_file` is never used [INFO] [stdout] --> src/logger/from_file_config.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn read_from_ini_file(path: &str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 41.50s [INFO] running `Command { std: "docker" "inspect" "6e62e2dda6f436af046dfa84964ebccff2233bd49baf07c86e9879a901eb7789", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e62e2dda6f436af046dfa84964ebccff2233bd49baf07c86e9879a901eb7789", kill_on_drop: false }` [INFO] [stdout] 6e62e2dda6f436af046dfa84964ebccff2233bd49baf07c86e9879a901eb7789 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 4f21dd19def152549674b0bf52f63d61e859ef4d4442b2b56cd8f353a315e2c2 [INFO] running `Command { std: "docker" "start" "-a" "4f21dd19def152549674b0bf52f63d61e859ef4d4442b2b56cd8f353a315e2c2", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::sync::Once` [INFO] [stdout] --> src/logger.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::Once; [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 import: `fs::File` [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | let secs_desirable = ((h * 60 * 60) + (m * 60)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 549 - let secs_desirable = ((h * 60 * 60) + (m * 60)); [INFO] [stdout] 549 + let secs_desirable = (h * 60 * 60) + (m * 60); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let mut file = match std::fs::OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_res` [INFO] [stdout] --> src/logger/from_file_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | let read_res = file [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/logger/from_file_config.rs:405:24 [INFO] [stdout] | [INFO] [stdout] 405 | fn read_from_json_file(path: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/logger/from_file_config.rs:407:23 [INFO] [stdout] | [INFO] [stdout] 407 | fn read_from_ini_file(path: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seconds_to_ymdhms` is never used [INFO] [stdout] --> src/helper.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | pub(crate) fn seconds_to_ymdhms(mut seconds: u64) -> (u64, u64, u64, u64, u64, u64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnableToWriteToArchive` is never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) enum CompressFileError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 63 | UnableToWriteToArchive, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompressFileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnableToVerifyFileExistence`, `UnableToCreateFile`, and `UnableToOpenFile` are never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) enum VerifyConstraintsError { [INFO] [stdout] | ---------------------- variants in this enum [INFO] [stdout] 74 | #[error("unable to verify file existence {0}")] [INFO] [stdout] 75 | UnableToVerifyFileExistence(std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | #[error("unable to create file {0} {1}")] [INFO] [stdout] 77 | UnableToCreateFile(String, std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[error("unable to open file: {0} {1}")] [INFO] [stdout] 79 | UnableToOpenFile(String, std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VerifyConstraintsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnableToVerifyFileExistence` is never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) enum CreateNewFileError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 102 | #[error("unable to verify that the file exists: {0}")] [INFO] [stdout] 103 | UnableToVerifyFileExistence(std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateNewFileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_file_name`, `remove_rotations`, and `remove_compression` are never used [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:148:19 [INFO] [stdout] | [INFO] [stdout] 110 | impl FileManager { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 148 | pub(crate) fn get_file_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 151 | pub(crate) fn remove_rotations(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 177 | pub(crate) fn remove_compression(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `End` is never constructed [INFO] [stdout] --> src/logger/formatter.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 199 | enum ParseParts { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 200 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseParts` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_json_file` is never used [INFO] [stdout] --> src/logger/from_file_config.rs:405:4 [INFO] [stdout] | [INFO] [stdout] 405 | fn read_from_json_file(path: &str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_ini_file` is never used [INFO] [stdout] --> src/logger/from_file_config.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn read_from_ini_file(path: &str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling loggit v0.1.9 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::timestamp_nanos`: use `timestamp_nanos_opt()` instead [INFO] [stdout] --> tests/multi_thread.rs:49:58 [INFO] [stdout] | [INFO] [stdout] 49 | let prefix = format!("mt_log_{}", chrono::Utc::now().timestamp_nanos()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::timestamp_nanos`: use `timestamp_nanos_opt()` instead [INFO] [stdout] --> tests/multi_thread.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | let prefix = format!("level_flip_{}", chrono::Utc::now().timestamp_nanos()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::timestamp_nanos`: use `timestamp_nanos_opt()` instead [INFO] [stdout] --> tests/archivation_rotation.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | let ts = chrono::Utc::now().timestamp_nanos(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::timestamp_nanos`: use `timestamp_nanos_opt()` instead [INFO] [stdout] --> tests/archivation_rotation.rs:28:33 [INFO] [stdout] | [INFO] [stdout] 28 | let ts = chrono::Utc::now().timestamp_nanos(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::timestamp_nanos`: use `timestamp_nanos_opt()` instead [INFO] [stdout] --> tests/multi_thread.rs:49:58 [INFO] [stdout] | [INFO] [stdout] 49 | let prefix = format!("mt_log_{}", chrono::Utc::now().timestamp_nanos()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::timestamp_nanos`: use `timestamp_nanos_opt()` instead [INFO] [stdout] --> tests/multi_thread.rs:88:62 [INFO] [stdout] | [INFO] [stdout] 88 | let prefix = format!("level_flip_{}", chrono::Utc::now().timestamp_nanos()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sync::Mutex` [INFO] [stdout] --> src/tests/from_env_config.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | sync::Mutex, [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 import: `once_cell::sync::Lazy` [INFO] [stdout] --> src/tests/from_env_config.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use once_cell::sync::Lazy; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SetColorizedError` [INFO] [stdout] --> src/tests/from_env_config.rs:18:76 [INFO] [stdout] | [INFO] [stdout] 18 | AddRotationError, ReadFromConfigFileError, SetArchiveDirError, SetColorizedError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Once` [INFO] [stdout] --> src/logger.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use std::sync::Once; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fs::File` [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | fs::File, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:549:42 [INFO] [stdout] | [INFO] [stdout] 549 | let secs_desirable = ((h * 60 * 60) + (m * 60)); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 549 - let secs_desirable = ((h * 60 * 60) + (m * 60)); [INFO] [stdout] 549 + let secs_desirable = (h * 60 * 60) + (m * 60); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:129:9 [INFO] [stdout] | [INFO] [stdout] 129 | let mut file = match std::fs::OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `read_res` [INFO] [stdout] --> src/logger/from_file_config.rs:276:9 [INFO] [stdout] | [INFO] [stdout] 276 | let read_res = file [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_read_res` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/logger/from_file_config.rs:405:24 [INFO] [stdout] | [INFO] [stdout] 405 | fn read_from_json_file(path: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `path` [INFO] [stdout] --> src/logger/from_file_config.rs:407:23 [INFO] [stdout] | [INFO] [stdout] 407 | fn read_from_ini_file(path: &str) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_path` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnableToWriteToArchive` is never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 51 | pub(crate) enum CompressFileError { [INFO] [stdout] | ----------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 63 | UnableToWriteToArchive, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompressFileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `UnableToVerifyFileExistence`, `UnableToCreateFile`, and `UnableToOpenFile` are never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 73 | pub(crate) enum VerifyConstraintsError { [INFO] [stdout] | ---------------------- variants in this enum [INFO] [stdout] 74 | #[error("unable to verify file existence {0}")] [INFO] [stdout] 75 | UnableToVerifyFileExistence(std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 76 | #[error("unable to create file {0} {1}")] [INFO] [stdout] 77 | UnableToCreateFile(String, std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 78 | #[error("unable to open file: {0} {1}")] [INFO] [stdout] 79 | UnableToOpenFile(String, std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VerifyConstraintsError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnableToVerifyFileExistence` is never constructed [INFO] [stdout] --> src/logger/file_handler/file_manager.rs:103:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub(crate) enum CreateNewFileError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 102 | #[error("unable to verify that the file exists: {0}")] [INFO] [stdout] 103 | UnableToVerifyFileExistence(std::io::Error), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CreateNewFileError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `End` is never constructed [INFO] [stdout] --> src/logger/formatter.rs:200:5 [INFO] [stdout] | [INFO] [stdout] 199 | enum ParseParts { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 200 | End, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ParseParts` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_json_file` is never used [INFO] [stdout] --> src/logger/from_file_config.rs:405:4 [INFO] [stdout] | [INFO] [stdout] 405 | fn read_from_json_file(path: &str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_ini_file` is never used [INFO] [stdout] --> src/logger/from_file_config.rs:407:4 [INFO] [stdout] | [INFO] [stdout] 407 | fn read_from_ini_file(path: &str) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/mod.rs:119:5 [INFO] [stdout] | [INFO] [stdout] 119 | logger::set_print_to_terminal(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 119 | let _ = logger::set_print_to_terminal(true); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/mod.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 152 | logger::set_file("app_{date}_{time}.txt"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 152 | let _ = logger::set_file("app_{date}_{time}.txt"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/mod.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 153 | logger::set_compression("zip"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 153 | let _ = logger::set_compression("zip"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/tests/mod.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 154 | logger::add_rotation("1 day"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 154 | let _ = logger::add_rotation("1 day"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 4.20s [INFO] running `Command { std: "docker" "inspect" "4f21dd19def152549674b0bf52f63d61e859ef4d4442b2b56cd8f353a315e2c2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f21dd19def152549674b0bf52f63d61e859ef4d4442b2b56cd8f353a315e2c2", kill_on_drop: false }` [INFO] [stdout] 4f21dd19def152549674b0bf52f63d61e859ef4d4442b2b56cd8f353a315e2c2