[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#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdizda%2Ffile-trailer" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-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-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dizda/file-trailer on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 340ac232fa19faa9782cf8b89abcf46811b518e3f37ffc7aa746a5c12f737df7
[INFO] running `Command { std: "docker" "start" "-a" "340ac232fa19faa9782cf8b89abcf46811b518e3f37ffc7aa746a5c12f737df7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "340ac232fa19faa9782cf8b89abcf46811b518e3f37ffc7aa746a5c12f737df7", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "340ac232fa19faa9782cf8b89abcf46811b518e3f37ffc7aa746a5c12f737df7", kill_on_drop: false }`
[INFO] [stdout] 340ac232fa19faa9782cf8b89abcf46811b518e3f37ffc7aa746a5c12f737df7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6b0c8f6a3709b588351a111fbe6dd78a04749f6a454ae55ff62801fed66709e1
[INFO] running `Command { std: "docker" "start" "-a" "6b0c8f6a3709b588351a111fbe6dd78a04749f6a454ae55ff62801fed66709e1", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.29
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling libc v0.2.118
[INFO] [stderr]    Compiling syn v1.0.76
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling version_check v0.9.3
[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 tracing-core v0.1.22
[INFO] [stderr]    Compiling tinyvec_macros v0.1.0
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling smallvec v1.6.1
[INFO] [stderr]    Compiling pin-project-lite v0.2.7
[INFO] [stderr]    Compiling tinyvec v1.3.1
[INFO] [stderr]    Compiling quote v1.0.9
[INFO] [stderr]    Compiling ryu v1.0.5
[INFO] [stderr]    Compiling openssl v0.10.36
[INFO] [stderr]    Compiling openssl-sys v0.9.66
[INFO] [stderr]    Compiling matches v0.1.9
[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 parking_lot_core v0.9.1
[INFO] [stderr]    Compiling unicode-normalization v0.1.19
[INFO] [stderr]    Compiling percent-encoding v2.1.0
[INFO] [stderr]    Compiling lock_api v0.4.6
[INFO] [stderr]    Compiling form_urlencoded v1.0.1
[INFO] [stderr]    Compiling nom v7.0.0
[INFO] [stderr]    Compiling openssl-probe v0.1.4
[INFO] [stderr]    Compiling base64 v0.13.0
[INFO] [stderr]    Compiling itoa v1.0.1
[INFO] [stderr]    Compiling mio v0.7.13
[INFO] [stderr]    Compiling futures-core v0.3.17
[INFO] [stderr]    Compiling minimal-lexical v0.1.3
[INFO] [stderr]    Compiling crossbeam-utils v0.8.5
[INFO] [stderr]    Compiling doc-comment v0.3.3
[INFO] [stderr]    Compiling parking_lot v0.12.0
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling idna v0.2.3
[INFO] [stderr]    Compiling proc-macro-error-attr v1.0.4
[INFO] [stderr]    Compiling cookie-factory v0.3.2
[INFO] [stderr]    Compiling amq-protocol v6.1.0
[INFO] [stderr]    Compiling regex v1.5.4
[INFO] [stderr]    Compiling url v2.2.2
[INFO] [stderr]    Compiling parking_lot_core v0.8.5
[INFO] [stderr]    Compiling amq-protocol-uri 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 crossbeam-channel v0.5.1
[INFO] [stderr]    Compiling pem v0.8.3
[INFO] [stderr]    Compiling num_cpus v1.13.0
[INFO] [stderr]    Compiling tcp-stream v0.20.7
[INFO] [stderr]    Compiling mio v0.8.0
[INFO] [stderr]    Compiling socket2 v0.4.4
[INFO] [stderr]    Compiling signal-hook-registry v1.4.0
[INFO] [stderr]    Compiling indexmap v1.7.0
[INFO] [stderr]    Compiling bytes v1.1.0
[INFO] [stderr]    Compiling async-trait v0.1.52
[INFO] [stderr]    Compiling anyhow v1.0.53
[INFO] [stderr]    Compiling async-task v4.0.3
[INFO] [stderr]    Compiling unicode-segmentation v1.8.0
[INFO] [stderr]    Compiling parking_lot v0.11.2
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling time v0.1.44
[INFO] [stderr]    Compiling heck v0.3.3
[INFO] [stderr]    Compiling unicode-width v0.1.8
[INFO] [stderr]    Compiling parking v2.0.0
[INFO] [stderr]    Compiling waker-fn v1.1.0
[INFO] [stderr]    Compiling futures-io v0.3.17
[INFO] [stderr]    Compiling fastrand v1.5.0
[INFO] [stderr]    Compiling hashbrown v0.11.2
[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 tracing-log v0.1.2
[INFO] [stderr]    Compiling thread_local v1.1.4
[INFO] [stderr]    Compiling matchers v0.1.0
[INFO] [stderr]    Compiling sharded-slab v0.1.4
[INFO] [stderr]    Compiling vec_map v0.8.2
[INFO] [stderr]    Compiling crc-catalog v1.1.1
[INFO] [stderr]    Compiling os_str_bytes v3.1.0
[INFO] [stderr]    Compiling ansi_term v0.12.1
[INFO] [stderr]    Compiling termcolor v1.1.2
[INFO] [stderr]    Compiling crc v2.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 thiserror v1.0.30
[INFO] [stderr]    Compiling tracing v0.1.31
[INFO] [stderr]    Compiling amq-protocol-tcp v6.1.0
[INFO] [stderr]    Compiling pinky-swear v4.5.0
[INFO] [stderr]    Compiling clap v3.0.0-beta.4
[INFO] [stderr]    Compiling uuid v0.8.2
[INFO] [stderr]    Compiling bincode v1.3.3
[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 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)]` (part of `#[warn(unused)]`) 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<Notify> {
[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: 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)]` (part of `#[warn(unused)]`) 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<bool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 121 |     async fn can_be_rotated(&self) -> Result<bool> {
[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 24s
[INFO] running `Command { std: "docker" "inspect" "6b0c8f6a3709b588351a111fbe6dd78a04749f6a454ae55ff62801fed66709e1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6b0c8f6a3709b588351a111fbe6dd78a04749f6a454ae55ff62801fed66709e1", kill_on_drop: false }`
[INFO] [stdout] 6b0c8f6a3709b588351a111fbe6dd78a04749f6a454ae55ff62801fed66709e1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 017881ef0c6104e8ec468aba6582265840e8f362ce916fc016b3516a5548d212
[INFO] running `Command { std: "docker" "start" "-a" "017881ef0c6104e8ec468aba6582265840e8f362ce916fc016b3516a5548d212", 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)]` (part of `#[warn(unused)]`) 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<Notify> {
[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: 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)]` (part of `#[warn(unused)]`) 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<bool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 121 |     async fn can_be_rotated(&self) -> Result<bool> {
[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)]` (part of `#[warn(unused)]`) 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<Notify> {
[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: 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)]` (part of `#[warn(unused)]`) 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<bool> {
[INFO] [stdout]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 121 |     async fn can_be_rotated(&self) -> Result<bool> {
[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 `test` profile [unoptimized + debuginfo] target(s) in 5.84s
[INFO] running `Command { std: "docker" "inspect" "017881ef0c6104e8ec468aba6582265840e8f362ce916fc016b3516a5548d212", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "017881ef0c6104e8ec468aba6582265840e8f362ce916fc016b3516a5548d212", kill_on_drop: false }`
[INFO] [stdout] 017881ef0c6104e8ec468aba6582265840e8f362ce916fc016b3516a5548d212
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 1d629bbcb28480a1e7bbc183a15ebc281cc6cc909ca0cfc3eb22f29624ed1d0b
[INFO] running `Command { std: "docker" "start" "-a" "1d629bbcb28480a1e7bbc183a15ebc281cc6cc909ca0cfc3eb22f29624ed1d0b", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `Path`
[INFO] [stderr]  --> src/reader.rs:4:17
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::path::{Path, PathBuf};
[INFO] [stderr]   |                 ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `SystemTime`
[INFO] [stderr]  --> src/rotator.rs:5:27
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::time::{Duration, SystemTime};
[INFO] [stderr]   |                           ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Algorithm`
[INFO] [stderr]    --> src/rotator.rs:218:11
[INFO] [stderr]     |
[INFO] [stderr] 218 | use crc::{Algorithm, Crc, CRC_32_ISCSI};
[INFO] [stderr]     |           ^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Cursor`
[INFO] [stderr]    --> src/rotator.rs:303:43
[INFO] [stderr]     |
[INFO] [stderr] 303 |         use std::io::{BufRead, BufReader, Cursor};
[INFO] [stderr]     |                                           ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `PathBuf` and `Path`
[INFO] [stderr]   --> src/lib.rs:19:17
[INFO] [stderr]    |
[INFO] [stderr] 19 | use std::path::{Path, PathBuf};
[INFO] [stderr]    |                 ^^^^  ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Read`
[INFO] [stderr]   --> src/tail.rs:27:35
[INFO] [stderr]    |
[INFO] [stderr] 27 | use std::io::{BufRead, BufReader, Read, Seek, SeekFrom};
[INFO] [stderr]    |                                   ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]   --> src/reader.rs:32:17
[INFO] [stderr]    |
[INFO] [stderr] 32 |     pub fn work(mut self) -> Arc<Notify> {
[INFO] [stderr]    |                 ----^^^^
[INFO] [stderr]    |                 |
[INFO] [stderr]    |                 help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: fields `filepath`, `date_format`, and `max_size` are never read
[INFO] [stderr]   --> src/rotator.rs:32:5
[INFO] [stderr]    |
[INFO] [stderr] 30 | pub struct Rotator {
[INFO] [stderr]    |            ------- fields in this struct
[INFO] [stderr] 31 |     /// Log file that needs to be watched & rotated
[INFO] [stderr] 32 |     filepath: PathBuf,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 42 |     date_format: String,
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr] 43 |     /// Rotate after reaching this file size
[INFO] [stderr] 44 |     max_size: u64,
[INFO] [stderr]    |     ^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: methods `check_file_exists`, `can_be_rotated`, and `rotate` are never used
[INFO] [stderr]    --> src/rotator.rs:115:14
[INFO] [stderr]     |
[INFO] [stderr]  49 | impl Rotator {
[INFO] [stderr]     | ------------ methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 115 |     async fn check_file_exists(&self) -> Result<bool> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 121 |     async fn can_be_rotated(&self) -> Result<bool> {
[INFO] [stderr]     |              ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 136 |     async fn rotate(&self) -> Result<()> {
[INFO] [stderr]     |              ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `reset` is never used
[INFO] [stderr]    --> src/rotator.rs:321:12
[INFO] [stderr]     |
[INFO] [stderr] 232 | impl SavedState {
[INFO] [stderr]     | --------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 321 |     pub fn reset(&mut self) -> Result<()> {
[INFO] [stderr]     |            ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `log-bouncer` (lib) generated 10 warnings (run `cargo fix --lib -p log-bouncer` to apply 6 suggestions)
[INFO] [stderr] warning: `log-bouncer` (lib test) generated 10 warnings (10 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.16s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/log_bouncer-4fb2783c7165c314)
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test tail::tests::test_read ... ok
[INFO] [stdout] test tail::tests::tailed_file ... ok
[INFO] [stdout] test tail::tests::test_read_with_one_missing_line_breaker ... ok
[INFO] [stdout] test tail::tests::test_check_rotate ... ok
[INFO] [stdout] test tail::tests::test_check_truncate ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/debug/deps/log_bouncer-aea87a67e2e22c79)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests log_bouncer
[INFO] [stdout] 
[INFO] [stdout] running 2 tests
[INFO] [stdout] test src/tail.rs - tail (line 10) - compile ... FAILED
[INFO] [stdout] test src/tail.rs - tail::TailedFile<T>::new (line 69) - compile ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/tail.rs - tail (line 10) stdout ----
[INFO] [stdout] error[E0432]: unresolved import `staart`
[INFO] [stdout]   --> src/tail.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use staart::{StaartError, TailedFile};
[INFO] [stdout]    |     ^^^^^^ use of unresolved module or unlinked crate `staart`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `staart`, use `cargo add staart` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0432`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/tail.rs - tail::TailedFile<T>::new (line 69) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `staart`
[INFO] [stdout]   --> src/tail.rs:70:13
[INFO] [stdout]    |
[INFO] [stdout] 70 | let mut f = staart::TailedFile::new("/var/log/syslog");
[INFO] [stdout]    |             ^^^^^^ use of unresolved module or unlinked crate `staart`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `staart`, use `cargo add staart` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/tail.rs - tail (line 10)
[INFO] [stdout]     src/tail.rs - tail::TailedFile<T>::new (line 69)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "1d629bbcb28480a1e7bbc183a15ebc281cc6cc909ca0cfc3eb22f29624ed1d0b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1d629bbcb28480a1e7bbc183a15ebc281cc6cc909ca0cfc3eb22f29624ed1d0b", kill_on_drop: false }`
[INFO] [stdout] 1d629bbcb28480a1e7bbc183a15ebc281cc6cc909ca0cfc3eb22f29624ed1d0b
