[INFO] cloning repository https://github.com/JoeKenn1118/The_Insanity_Project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JoeKenn1118/The_Insanity_Project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoeKenn1118%2FThe_Insanity_Project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoeKenn1118%2FThe_Insanity_Project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 50f5bde703978df914faa642642773134f89ded9 [INFO] building JoeKenn1118/The_Insanity_Project against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJoeKenn1118%2FThe_Insanity_Project" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JoeKenn1118/The_Insanity_Project on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JoeKenn1118/The_Insanity_Project [INFO] finished tweaking git repo https://github.com/JoeKenn1118/The_Insanity_Project [INFO] tweaked toml for git repo https://github.com/JoeKenn1118/The_Insanity_Project written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JoeKenn1118/The_Insanity_Project 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6241b415509bc1a7629fc9711722b39a4d1a03cad3fadd1b1b5e1c72b185cfa4 [INFO] running `Command { std: "docker" "start" "-a" "6241b415509bc1a7629fc9711722b39a4d1a03cad3fadd1b1b5e1c72b185cfa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6241b415509bc1a7629fc9711722b39a4d1a03cad3fadd1b1b5e1c72b185cfa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6241b415509bc1a7629fc9711722b39a4d1a03cad3fadd1b1b5e1c72b185cfa4", kill_on_drop: false }` [INFO] [stdout] 6241b415509bc1a7629fc9711722b39a4d1a03cad3fadd1b1b5e1c72b185cfa4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 510d9e37f8c3c6c8d7cabef90a928f5f1da8154668bb92ef4a035fbe86acb10b [INFO] running `Command { std: "docker" "start" "-a" "510d9e37f8c3c6c8d7cabef90a928f5f1da8154668bb92ef4a035fbe86acb10b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.132 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling the_insanity_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | if(roll >= armor_bonus) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - if(roll >= armor_bonus) { [INFO] [stdout] 78 + if roll >= armor_bonus { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | if(monster.armor_check(roll)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - if(monster.armor_check(roll)){ [INFO] [stdout] 95 + if monster.armor_check(roll) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters/monsters.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | if(roll >= armor_bonus) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - if(roll >= armor_bonus) { [INFO] [stdout] 48 + if roll >= armor_bonus { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters/monsters.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | if(target.armor_check(roll)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if(target.armor_check(roll)){ [INFO] [stdout] 65 + if target.armor_check(roll) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `health::*`, `inventory::*`, and `stats::*` [INFO] [stdout] --> src/characters/monsters/orc.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::general_info::{inventory::*, health::*, stats::*}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/general_info.rs:18:53 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::characters::{monsters::*, player::*, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | if(player_surprise){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if(player_surprise){ [INFO] [stdout] 59 + if player_surprise { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | if(monster_surprise){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if(monster_surprise){ [INFO] [stdout] 60 + if monster_surprise { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | else if (monster_surprise){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - else if (monster_surprise){ [INFO] [stdout] 66 + else if monster_surprise { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 88 | if(player.get_health() <= 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if(player.get_health() <= 0){ [INFO] [stdout] 88 + if player.get_health() <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | if(monster.get_health() <= 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if(monster.get_health() <= 0){ [INFO] [stdout] 91 + if monster.get_health() <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{characters::*, general_info::actions::{self, combat}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut difficulty: i32; [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: function `init_orc_inventory` is never used [INFO] [stdout] --> src/characters/monsters/orc.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn init_orc_inventory () -> Inventory{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_villager_inventory` is never used [INFO] [stdout] --> src/characters/monsters/villager.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn init_villager_inventory () -> Inventory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_stat` is never used [INFO] [stdout] --> src/general_info.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 147 | impl Stats { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn set_stat (stats: &mut Stats, stat_name: &str, value: i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enchantment` is never read [INFO] [stdout] --> src/general_info.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 196 | pub struct Item { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 197 | pub name: String, [INFO] [stdout] 198 | pub enchantment: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Item` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `head`, `chest`, `legs`, `feet`, and `hands` are never read [INFO] [stdout] --> src/general_info.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 213 | pub struct Armor { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 214 | total_ac: i32, [INFO] [stdout] 215 | head: Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 216 | chest: Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 217 | legs: Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 218 | feet: Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 219 | hands: Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_equipped` is never used [INFO] [stdout] --> src/general_info.rs:417:16 [INFO] [stdout] | [INFO] [stdout] 273 | impl Equipped{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 417 | pub fn print_equipped(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_item`, `get_item`, `find_item`, and `find_item_index` are never used [INFO] [stdout] --> src/general_info.rs:483:16 [INFO] [stdout] | [INFO] [stdout] 447 | impl Inventory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 483 | pub fn remove_item (&mut self, item: &Item) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | pub fn get_item (&self, item: &str) -> Item { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 507 | fn find_item (&self, item: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | fn find_item_index(&self, item: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Orc` should have a snake case name [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut Orc = monsters::MonsterInfo::create_monster("Orc"); [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `orc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init_PlayerInfo` should have a snake case name [INFO] [stdout] --> src/characters.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn init_PlayerInfo(name: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `init_player_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hp` should have a snake case name [INFO] [stdout] --> src/characters.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let mut Hp = Health::init_health(50, 50); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `hp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempItem` should have a snake case name [INFO] [stdout] --> src/characters.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut tempItem = Item::init_item(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `temp_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hp` should have a snake case name [INFO] [stdout] --> src/characters/monsters/orc.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let Hp = Health::init_health(val, val); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `hp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hp` should have a snake case name [INFO] [stdout] --> src/characters/monsters/villager.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let Hp = Health::init_health(val, val); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `hp` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.63s [INFO] running `Command { std: "docker" "inspect" "510d9e37f8c3c6c8d7cabef90a928f5f1da8154668bb92ef4a035fbe86acb10b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "510d9e37f8c3c6c8d7cabef90a928f5f1da8154668bb92ef4a035fbe86acb10b", kill_on_drop: false }` [INFO] [stdout] 510d9e37f8c3c6c8d7cabef90a928f5f1da8154668bb92ef4a035fbe86acb10b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e7ae58b44b7d7b70eed04ada86bd45a04a3e1952c1a09fbb6631b307645b6972 [INFO] running `Command { std: "docker" "start" "-a" "e7ae58b44b7d7b70eed04ada86bd45a04a3e1952c1a09fbb6631b307645b6972", kill_on_drop: false }` [INFO] [stderr] Compiling the_insanity_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | if(roll >= armor_bonus) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 78 - if(roll >= armor_bonus) { [INFO] [stdout] 78 + if roll >= armor_bonus { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters.rs:95:15 [INFO] [stdout] | [INFO] [stdout] 95 | if(monster.armor_check(roll)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 95 - if(monster.armor_check(roll)){ [INFO] [stdout] 95 + if monster.armor_check(roll) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters/monsters.rs:48:11 [INFO] [stdout] | [INFO] [stdout] 48 | if(roll >= armor_bonus) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 48 - if(roll >= armor_bonus) { [INFO] [stdout] 48 + if roll >= armor_bonus { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/characters/monsters.rs:65:11 [INFO] [stdout] | [INFO] [stdout] 65 | if(target.armor_check(roll)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 65 - if(target.armor_check(roll)){ [INFO] [stdout] 65 + if target.armor_check(roll) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `health::*`, `inventory::*`, and `stats::*` [INFO] [stdout] --> src/characters/monsters/orc.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::general_info::{inventory::*, health::*, stats::*}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/general_info.rs:18:53 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::characters::{monsters::*, player::*, self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:59:11 [INFO] [stdout] | [INFO] [stdout] 59 | if(player_surprise){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if(player_surprise){ [INFO] [stdout] 59 + if player_surprise { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:60:15 [INFO] [stdout] | [INFO] [stdout] 60 | if(monster_surprise){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 60 - if(monster_surprise){ [INFO] [stdout] 60 + if monster_surprise { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | else if (monster_surprise){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 66 - else if (monster_surprise){ [INFO] [stdout] 66 + else if monster_surprise { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:88:15 [INFO] [stdout] | [INFO] [stdout] 88 | if(player.get_health() <= 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if(player.get_health() <= 0){ [INFO] [stdout] 88 + if player.get_health() <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/general_info.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | if(monster.get_health() <= 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if(monster.get_health() <= 0){ [INFO] [stdout] 91 + if monster.get_health() <= 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:8:52 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::{characters::*, general_info::actions::{self, combat}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut difficulty: i32; [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: function `init_orc_inventory` is never used [INFO] [stdout] --> src/characters/monsters/orc.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn init_orc_inventory () -> Inventory{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_villager_inventory` is never used [INFO] [stdout] --> src/characters/monsters/villager.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn init_villager_inventory () -> Inventory { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `set_stat` is never used [INFO] [stdout] --> src/general_info.rs:178:16 [INFO] [stdout] | [INFO] [stdout] 147 | impl Stats { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn set_stat (stats: &mut Stats, stat_name: &str, value: i32) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `enchantment` is never read [INFO] [stdout] --> src/general_info.rs:198:13 [INFO] [stdout] | [INFO] [stdout] 196 | pub struct Item { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 197 | pub name: String, [INFO] [stdout] 198 | pub enchantment: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Item` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `head`, `chest`, `legs`, `feet`, and `hands` are never read [INFO] [stdout] --> src/general_info.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 213 | pub struct Armor { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 214 | total_ac: i32, [INFO] [stdout] 215 | head: Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 216 | chest: Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 217 | legs: Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 218 | feet: Item, [INFO] [stdout] | ^^^^ [INFO] [stdout] 219 | hands: Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `print_equipped` is never used [INFO] [stdout] --> src/general_info.rs:417:16 [INFO] [stdout] | [INFO] [stdout] 273 | impl Equipped{ [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 417 | pub fn print_equipped(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `remove_item`, `get_item`, `find_item`, and `find_item_index` are never used [INFO] [stdout] --> src/general_info.rs:483:16 [INFO] [stdout] | [INFO] [stdout] 447 | impl Inventory { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 483 | pub fn remove_item (&mut self, item: &Item) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | pub fn get_item (&self, item: &str) -> Item { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 507 | fn find_item (&self, item: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 515 | fn find_item_index(&self, item: &str) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Orc` should have a snake case name [INFO] [stdout] --> src/main.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let mut Orc = monsters::MonsterInfo::create_monster("Orc"); [INFO] [stdout] | ^^^ help: convert the identifier to snake case (notice the capitalization): `orc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `init_PlayerInfo` should have a snake case name [INFO] [stdout] --> src/characters.rs:17:16 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn init_PlayerInfo(name: String) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `init_player_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hp` should have a snake case name [INFO] [stdout] --> src/characters.rs:27:21 [INFO] [stdout] | [INFO] [stdout] 27 | let mut Hp = Health::init_health(50, 50); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `hp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `tempItem` should have a snake case name [INFO] [stdout] --> src/characters.rs:43:21 [INFO] [stdout] | [INFO] [stdout] 43 | let mut tempItem = Item::init_item(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `temp_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hp` should have a snake case name [INFO] [stdout] --> src/characters/monsters/orc.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let Hp = Health::init_health(val, val); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `hp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Hp` should have a snake case name [INFO] [stdout] --> src/characters/monsters/villager.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let Hp = Health::init_health(val, val); [INFO] [stdout] | ^^ help: convert the identifier to snake case: `hp` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "e7ae58b44b7d7b70eed04ada86bd45a04a3e1952c1a09fbb6631b307645b6972", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7ae58b44b7d7b70eed04ada86bd45a04a3e1952c1a09fbb6631b307645b6972", kill_on_drop: false }` [INFO] [stdout] e7ae58b44b7d7b70eed04ada86bd45a04a3e1952c1a09fbb6631b307645b6972