[INFO] cloning repository https://github.com/pyryjook/hou-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/pyryjook/hou-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpyryjook%2Fhou-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpyryjook%2Fhou-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66ea139a7b537b2f62153c8b87ec505260091cf7 [INFO] checking pyryjook/hou-rs against master#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpyryjook%2Fhou-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pyryjook/hou-rs on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/pyryjook/hou-rs [INFO] finished tweaking git repo https://github.com/pyryjook/hou-rs [INFO] tweaked toml for git repo https://github.com/pyryjook/hou-rs written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/pyryjook/hou-rs 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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro2 v1.0.20 [INFO] [stderr] Downloaded rustbreak v2.0.0 [INFO] [stderr] Downloaded indexmap v1.5.2 [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 911c885f91215f5c72f18a0383331b3212e3d43e1f53ad4e7750072eb32ae89d [INFO] running `Command { std: "docker" "start" "-a" "911c885f91215f5c72f18a0383331b3212e3d43e1f53ad4e7750072eb32ae89d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "911c885f91215f5c72f18a0383331b3212e3d43e1f53ad4e7750072eb32ae89d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "911c885f91215f5c72f18a0383331b3212e3d43e1f53ad4e7750072eb32ae89d", kill_on_drop: false }` [INFO] [stdout] 911c885f91215f5c72f18a0383331b3212e3d43e1f53ad4e7750072eb32ae89d [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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0ee112ed1fc76d27564232e8fe0d225f79039d031e99d601e956d7ada6dfeac [INFO] running `Command { std: "docker" "start" "-a" "c0ee112ed1fc76d27564232e8fe0d225f79039d031e99d601e956d7ada6dfeac", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.20 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.39 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling libc v0.2.76 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking ppv-lite86 v0.2.9 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.12 [INFO] [stderr] Compiling proc-macro-error v0.4.12 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Compiling indexmap v1.5.2 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling doc-comment v0.3.3 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking linked-hash-map v0.5.3 [INFO] [stderr] Checking yaml-rust v0.4.4 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking remove_dir_all v0.5.3 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking os_str_bytes v2.3.2 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.20 [INFO] [stderr] Compiling snafu-derive v0.6.9 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.1 [INFO] [stderr] Checking thiserror v1.0.20 [INFO] [stderr] Checking snafu v0.6.9 [INFO] [stderr] Checking clap v3.0.0-beta.1 [INFO] [stderr] Checking serde_yaml v0.8.13 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking rustbreak v2.0.0 [INFO] [stderr] Checking hours v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/builders/config_builder.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 51 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/services/file_service.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub trait FileServiceTrait { [INFO] [stdout] | ---------------- associated function in this trait [INFO] [stdout] 13 | fn new() -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `read_from_file`, and `save_to_file` are never used [INFO] [stdout] --> src/services/toml_service.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait TomlFileServiceTrait { [INFO] [stdout] | -------------------- associated items in this trait [INFO] [stdout] 10 | fn new(file_service: FileService) -> Self; [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | fn read_from_file(&self, file: &String) -> Result where T: DeserializeOwned; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 12 | fn save_to_file(&self, config: T, file_name: &String) -> Result<(), FileError> where T: Serialize; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConfigFileService` is never constructed [INFO] [stdout] --> src/services/config_file_service.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct ConfigFileService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_empty_config`, and `read_config` are never used [INFO] [stdout] --> src/services/config_file_service.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ConfigFileService { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 12 | pub fn new(config_path: String, toml_service: TomlFileService) -> ConfigFileService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | fn get_empty_config(&self) -> Config { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | pub fn read_config(self) -> Config { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FilePathService` is never constructed [INFO] [stdout] --> src/services/file_path_service.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct FilePathService; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `absolute_path` is never used [INFO] [stdout] --> src/services/file_path_service.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl FilePathService { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] 11 | pub fn absolute_path(path: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `DB` is never used [INFO] [stdout] --> src/services/file_database_service.rs:7:6 [INFO] [stdout] | [INFO] [stdout] 7 | type DB = FileDatabase; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Billable` is never constructed [INFO] [stdout] --> src/services/file_database_service.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | struct Billable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ProjectDataService` is never constructed [INFO] [stdout] --> src/services/file_database_service.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | struct ProjectDataService { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/services/file_database_service.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ProjectDataService { [INFO] [stdout] | ----------------------- associated items in this implementation [INFO] [stdout] 55 | pub fn new(path: String) -> ProjectDataService { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn add_project(&self, project_name: &String, unit_price: Money, unit: BillableUnit) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 80 | pub fn add_task(&self, project_name: &String, task_name: &String) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn add_billable_entry(&self, project_name: &String, task: &String, quantity: Quantity, date: Option>) -> Result<(... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_monthly_billing(&self, project_name: &String, date: Option>) -> Result, RustbreakError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn write_to_file(&self) -> Result<(), RustbreakError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | fn task_exists(&self, project_id: &String, task_name: &String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | fn get_project_id(&self, project_name: &String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `HOME_ENV_KEY` is never used [INFO] [stdout] --> src/constants/mod.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const HOME_ENV_KEY: &str = "HOME"; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_FILE_PATH` is never used [INFO] [stdout] --> src/constants/mod.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const CONFIG_FILE_PATH: &str = "~/.hou-rs/config"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PROJECTS_DATA_FILE` is never used [INFO] [stdout] --> src/constants/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const PROJECTS_DATA_FILE: &str = "~/.hou-rs/data/projects"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ConfigBuilder` is never constructed [INFO] [stdout] --> src/builders/config_builder.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct ConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, `using_toml`, and `build` are never used [INFO] [stdout] --> src/builders/config_builder.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl ConfigBuilder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> ConfigBuilder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn from(self, config_path: String) -> ConfigBuilder { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn using_toml(self) -> ConfigBuilder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub fn build(self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `EnvVariableError` is never constructed [INFO] [stdout] --> src/domain/errors/toml_file.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum FileError { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 7 | #[snafu(display("Could not find environment variable {}: {}", variable, source))] [INFO] [stdout] 8 | EnvVariableError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FileError` 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 `NoneError` is never constructed [INFO] [stdout] --> src/domain/errors/config_builder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum ConfigBuilderError { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] 6 | #[snafu(display("Could not build config, did you remember to call correct builder methods?"))] [INFO] [stdout] 7 | NoneError, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ConfigBuilderError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_to_file` is never used [INFO] [stdout] --> src/services/file_database_service.rs:135:12 [INFO] [stdout] | [INFO] [stdout] 54 | impl ProjectDataService { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 135 | pub fn write_to_file(&self) -> Result<(), RustbreakError> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CONFIG_FILE_PATH` is never used [INFO] [stdout] --> src/constants/mod.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const CONFIG_FILE_PATH: &str = "~/.hou-rs/config"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PROJECTS_DATA_FILE` is never used [INFO] [stdout] --> src/constants/mod.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const PROJECTS_DATA_FILE: &str = "~/.hou-rs/data/projects"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.60s [INFO] running `Command { std: "docker" "inspect" "c0ee112ed1fc76d27564232e8fe0d225f79039d031e99d601e956d7ada6dfeac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0ee112ed1fc76d27564232e8fe0d225f79039d031e99d601e956d7ada6dfeac", kill_on_drop: false }` [INFO] [stdout] c0ee112ed1fc76d27564232e8fe0d225f79039d031e99d601e956d7ada6dfeac