[INFO] cloning repository https://github.com/tomiroth/tlog [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tomiroth/tlog" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomiroth%2Ftlog", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomiroth%2Ftlog'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 196835f1cfcbd35760cfec0f721d81f9da2c40c1 [INFO] building tomiroth/tlog against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftomiroth%2Ftlog" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tomiroth/tlog [INFO] finished tweaking git repo https://github.com/tomiroth/tlog [INFO] tweaked toml for git repo https://github.com/tomiroth/tlog written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tomiroth/tlog 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 git repo https://github.com/tomiroth/tlog 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 comma v1.0.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.84 [INFO] [stderr] Downloaded windows-interface v0.52.0 [INFO] [stderr] Downloaded homedir v0.2.1 [INFO] [stderr] Downloaded error-code v3.2.0 [INFO] [stderr] Downloaded windows-implement v0.52.0 [INFO] [stderr] Downloaded arboard v3.4.0 [INFO] [stderr] Downloaded bytemuck v1.16.1 [INFO] [stderr] Downloaded wmi v0.13.3 [INFO] [stderr] Downloaded toml_edit v0.22.14 [INFO] [stderr] Downloaded toml v0.8.14 [INFO] [stderr] Downloaded rexpect v0.5.0 [INFO] [stderr] Downloaded winnow v0.6.13 [INFO] [stderr] Downloaded image v0.25.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3c26ca7b7f6144aec5de2d6d2befe0ed3e2a7dbe7a5715428fbf4f81f87a2ab [INFO] running `Command { std: "docker" "start" "-a" "b3c26ca7b7f6144aec5de2d6d2befe0ed3e2a7dbe7a5715428fbf4f81f87a2ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3c26ca7b7f6144aec5de2d6d2befe0ed3e2a7dbe7a5715428fbf4f81f87a2ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3c26ca7b7f6144aec5de2d6d2befe0ed3e2a7dbe7a5715428fbf4f81f87a2ab", kill_on_drop: false }` [INFO] [stdout] b3c26ca7b7f6144aec5de2d6d2befe0ed3e2a7dbe7a5715428fbf4f81f87a2ab [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bf05bd30f9171ac696c0228a903b2da4e45e8062ae310eded17461740c99b52c [INFO] running `Command { std: "docker" "start" "-a" "bf05bd30f9171ac696c0228a903b2da4e45e8062ae310eded17461740c99b52c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.84 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling serde v1.0.203 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling linux-raw-sys v0.4.14 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Compiling float-cmp v0.9.0 [INFO] [stderr] Compiling bytemuck v1.16.1 [INFO] [stderr] Compiling x11rb-protocol v0.13.1 [INFO] [stderr] Compiling byteorder-lite v0.1.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling difflib v0.4.0 [INFO] [stderr] Compiling comma v1.0.0 [INFO] [stderr] Compiling predicates-core v1.0.6 [INFO] [stderr] Compiling winnow v0.6.13 [INFO] [stderr] Compiling csv-core v0.1.11 [INFO] [stderr] Compiling predicates v3.1.0 [INFO] [stderr] Compiling flate2 v1.0.30 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling syn v2.0.66 [INFO] [stderr] Compiling image v0.25.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling nix v0.26.4 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling signal-hook v0.3.17 [INFO] [stderr] Compiling signal-hook-mio v0.2.3 [INFO] [stderr] Compiling crossterm v0.27.0 [INFO] [stderr] Compiling tempfile v3.10.1 [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.203 [INFO] [stderr] Compiling thiserror-impl v1.0.61 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling arboard v3.4.0 [INFO] [stderr] Compiling thiserror v1.0.61 [INFO] [stderr] Compiling rexpect v0.5.0 [INFO] [stderr] Compiling homedir v0.2.1 [INFO] [stderr] Compiling tui v0.1.0 (/opt/rustwide/workdir/tui) [INFO] [stderr] Compiling clap v4.5.4 [INFO] [stderr] Compiling serde_spanned v0.6.6 [INFO] [stderr] Compiling toml_datetime v0.6.6 [INFO] [stderr] Compiling csv v1.3.0 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling toml_edit v0.22.14 [INFO] [stderr] Compiling toml v0.8.14 [INFO] [stderr] Compiling tlog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `File` and `self` [INFO] [stdout] --> src/config.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::{self, read, File}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TimeDelta` and `Weekday` [INFO] [stdout] --> src/tasks.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{prelude::Local, Duration, NaiveDate, TimeDelta, Weekday}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::Local::today`: use `Local::now()` instead [INFO] [stdout] --> src/tasks.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | let today = Local::today().naive_local(); [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::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | if first_date < task.start.date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:69:48 [INFO] [stdout] | [INFO] [stdout] 69 | && last_date >= task.start.date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::Local::today`: use `Local::now()` instead [INFO] [stdout] --> src/tasks.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | let today = Local::today().naive_local(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:95:40 [INFO] [stdout] | [INFO] [stdout] 95 | if today == task.start.date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:96:51 [INFO] [stdout] | [INFO] [stdout] 96 | || today == task.end.unwrap().date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/dir.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let test = fs::remove_file(file).unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 124 | let _test = fs::remove_file(file).unwrap(); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 124 - let test = fs::remove_file(file).unwrap(); [INFO] [stdout] 124 + let task::_ = fs::remove_file(file).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_line` is never used [INFO] [stdout] --> src/dir.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Dir { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn write_line(file: &str, data: &str) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Year` and `Day` are never constructed [INFO] [stdout] --> src/tasks.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum ChronoUnit { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 17 | Year, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Day, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tasks.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(unit: ChronoUnit, dir: &Dir) -> Option { [INFO] [stdout] | ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(unit: ChronoUnit, dir: &Dir) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tasks.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn get_latest_task_by_name(&self, name: &str) -> Option<&Task> { [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 154 | pub fn get_latest_task_by_name(&self, name: &str) -> Option<&Task<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 30.54s [INFO] running `Command { std: "docker" "inspect" "bf05bd30f9171ac696c0228a903b2da4e45e8062ae310eded17461740c99b52c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bf05bd30f9171ac696c0228a903b2da4e45e8062ae310eded17461740c99b52c", kill_on_drop: false }` [INFO] [stdout] bf05bd30f9171ac696c0228a903b2da4e45e8062ae310eded17461740c99b52c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 209561e5e643dc6e40bde9654909e46d14a001425851d9e548868d8dfe28ad48 [INFO] running `Command { std: "docker" "start" "-a" "209561e5e643dc6e40bde9654909e46d14a001425851d9e548868d8dfe28ad48", kill_on_drop: false }` [INFO] [stderr] Compiling tlog v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `File` and `self` [INFO] [stdout] --> src/config.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::{self, read, File}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `TimeDelta` and `Weekday` [INFO] [stdout] --> src/tasks.rs:5:51 [INFO] [stdout] | [INFO] [stdout] 5 | use chrono::{prelude::Local, Duration, NaiveDate, TimeDelta, Weekday}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::Local::today`: use `Local::now()` instead [INFO] [stdout] --> src/tasks.rs:53:28 [INFO] [stdout] | [INFO] [stdout] 53 | let today = Local::today().naive_local(); [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::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:68:44 [INFO] [stdout] | [INFO] [stdout] 68 | if first_date < task.start.date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:69:48 [INFO] [stdout] | [INFO] [stdout] 69 | && last_date >= task.start.date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::Local::today`: use `Local::now()` instead [INFO] [stdout] --> src/tasks.rs:92:36 [INFO] [stdout] | [INFO] [stdout] 92 | let today = Local::today().naive_local(); [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:95:40 [INFO] [stdout] | [INFO] [stdout] 95 | if today == task.start.date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `chrono::DateTime::::date`: Use `date_naive()` instead [INFO] [stdout] --> src/tasks.rs:96:51 [INFO] [stdout] | [INFO] [stdout] 96 | || today == task.end.unwrap().date().naive_local() [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `test` [INFO] [stdout] --> src/dir.rs:124:13 [INFO] [stdout] | [INFO] [stdout] 124 | let test = fs::remove_file(file).unwrap(); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 124 | let _test = fs::remove_file(file).unwrap(); [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `_` [INFO] [stdout] | [INFO] [stdout] 124 - let test = fs::remove_file(file).unwrap(); [INFO] [stdout] 124 + let task::_ = fs::remove_file(file).unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `write_line` is never used [INFO] [stdout] --> src/dir.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Dir { [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn write_line(file: &str, data: &str) -> Result<(), std::io::Error> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Year` and `Day` are never constructed [INFO] [stdout] --> src/tasks.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum ChronoUnit { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 17 | Year, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | Day, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tasks.rs:24:39 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(unit: ChronoUnit, dir: &Dir) -> Option { [INFO] [stdout] | ^^^^ ^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 24 | pub fn new(unit: ChronoUnit, dir: &Dir) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/tasks.rs:154:36 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn get_latest_task_by_name(&self, name: &str) -> Option<&Task> { [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | | || [INFO] [stdout] | | |the same lifetime is hidden here [INFO] [stdout] | | the same lifetime is elided here [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 154 | pub fn get_latest_task_by_name(&self, name: &str) -> Option<&Task<'_>> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.68s [INFO] running `Command { std: "docker" "inspect" "209561e5e643dc6e40bde9654909e46d14a001425851d9e548868d8dfe28ad48", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "209561e5e643dc6e40bde9654909e46d14a001425851d9e548868d8dfe28ad48", kill_on_drop: false }` [INFO] [stdout] 209561e5e643dc6e40bde9654909e46d14a001425851d9e548868d8dfe28ad48