[INFO] cloning repository https://github.com/aitor-i/dd_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aitor-i/dd_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faitor-i%2Fdd_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faitor-i%2Fdd_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d995d9f18c72e40ccfdca161282f490b9348c2f3 [INFO] checking aitor-i/dd_game against try#409ef99a7d4dc96ae91f65d4b48413ed174514d6 for pr-137633 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faitor-i%2Fdd_game" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aitor-i/dd_game on toolchain 409ef99a7d4dc96ae91f65d4b48413ed174514d6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aitor-i/dd_game [INFO] finished tweaking git repo https://github.com/aitor-i/dd_game [INFO] tweaked toml for git repo https://github.com/aitor-i/dd_game written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/aitor-i/dd_game 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" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc7dcea82deaad539d27859ae729756c950f9d20705384b25c353009eee47339 [INFO] running `Command { std: "docker" "start" "-a" "dc7dcea82deaad539d27859ae729756c950f9d20705384b25c353009eee47339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc7dcea82deaad539d27859ae729756c950f9d20705384b25c353009eee47339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc7dcea82deaad539d27859ae729756c950f9d20705384b25c353009eee47339", kill_on_drop: false }` [INFO] [stdout] dc7dcea82deaad539d27859ae729756c950f9d20705384b25c353009eee47339 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+409ef99a7d4dc96ae91f65d4b48413ed174514d6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b84e5f22b067d86d2f60ee91d4e513e903953b3c4e24c6c0a7dd15debe522e3b [INFO] running `Command { std: "docker" "start" "-a" "b84e5f22b067d86d2f60ee91d4e513e903953b3c4e24c6c0a7dd15debe522e3b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking getrandom v0.2.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking dd_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/domain/npc.rs:12:52 [INFO] [stdout] | [INFO] [stdout] 11 | impl <'lifetime> Npc <'_>{ [INFO] [stdout] | --------- lifetime `'lifetime` declared here [INFO] [stdout] 12 | pub fn new(level:u8, name: &'lifetime str) -> Npc { [INFO] [stdout] | ^^^ this elided lifetime gets resolved as `'lifetime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/domain/npc.rs:12:52 [INFO] [stdout] | [INFO] [stdout] 11 | impl <'lifetime> Npc <'_>{ [INFO] [stdout] | --------- lifetime `'lifetime` declared here [INFO] [stdout] 12 | pub fn new(level:u8, name: &'lifetime str) -> Npc { [INFO] [stdout] | ^^^ this elided lifetime gets resolved as `'lifetime` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/domain/npc.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut new_goblin = Npc { [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: variable does not need to be mutable [INFO] [stdout] --> src/service/set_your_character.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut character: Character; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `npc` [INFO] [stdout] --> src/application/genrate_npc.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut npc: Npc = match npc_type { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_npc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inventay` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut inventay: Inventary; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inventay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CharEnum` is never used [INFO] [stdout] --> src/domain/char_enum.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CharEnum <'lifetime>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_level` is never used [INFO] [stdout] --> src/domain/base_character.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait CharacterActions { [INFO] [stdout] | ---------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 5 | fn get_level(&mut self) -> u8; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `items` is never read [INFO] [stdout] --> src/domain/inventary.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Inventary { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 2 | pub items:Vec [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `add_to_inventary`, and `use_item` are never used [INFO] [stdout] --> src/domain/inventary.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Inventary { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 6 | [INFO] [stdout] 7 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn add_to_inventary(&mut self, item: InventaryItem)-> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn use_item(&mut self, item_name:InventaryItemsEnum)-> () { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `description`, `power`, `effect_time`, and `times` are never read [INFO] [stdout] --> src/domain/inventary.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct InventaryItem { [INFO] [stdout] | ------------- fields in this struct [INFO] [stdout] 50 | name: InventaryItemsEnum, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 52 | power: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | effect_time: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 54 | times: u8 [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InventaryItem` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/domain/inventary.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 57 | impl InventaryItem { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 58 | pub fn new(name: InventaryItemsEnum, description:String, power:u8, effect_time:u8) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HealingPotion`, `AgilityPotion`, and `MaxHealthPotion` are never constructed [INFO] [stdout] --> src/domain/inventary.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum InventaryItemsEnum { HealingPotion, AgilityPotion, MaxHealthPotion } [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `InventaryItemsEnum` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/domain/npc.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | let mut new_goblin = Npc { [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: variable does not need to be mutable [INFO] [stdout] --> src/service/set_your_character.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let mut character: Character; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `npc` [INFO] [stdout] --> src/application/genrate_npc.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let mut npc: Npc = match npc_type { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_npc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inventay` [INFO] [stdout] --> src/main.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut inventay: Inventary; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inventay` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CharEnum` is never used [INFO] [stdout] --> src/domain/char_enum.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum CharEnum <'lifetime>{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AgilityPotion` and `MaxHealthPotion` are never constructed [INFO] [stdout] --> src/domain/inventary.rs:72:47 [INFO] [stdout] | [INFO] [stdout] 72 | pub enum InventaryItemsEnum { HealingPotion, AgilityPotion, MaxHealthPotion } [INFO] [stdout] | ------------------ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | variants in this enum [INFO] [stdout] | [INFO] [stdout] = note: `InventaryItemsEnum` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.36s [INFO] running `Command { std: "docker" "inspect" "b84e5f22b067d86d2f60ee91d4e513e903953b3c4e24c6c0a7dd15debe522e3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b84e5f22b067d86d2f60ee91d4e513e903953b3c4e24c6c0a7dd15debe522e3b", kill_on_drop: false }` [INFO] [stdout] b84e5f22b067d86d2f60ee91d4e513e903953b3c4e24c6c0a7dd15debe522e3b