[INFO] cloning repository https://github.com/iDheer/yada [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/iDheer/yada" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiDheer%2Fyada", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiDheer%2Fyada'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 67f18d0d8f845211a8916d0c746d66f3cc22b0f6 [INFO] checking iDheer/yada against master#32cd9114712a24010b0583624dc52ac302194128 for pr-143717 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FiDheer%2Fyada" "/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/iDheer/yada [INFO] finished tweaking git repo https://github.com/iDheer/yada [INFO] tweaked toml for git repo https://github.com/iDheer/yada written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/iDheer/yada on toolchain 32cd9114712a24010b0583624dc52ac302194128 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/iDheer/yada 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" "+32cd9114712a24010b0583624dc52ac302194128" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6afa3a053c8e7516e3dc95fd41688c77dd576bd47a43af7246a972a3da1de0e [INFO] running `Command { std: "docker" "start" "-a" "d6afa3a053c8e7516e3dc95fd41688c77dd576bd47a43af7246a972a3da1de0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6afa3a053c8e7516e3dc95fd41688c77dd576bd47a43af7246a972a3da1de0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6afa3a053c8e7516e3dc95fd41688c77dd576bd47a43af7246a972a3da1de0e", kill_on_drop: false }` [INFO] [stdout] d6afa3a053c8e7516e3dc95fd41688c77dd576bd47a43af7246a972a3da1de0e [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 848ad6064e5399f3043594b7fbe32ef07b79a12bbc145f34c4bc62b1a2db7ccd [INFO] running `Command { std: "docker" "start" "-a" "848ad6064e5399f3043594b7fbe32ef07b79a12bbc145f34c4bc62b1a2db7ccd", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking iana-time-zone v0.1.62 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking chrono v0.4.40 [INFO] [stderr] Checking yada v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `food_source_factory` is never read [INFO] [stdout] --> src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 73 | food_source_factory: FoodSourceFactory, // Creates food source implementations (extensible) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `matches_keywords` is never used [INFO] [stdout] --> src/models/food.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl Food { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn matches_keywords(&self, search_keywords: &HashSet, match_all: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `date` is never read [INFO] [stdout] --> src/models/log.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct DailyLog { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 57 | /// The date for which this log tracks food consumption [INFO] [stdout] 58 | pub date: NaiveDate, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DailyLog` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CommandType` is never used [INFO] [stdout] --> src/models/command.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum CommandType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_type` is never used [INFO] [stdout] --> src/models/command.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub trait Command { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 107 | fn get_type(&self) -> CommandType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_undo_stack_size` is never used [INFO] [stdout] --> src/models/command_manager.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl CommandManager { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_undo_stack_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_food` and `search_foods` are never used [INFO] [stdout] --> src/repositories/food_repository.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl FoodRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn update_food(&mut self, food: Food) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn search_foods(&self, keywords: &HashSet, match_all: bool) -> Vec<&Food> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateFoodCommand` is never constructed [INFO] [stdout] --> src/commands/food_commands.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub struct UpdateFoodCommand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/commands/food_commands.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 234 | impl UpdateFoodCommand { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn new(food_repo: &mut FoodRepository, new_food: Food) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_food_by_id`, `search_foods`, and `description` are never used [INFO] [stdout] --> src/factories/food_source_factory.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait FoodSource { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 7 | fn get_food_by_id(&self, id: &str) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | fn search_foods(&self, query: &str) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | fn name(&self) -> &'static str; [INFO] [stdout] 10 | fn description(&self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_source` and `get_all_sources` are never used [INFO] [stdout] --> src/factories/food_source_factory.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FoodSourceFactory { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_source(&self, name: &str) -> Option<&Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_all_sources(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `food_source_factory` is never read [INFO] [stdout] --> src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 62 | struct App { [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 73 | food_source_factory: FoodSourceFactory, // Creates food source implementations (extensible) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `matches_keywords` is never used [INFO] [stdout] --> src/models/food.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 67 | impl Food { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 156 | pub fn matches_keywords(&self, search_keywords: &HashSet, match_all: bool) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `date` is never read [INFO] [stdout] --> src/models/log.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 56 | pub struct DailyLog { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] 57 | /// The date for which this log tracks food consumption [INFO] [stdout] 58 | pub date: NaiveDate, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DailyLog` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CommandType` is never used [INFO] [stdout] --> src/models/command.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | pub enum CommandType { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_type` is never used [INFO] [stdout] --> src/models/command.rs:107:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub trait Command { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 107 | fn get_type(&self) -> CommandType; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_undo_stack_size` is never used [INFO] [stdout] --> src/models/command_manager.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 44 | impl CommandManager { [INFO] [stdout] | ------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_undo_stack_size(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_food` and `search_foods` are never used [INFO] [stdout] --> src/repositories/food_repository.rs:151:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl FoodRepository { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 151 | pub fn update_food(&mut self, food: Food) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 219 | pub fn search_foods(&self, keywords: &HashSet, match_all: bool) -> Vec<&Food> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UpdateFoodCommand` is never constructed [INFO] [stdout] --> src/commands/food_commands.rs:217:12 [INFO] [stdout] | [INFO] [stdout] 217 | pub struct UpdateFoodCommand { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/commands/food_commands.rs:252:12 [INFO] [stdout] | [INFO] [stdout] 234 | impl UpdateFoodCommand { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 252 | pub fn new(food_repo: &mut FoodRepository, new_food: Food) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_food_by_id`, `search_foods`, and `description` are never used [INFO] [stdout] --> src/factories/food_source_factory.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub trait FoodSource { [INFO] [stdout] | ---------- methods in this trait [INFO] [stdout] 7 | fn get_food_by_id(&self, id: &str) -> Option; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 8 | fn search_foods(&self, query: &str) -> Vec; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 9 | fn name(&self) -> &'static str; [INFO] [stdout] 10 | fn description(&self) -> &'static str; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_source` and `get_all_sources` are never used [INFO] [stdout] --> src/factories/food_source_factory.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl FoodSourceFactory { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn get_source(&self, name: &str) -> Option<&Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_all_sources(&self) -> Vec<&str> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.87s [INFO] running `Command { std: "docker" "inspect" "848ad6064e5399f3043594b7fbe32ef07b79a12bbc145f34c4bc62b1a2db7ccd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "848ad6064e5399f3043594b7fbe32ef07b79a12bbc145f34c4bc62b1a2db7ccd", kill_on_drop: false }` [INFO] [stdout] 848ad6064e5399f3043594b7fbe32ef07b79a12bbc145f34c4bc62b1a2db7ccd