[INFO] cloning repository https://github.com/dizda/file-trailer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dizda/file-trailer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdizda%2Ffile-trailer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdizda%2Ffile-trailer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ee950d4f9b2bd54cabf38abb2531a5fe9b73842 [INFO] testing dizda/file-trailer against try#c066bf6804adc55193b71afdff6a56922f4a8689+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_in_2025-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdizda%2Ffile-trailer" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dizda/file-trailer [INFO] finished tweaking git repo https://github.com/dizda/file-trailer [INFO] tweaked toml for git repo https://github.com/dizda/file-trailer written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dizda/file-trailer on toolchain c066bf6804adc55193b71afdff6a56922f4a8689 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dizda/file-trailer 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" "+c066bf6804adc55193b71afdff6a56922f4a8689" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 95b627e53b34dd5ff4cbfd070b34273a7d135019b6a477f1d0cb13dfcb3bc847 [INFO] running `Command { std: "docker" "start" "-a" "95b627e53b34dd5ff4cbfd070b34273a7d135019b6a477f1d0cb13dfcb3bc847", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "95b627e53b34dd5ff4cbfd070b34273a7d135019b6a477f1d0cb13dfcb3bc847", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95b627e53b34dd5ff4cbfd070b34273a7d135019b6a477f1d0cb13dfcb3bc847", kill_on_drop: false }` [INFO] [stdout] 95b627e53b34dd5ff4cbfd070b34273a7d135019b6a477f1d0cb13dfcb3bc847 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] c0e891b9b7befc217d74af4ac1e0718b67d4faa09ca1a67bd0519d101f7f258d [INFO] running `Command { std: "docker" "start" "-a" "c0e891b9b7befc217d74af4ac1e0718b67d4faa09ca1a67bd0519d101f7f258d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling libc v0.2.118 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling cc v1.0.70 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling once_cell v1.9.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling pin-project-lite v0.2.7 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling tracing-core v0.1.22 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling openssl v0.10.36 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.6 [INFO] [stderr] Compiling native-tls v0.2.8 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling nom v7.0.0 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling openssl-probe v0.1.4 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling openssl-src v111.16.0+1.1.1l [INFO] [stderr] Compiling futures-core v0.3.17 [INFO] [stderr] Compiling minimal-lexical v0.1.3 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling cookie-factory v0.3.2 [INFO] [stderr] Compiling parking_lot_core v0.8.5 [INFO] [stderr] Compiling amq-protocol v6.1.0 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling lapin v1.10.0 [INFO] [stderr] Compiling mio v0.7.13 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling anyhow v1.0.53 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling async-task v4.0.3 [INFO] [stderr] Compiling unicode-segmentation v1.8.0 [INFO] [stderr] Compiling openssl-sys v0.9.66 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling unicode-width v0.1.8 [INFO] [stderr] Compiling futures-io v0.3.17 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling textwrap v0.14.2 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling pem v0.8.3 [INFO] [stderr] Compiling tracing-log v0.1.2 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling sharded-slab v0.1.4 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling os_str_bytes v3.1.0 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling termcolor v1.1.2 [INFO] [stderr] Compiling crc-catalog v1.1.1 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling crc v2.1.0 [INFO] [stderr] Compiling amq-protocol-uri v6.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.19 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling thiserror-impl v1.0.30 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.4 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling tracing v0.1.31 [INFO] [stderr] Compiling thiserror v1.0.30 [INFO] [stderr] Compiling pinky-swear v4.5.0 [INFO] [stderr] Compiling clap v3.0.0-beta.4 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling tracing-serde v0.1.3 [INFO] [stderr] Compiling amq-protocol-types v6.1.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.9 [INFO] [stderr] Compiling tcp-stream v0.20.7 [INFO] [stderr] Compiling amq-protocol-tcp v6.1.0 [INFO] [stderr] Compiling tokio-amqp v1.0.0 [INFO] [stderr] Compiling amqp-lapin-helper v0.2.2 [INFO] [stderr] Compiling log-bouncer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/reader.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/rotator.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Algorithm` [INFO] [stdout] --> src/rotator.rs:218:11 [INFO] [stdout] | [INFO] [stdout] 218 | use crc::{Algorithm, Crc, CRC_32_ISCSI}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> src/rotator.rs:303:43 [INFO] [stdout] | [INFO] [stdout] 303 | use std::io::{BufRead, BufReader, Cursor}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/lib.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/tail.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn work(mut self) -> Arc { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filepath`, `date_format`, and `max_size` are never read [INFO] [stdout] --> src/rotator.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Rotator { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 31 | /// Log file that needs to be watched & rotated [INFO] [stdout] 32 | filepath: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | date_format: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | /// Rotate after reaching this file size [INFO] [stdout] 44 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `check_file_exists`, `can_be_rotated`, and `rotate` are never used [INFO] [stdout] --> src/rotator.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 49 | impl Rotator { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 115 | async fn check_file_exists(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | async fn can_be_rotated(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | async fn rotate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/rotator.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl SavedState { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn reset(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "c0e891b9b7befc217d74af4ac1e0718b67d4faa09ca1a67bd0519d101f7f258d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0e891b9b7befc217d74af4ac1e0718b67d4faa09ca1a67bd0519d101f7f258d", kill_on_drop: false }` [INFO] [stdout] c0e891b9b7befc217d74af4ac1e0718b67d4faa09ca1a67bd0519d101f7f258d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c066bf6804adc55193b71afdff6a56922f4a8689" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 84b10f079c89359a99010321b5cec90787d48e438abdf2ae1dbf95a11da60de7 [INFO] running `Command { std: "docker" "start" "-a" "84b10f079c89359a99010321b5cec90787d48e438abdf2ae1dbf95a11da60de7", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/reader.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/rotator.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Algorithm` [INFO] [stdout] --> src/rotator.rs:218:11 [INFO] [stdout] | [INFO] [stdout] 218 | use crc::{Algorithm, Crc, CRC_32_ISCSI}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> src/rotator.rs:303:43 [INFO] [stdout] | [INFO] [stdout] 303 | use std::io::{BufRead, BufReader, Cursor}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/lib.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/tail.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn work(mut self) -> Arc { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filepath`, `date_format`, and `max_size` are never read [INFO] [stdout] --> src/rotator.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Rotator { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 31 | /// Log file that needs to be watched & rotated [INFO] [stdout] 32 | filepath: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | date_format: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | /// Rotate after reaching this file size [INFO] [stdout] 44 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `check_file_exists`, `can_be_rotated`, and `rotate` are never used [INFO] [stdout] --> src/rotator.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 49 | impl Rotator { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 115 | async fn check_file_exists(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | async fn can_be_rotated(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | async fn rotate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/rotator.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl SavedState { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn reset(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling log-bouncer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Path` [INFO] [stdout] --> src/reader.rs:4:17 [INFO] [stdout] | [INFO] [stdout] 4 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/rotator.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Algorithm` [INFO] [stdout] --> src/rotator.rs:218:11 [INFO] [stdout] | [INFO] [stdout] 218 | use crc::{Algorithm, Crc, CRC_32_ISCSI}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Cursor` [INFO] [stdout] --> src/rotator.rs:303:43 [INFO] [stdout] | [INFO] [stdout] 303 | use std::io::{BufRead, BufReader, Cursor}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `Path` [INFO] [stdout] --> src/lib.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | use std::path::{Path, PathBuf}; [INFO] [stdout] | ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/tail.rs:27:35 [INFO] [stdout] | [INFO] [stdout] 27 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/reader.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn work(mut self) -> Arc { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `filepath`, `date_format`, and `max_size` are never read [INFO] [stdout] --> src/rotator.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct Rotator { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 31 | /// Log file that needs to be watched & rotated [INFO] [stdout] 32 | filepath: PathBuf, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | date_format: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 43 | /// Rotate after reaching this file size [INFO] [stdout] 44 | max_size: u64, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `check_file_exists`, `can_be_rotated`, and `rotate` are never used [INFO] [stdout] --> src/rotator.rs:115:14 [INFO] [stdout] | [INFO] [stdout] 49 | impl Rotator { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 115 | async fn check_file_exists(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | async fn can_be_rotated(&self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | async fn rotate(&self) -> Result<()> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/rotator.rs:321:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl SavedState { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 321 | pub fn reset(&mut self) -> Result<()> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/rcrt1.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crti.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtbeginS.o" "/tmp/rustcbOrvWj/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libtempfile-37b65ae499c1587f.rlib,librand-50452f2e874f89e6.rlib,librand_chacha-bdca9eaa7553914b.rlib,libppv_lite86-5a92c3ab26105205.rlib,librand_core-baa9d0fd88e93041.rlib,libgetrandom-a5e9d06a84e9d0a9.rlib,libremove_dir_all-4e221c62d36b2749.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libtest-*,libgetopts-*,libunicode_width-*,librustc_std_workspace_std-*}.rlib" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/{libtracing_subscriber-fe15e0a756508580.rlib,libtracing_serde-8c5b320c2d3acbdb.rlib,libthread_local-c34a6fcf9909ae28.rlib,libsharded_slab-5513b71284fab34e.rlib,libansi_term-bdfff57b5fb49171.rlib,libmatchers-5edc85095b7a2136.rlib,libregex_automata-a34e99598e24ddb3.rlib,libtracing_log-1ca6bb787fc63f0e.rlib,libcrc-ec2fb92a3db58435.rlib,libcrc_catalog-af90be35dedeba91.rlib,libchrono-e6d49e56c2cf972e.rlib,libnum_integer-776fc74e87f61fcf.rlib,libnum_traits-e5050f906ed56291.rlib,libtime-aa2d285c81108723.rlib,libamqp_lapin_helper-8fc4914d018a67eb.rlib,libanyhow-c3ec7216259bc6ae.rlib,libthiserror-c6e7756fc5b43ea9.rlib,libtokio_amqp-1a3c78f936063a62.rlib,libparking_lot-4d6a11a30936b99c.rlib,libparking_lot_core-0799b94a1ac59f38.rlib,libinstant-7deb58ca3148c0e0.rlib,libtokio-fd8f2d81534e57c2.rlib,libsignal_hook_registry-3ac68ce03c92dbe2.rlib,libnum_cpus-54429430fd93358a.rlib,libsocket2-e34386fb68f3667f.rlib,libbytes-37e68ee094a72681.rlib,libmio-8026e8ce0c0a3525.rlib,libfutures_lite-8138ef5d58b70ae1.rlib,libfastrand-2f4c4b947f240fa2.rlib,libfutures_io-fb6c7fff584a7752.rlib,libwaker_fn-a5e48e138c7cfc0a.rlib,libparking-e8e3e9cca08ecc67.rlib,libbincode-d71f2c4960c02213.rlib,liblapin-831f8492a605e1e8.rlib,libpinky_swear-b5dbad05d9195962.rlib,libdoc_comment-371febfbc0981078.rlib,libfutures_core-5d81b298188dcfe2.rlib,libparking_lot-f195b08c8bf1bc6b.rlib,libparking_lot_core-b73328ad1b68d890.rlib,libsmallvec-a0b9fe2bb61c7c93.rlib,liblock_api-53fd7aa0b2f4601c.rlib,libscopeguard-73056285f12cb829.rlib,libcrossbeam_channel-9b63ddeaffe4e71d.rlib,libcrossbeam_utils-4810c5eaacee4e16.rlib,libasync_task-f2297bb9627d4a9b.rlib,libamq_protocol-4533cb665feaf88b.rlib,libamq_protocol_types-4be1580506010800.rlib,libnom-6ada7512e927ca52.rlib,libminimal_lexical-4f2af6fd378ba6c3.rlib,libmemchr-81b381f232779c95.rlib,libcookie_factory-e775f4cc8437630a.rlib,libserde_json-5972e6b0cec1008d.rlib,libryu-af883cd9b444a782.rlib,libitoa-158d7e21e599682f.rlib,libserde-1bced112cf236f52.rlib,libamq_protocol_tcp-8a9395a630827e7d.rlib,libtcp_stream-f99c7b43e885b9ce.rlib,libpem-28048bc1c6980e1f.rlib,libbase64-1447dfff012d42f8.rlib,libregex-df300059498790b5.rlib,libregex_syntax-ae12054508fb30be.rlib,libnative_tls-a70181cd887ec815.rlib,libopenssl_probe-8a0f606d549d520a.rlib,libopenssl-e051d4958699a3ac.rlib,libonce_cell-aa4d53ed7caf4352.rlib,libforeign_types-025c2fe8e99a8f1a.rlib,libforeign_types_shared-823307d82477c688.rlib,libopenssl_sys-46366dba6ac6318e.rlib,libmio-60d8776a2f6a52a4.rlib,libamq_protocol_uri-b70bf76b285b786a.rlib,liburl-6a0408d6e128ebef.rlib,libidna-2dcd488e211a4fc5.rlib,libunicode_normalization-4c2b7b0325bb03da.rlib,libtinyvec-f245651c7e9f5ae5.rlib,libtinyvec_macros-c54c30cfa88e68f0.rlib,libunicode_bidi-235f8eddebd79523.rlib,libform_urlencoded-08b32e4d9c417640.rlib,libpercent_encoding-3f452dc5e318e927.rlib,libmatches-210e485a89affeee.rlib,liblog-ac2d7cc7e3389574.rlib,libclap-219b925eb0990725.rlib,libstrsim-7a71560e0c2955e4.rlib,libatty-fdab7cee6ed686df.rlib,liblibc-d46818b9cdae29d0.rlib,libvec_map-f5624d319d58cb9d.rlib,libos_str_bytes-3b0e5acfa188ca7c.rlib,libtermcolor-811ad993a566b17a.rlib,libtextwrap-357b01b25f49ee26.rlib,libunicode_width-a8c49d31449f9404.rlib,libindexmap-205a9cda8df2427d.rlib,libhashbrown-f6484c11bf24e065.rlib,libbitflags-e274cd04b58a060d.rlib,libtracing-f40787bfa8790263.rlib,libcfg_if-66d55f6b302e88c8.rlib,libpin_project_lite-668e52fe3a18bf8a.rlib,libtracing_core-f01493f446bfdc0f.rlib,liblazy_static-4b136fc9bfbd2c4b.rlib}.rlib" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*}.rlib" "-lunwind" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{libcfg_if-*,liblibc-*}.rlib" "-lc" "/lib/rustlib/x86_64-unknown-linux-musl/lib/{librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-L" "/tmp/rustcbOrvWj/raw-dylibs" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-nostartfiles" "-L" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/openssl-sys-d0262eee2a62f68a/out/openssl-build/install/lib" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained" "-L" "/lib/rustlib/x86_64-unknown-linux-musl/lib" "-o" "/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/log_bouncer-aa9a3affa44aad13" "-Wl,--gc-sections" "-static-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtendS.o" "/lib/rustlib/x86_64-unknown-linux-musl/lib/self-contained/crtn.o" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/libgetrandom-a5e9d06a84e9d0a9.rlib(getrandom-a5e9d06a84e9d0a9.getrandom.105657dde06fd177-cgu.0.rcgu.o): in function `getrandom::util_libc::open_readonly': [INFO] [stdout] /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/getrandom-0.2.3/src/util_libc.rs:110:(.text._ZN9getrandom9util_libc13open_readonly17hfd213ec5606de30eE+0xb6): undefined reference to `open64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] = note: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified [INFO] [stdout] = note: use the `-l` flag to specify native libraries to link [INFO] [stdout] = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#rustc-link-lib) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `log-bouncer` (lib test) due to 1 previous error; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "84b10f079c89359a99010321b5cec90787d48e438abdf2ae1dbf95a11da60de7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84b10f079c89359a99010321b5cec90787d48e438abdf2ae1dbf95a11da60de7", kill_on_drop: false }` [INFO] [stdout] 84b10f079c89359a99010321b5cec90787d48e438abdf2ae1dbf95a11da60de7