[INFO] cloning repository https://github.com/JunkuiZhang/castle_game
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JunkuiZhang/castle_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 17626f40e70229d9647c889f4f6d5e761a19f3c4
[INFO] checking JunkuiZhang/castle_game against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/JunkuiZhang/castle_game
[INFO] finished tweaking git repo https://github.com/JunkuiZhang/castle_game
[INFO] tweaked toml for git repo https://github.com/JunkuiZhang/castle_game written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/JunkuiZhang/castle_game on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/JunkuiZhang/castle_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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[ERROR] error running command: no output for 300 seconds
[INFO] checking JunkuiZhang/castle_game against try#53f0b05ecbcf011a1f77f1c627304e87ebd05801 for pr-154492
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/JunkuiZhang/castle_game
[INFO] finished tweaking git repo https://github.com/JunkuiZhang/castle_game
[INFO] tweaked toml for git repo https://github.com/JunkuiZhang/castle_game written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/JunkuiZhang/castle_game on toolchain 53f0b05ecbcf011a1f77f1c627304e87ebd05801
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/JunkuiZhang/castle_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" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "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] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded csfml-graphics-sys v0.5.0
[INFO] [stderr]   Downloaded csfml-system-sys v0.5.0
[INFO] [stderr]   Downloaded csfml-audio-sys v0.5.0
[INFO] [stderr]   Downloaded sfml-build v0.3.0
[INFO] [stderr]   Downloaded csfml-window-sys v0.5.0
[INFO] [stderr]   Downloaded sfml v0.15.1
[INFO] [stderr]   Downloaded widestring v0.4.2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 95b10d5d660c21b329bf4326d976ea14d12ca0a058a69a274df63fb43274c06d
[INFO] running `Command { std: "docker" "start" "-a" "95b10d5d660c21b329bf4326d976ea14d12ca0a058a69a274df63fb43274c06d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "95b10d5d660c21b329bf4326d976ea14d12ca0a058a69a274df63fb43274c06d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "95b10d5d660c21b329bf4326d976ea14d12ca0a058a69a274df63fb43274c06d", kill_on_drop: false }`
[INFO] [stdout] 95b10d5d660c21b329bf4326d976ea14d12ca0a058a69a274df63fb43274c06d
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+53f0b05ecbcf011a1f77f1c627304e87ebd05801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c3d86428219e58bb78d7f5941b771d0135154e71caeed9f0774092f4296aca67
[INFO] running `Command { std: "docker" "start" "-a" "c3d86428219e58bb78d7f5941b771d0135154e71caeed9f0774092f4296aca67", kill_on_drop: false }`
[INFO] [stderr]    Compiling sfml-build v0.3.0
[INFO] [stderr]    Compiling libc v0.2.71
[INFO] [stderr]    Compiling getrandom v0.1.14
[INFO] [stderr]     Checking ppv-lite86 v0.2.8
[INFO] [stderr]     Checking widestring v0.4.2
[INFO] [stderr]    Compiling csfml-system-sys v0.5.0
[INFO] [stderr]    Compiling csfml-window-sys v0.5.0
[INFO] [stderr]    Compiling csfml-graphics-sys v0.5.0
[INFO] [stderr]    Compiling csfml-audio-sys v0.5.0
[INFO] [stderr]     Checking sfml v0.15.1
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking castle v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Color`
[INFO] [stdout]  --> src/game/entity.rs:2:51
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape};
[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 import: `HUMANS_POS_Y`
[INFO] [stdout]  --> src/game/entity.rs:4:45
[INFO] [stdout]   |
[INFO] [stdout] 4 | use super::super::settings::{HUMANS_HEIGHT, HUMANS_POS_Y, GROUND_HEIGHT, GROUND_POS_Y, WINDOW_WIDTH,
[INFO] [stdout]   |                                             ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Vector2`
[INFO] [stdout]  --> src/game/entity.rs:9:37
[INFO] [stdout]   |
[INFO] [stdout] 9 | use super::sfml::system::{Vector2f, Vector2};
[INFO] [stdout]   |                                     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `EnemyState` and `HumanState`
[INFO] [stdout]  --> src/game.rs:9:34
[INFO] [stdout]   |
[INFO] [stdout] 9 | use entity::{Damageable, Entity, HumanState, EnemyState};
[INFO] [stdout]   |                                  ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Building`
[INFO] [stdout]   --> src/game.rs:14:27
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::game::entity::{Building, BuildingType};
[INFO] [stdout]    |                           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::intrinsics::transmute`
[INFO] [stdout]   --> src/game.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::intrinsics::transmute;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]   --> src/game.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use std::ops::Index;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead
[INFO] [stdout]   --> src/game.rs:18:22
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::intrinsics::transmute;
[INFO] [stdout]    |                      ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Color`
[INFO] [stdout]  --> src/game/entity.rs:2:51
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape};
[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 import: `HUMANS_POS_Y`
[INFO] [stdout]  --> src/game/entity.rs:4:45
[INFO] [stdout]   |
[INFO] [stdout] 4 | use super::super::settings::{HUMANS_HEIGHT, HUMANS_POS_Y, GROUND_HEIGHT, GROUND_POS_Y, WINDOW_WIDTH,
[INFO] [stdout]   |                                             ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Vector2`
[INFO] [stdout]  --> src/game/entity.rs:9:37
[INFO] [stdout]   |
[INFO] [stdout] 9 | use super::sfml::system::{Vector2f, Vector2};
[INFO] [stdout]   |                                     ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `EnemyState` and `HumanState`
[INFO] [stdout]  --> src/game.rs:9:34
[INFO] [stdout]   |
[INFO] [stdout] 9 | use entity::{Damageable, Entity, HumanState, EnemyState};
[INFO] [stdout]   |                                  ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Building`
[INFO] [stdout]   --> src/game.rs:14:27
[INFO] [stdout]    |
[INFO] [stdout] 14 | use crate::game::entity::{Building, BuildingType};
[INFO] [stdout]    |                           ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::intrinsics::transmute`
[INFO] [stdout]   --> src/game.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::intrinsics::transmute;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]   --> src/game.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use std::ops::Index;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: use of deprecated module `std::intrinsics`: import this function via `std::mem` instead
[INFO] [stdout]   --> src/game.rs:18:22
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::intrinsics::transmute;
[INFO] [stdout]    |                      ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(deprecated)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RenderTarget`
[INFO] [stdout]  --> src/game/entity.rs:2:58
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape};
[INFO] [stdout]   |                                                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rival_coming`
[INFO] [stdout]    --> src/game/entity.rs:111:33
[INFO] [stdout]     |
[INFO] [stdout] 111 |     fn state_changer(&mut self, rival_coming: &Option<EnemyComing>) {}
[INFO] [stdout]     |                                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rival_coming`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dmg`
[INFO] [stdout]    --> src/game/entity.rs:299:38
[INFO] [stdout]     |
[INFO] [stdout] 299 |                     if let Some((id, dmg)) = self.attack_target {
[INFO] [stdout]     |                                      ^^^ help: if this is intentional, prefix it with an underscore: `_dmg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dmg`
[INFO] [stdout]    --> src/game/entity.rs:431:38
[INFO] [stdout]     |
[INFO] [stdout] 431 |                     if let Some((id, dmg)) = self.attack_target {
[INFO] [stdout]     |                                      ^^^ help: if this is intentional, prefix it with an underscore: `_dmg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `hp` is assigned to, but never used
[INFO] [stdout]    --> src/game/entity.rs:479:13
[INFO] [stdout]     |
[INFO] [stdout] 479 |         let mut hp: f32 = 100.0;
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_hp` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hp` is never read
[INFO] [stdout]    --> src/game/entity.rs:482:17
[INFO] [stdout]     |
[INFO] [stdout] 482 |                 hp = BUILDING_BASE_MAX_HP;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hp` is never read
[INFO] [stdout]    --> src/game/entity.rs:486:17
[INFO] [stdout]     |
[INFO] [stdout] 486 |                 hp = BUILDING_OTHERS_MAX_HP;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/game.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut buildings = vec![Box::new(entity::Building::new(BuildingType::Base))];
[INFO] [stdout]    |             ----^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/game.rs:288:13
[INFO] [stdout]     |
[INFO] [stdout] 288 |         let mut font = graphics::Font::from_file("src/res/fonts/SourceCodePro.ttf")
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `RenderTarget`
[INFO] [stdout]  --> src/game/entity.rs:2:58
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, Color, RenderTarget, RectangleShape};
[INFO] [stdout]   |                                                          ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `rival_coming`
[INFO] [stdout]    --> src/game/entity.rs:111:33
[INFO] [stdout]     |
[INFO] [stdout] 111 |     fn state_changer(&mut self, rival_coming: &Option<EnemyComing>) {}
[INFO] [stdout]     |                                 ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rival_coming`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dmg`
[INFO] [stdout]    --> src/game/entity.rs:299:38
[INFO] [stdout]     |
[INFO] [stdout] 299 |                     if let Some((id, dmg)) = self.attack_target {
[INFO] [stdout]     |                                      ^^^ help: if this is intentional, prefix it with an underscore: `_dmg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dmg`
[INFO] [stdout]    --> src/game/entity.rs:431:38
[INFO] [stdout]     |
[INFO] [stdout] 431 |                     if let Some((id, dmg)) = self.attack_target {
[INFO] [stdout]     |                                      ^^^ help: if this is intentional, prefix it with an underscore: `_dmg`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `hp` is assigned to, but never used
[INFO] [stdout]    --> src/game/entity.rs:479:13
[INFO] [stdout]     |
[INFO] [stdout] 479 |         let mut hp: f32 = 100.0;
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_hp` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hp` is never read
[INFO] [stdout]    --> src/game/entity.rs:482:17
[INFO] [stdout]     |
[INFO] [stdout] 482 |                 hp = BUILDING_BASE_MAX_HP;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `hp` is never read
[INFO] [stdout]    --> src/game/entity.rs:486:17
[INFO] [stdout]     |
[INFO] [stdout] 486 |                 hp = BUILDING_OTHERS_MAX_HP;
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/game.rs:71:13
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut buildings = vec![Box::new(entity::Building::new(BuildingType::Base))];
[INFO] [stdout]    |             ----^^^^^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `Damageable::fight_status`
[INFO] [stdout]   --> src/game/entity.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     fn fight_status(&mut self) -> &mut EntityFightStatus;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Damageable::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/game/entity.rs:43:1
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct EntityFightStatus {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PhysicalStates` is more private than the item `Entity::physical_states`
[INFO] [stdout]   --> src/game/entity.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 72 |     fn physical_states(&mut self) -> &mut PhysicalStates;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Entity::physical_states` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `PhysicalStates` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/game/entity.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | struct PhysicalStates {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `<Human<'_> as Damageable>::fight_status`
[INFO] [stdout]    --> src/game/entity.rs:206:5
[INFO] [stdout]     |
[INFO] [stdout] 206 |     fn fight_status(&mut self) -> &mut EntityFightStatus { &mut self.fight_status }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Human<'_> as Damageable>::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:43:1
[INFO] [stdout]     |
[INFO] [stdout]  43 | struct EntityFightStatus {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PhysicalStates` is more private than the item `<Human<'a> as Entity<'a, HumanState>>::physical_states`
[INFO] [stdout]    --> src/game/entity.rs:217:5
[INFO] [stdout]     |
[INFO] [stdout] 217 |     fn physical_states(&mut self) -> &mut PhysicalStates { &mut self.physical_states }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Human<'a> as Entity<'a, HumanState>>::physical_states` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `PhysicalStates` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:37:1
[INFO] [stdout]     |
[INFO] [stdout]  37 | struct PhysicalStates {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `<Enemy<'_> as Damageable>::fight_status`
[INFO] [stdout]    --> src/game/entity.rs:390:5
[INFO] [stdout]     |
[INFO] [stdout] 390 |     fn fight_status(&mut self) -> &mut EntityFightStatus { &mut self.fight_status }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Enemy<'_> as Damageable>::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:43:1
[INFO] [stdout]     |
[INFO] [stdout]  43 | struct EntityFightStatus {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PhysicalStates` is more private than the item `<Enemy<'a> as Entity<'a, EnemyState>>::physical_states`
[INFO] [stdout]    --> src/game/entity.rs:401:5
[INFO] [stdout]     |
[INFO] [stdout] 401 |     fn physical_states(&mut self) -> &mut PhysicalStates { &mut self.physical_states }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Enemy<'a> as Entity<'a, EnemyState>>::physical_states` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `PhysicalStates` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:37:1
[INFO] [stdout]     |
[INFO] [stdout]  37 | struct PhysicalStates {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `<Building<'_> as Damageable>::fight_status`
[INFO] [stdout]    --> src/game/entity.rs:535:5
[INFO] [stdout]     |
[INFO] [stdout] 535 |     fn fight_status(&mut self) -> &mut EntityFightStatus { &mut self.fight_status }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Building<'_> as Damageable>::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:43:1
[INFO] [stdout]     |
[INFO] [stdout]  43 | struct EntityFightStatus {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `HUMANS_POS_Y` is never used
[INFO] [stdout]   --> src/settings.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub static HUMANS_POS_Y: f32 = 525.0;
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Others` is never constructed
[INFO] [stdout]   --> src/game/entity.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub enum BuildingType {
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] 32 |     Base,
[INFO] [stdout] 33 |     Others,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `armor` and `is_infant` are never read
[INFO] [stdout]   --> src/game/entity.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct EntityFightStatus {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 44 |     attack_damage: f32,
[INFO] [stdout] 45 |     armor: f32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 46 |     // 是否是近战
[INFO] [stdout] 47 |     is_infant: Option<f32>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `state_timer` and `set_attack_target` are never used
[INFO] [stdout]   --> src/game/entity.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub trait Entity<'this, T> : Damageable + GeoInfo {
[INFO] [stdout]    |           ------ methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 74 |     fn state_timer(&mut self) -> &mut system::Clock;
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 78 |     fn set_attack_target(&mut self, target: Option<(u32, f32)>);
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `state_timer` and `velocity` are never read
[INFO] [stdout]    --> src/game/entity.rs:330:5
[INFO] [stdout]     |
[INFO] [stdout] 326 | pub struct Enemy<'a> {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 330 |     state_timer: system::Clock,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] 331 |     fight_status: EntityFightStatus,
[INFO] [stdout] 332 |     velocity: f32,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `building_type` is never read
[INFO] [stdout]    --> src/game/entity.rs:468:9
[INFO] [stdout]     |
[INFO] [stdout] 465 | pub struct Building<'a> {
[INFO] [stdout]     |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 468 |     pub building_type: BuildingType,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `set_position` and `resize` are never used
[INFO] [stdout]    --> src/game/entity.rs:508:12
[INFO] [stdout]     |
[INFO] [stdout] 472 | impl<'a> Building<'a> {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub fn set_position(&mut self, pos: system::Vector2f) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 512 |     pub fn resize(&mut self, size: system::Vector2f) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UIString` is never constructed
[INFO] [stdout]  --> src/game/ui.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct UIString;
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UICardsInfo` is never constructed
[INFO] [stdout]  --> src/game/ui.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct UICardsInfo;
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/game.rs:51:48
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub fn new(width: u32, height: u32, title: &str) -> Game {
[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] 51 |     pub fn new(width: u32, height: u32, title: &str) -> Game<'_> {
[INFO] [stdout]    |                                                             ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:136:21
[INFO] [stdout]     |
[INFO] [stdout] 136 |                     drop_index.iter().map(|x| x - 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 136 |                     let _ = drop_index.iter().map(|x| x - 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:205:21
[INFO] [stdout]     |
[INFO] [stdout] 205 |                     drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 205 |                     let _ = drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:236:13
[INFO] [stdout]     |
[INFO] [stdout] 236 |             humans_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 236 |             let _ = humans_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |             enemies_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 256 |             let _ = enemies_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/game.rs:288:13
[INFO] [stdout]     |
[INFO] [stdout] 288 |         let mut font = graphics::Font::from_file("src/res/fonts/SourceCodePro.ttf")
[INFO] [stdout]     |             ----^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `Damageable::fight_status`
[INFO] [stdout]   --> src/game/entity.rs:55:5
[INFO] [stdout]    |
[INFO] [stdout] 55 |     fn fight_status(&mut self) -> &mut EntityFightStatus;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Damageable::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/game/entity.rs:43:1
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct EntityFightStatus {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PhysicalStates` is more private than the item `Entity::physical_states`
[INFO] [stdout]   --> src/game/entity.rs:72:5
[INFO] [stdout]    |
[INFO] [stdout] 72 |     fn physical_states(&mut self) -> &mut PhysicalStates;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Entity::physical_states` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]    |
[INFO] [stdout] note: but type `PhysicalStates` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/game/entity.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | struct PhysicalStates {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `<Human<'_> as Damageable>::fight_status`
[INFO] [stdout]    --> src/game/entity.rs:206:5
[INFO] [stdout]     |
[INFO] [stdout] 206 |     fn fight_status(&mut self) -> &mut EntityFightStatus { &mut self.fight_status }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Human<'_> as Damageable>::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:43:1
[INFO] [stdout]     |
[INFO] [stdout]  43 | struct EntityFightStatus {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PhysicalStates` is more private than the item `<Human<'a> as Entity<'a, HumanState>>::physical_states`
[INFO] [stdout]    --> src/game/entity.rs:217:5
[INFO] [stdout]     |
[INFO] [stdout] 217 |     fn physical_states(&mut self) -> &mut PhysicalStates { &mut self.physical_states }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Human<'a> as Entity<'a, HumanState>>::physical_states` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `PhysicalStates` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:37:1
[INFO] [stdout]     |
[INFO] [stdout]  37 | struct PhysicalStates {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `<Enemy<'_> as Damageable>::fight_status`
[INFO] [stdout]    --> src/game/entity.rs:390:5
[INFO] [stdout]     |
[INFO] [stdout] 390 |     fn fight_status(&mut self) -> &mut EntityFightStatus { &mut self.fight_status }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Enemy<'_> as Damageable>::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:43:1
[INFO] [stdout]     |
[INFO] [stdout]  43 | struct EntityFightStatus {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `PhysicalStates` is more private than the item `<Enemy<'a> as Entity<'a, EnemyState>>::physical_states`
[INFO] [stdout]    --> src/game/entity.rs:401:5
[INFO] [stdout]     |
[INFO] [stdout] 401 |     fn physical_states(&mut self) -> &mut PhysicalStates { &mut self.physical_states }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Enemy<'a> as Entity<'a, EnemyState>>::physical_states` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `PhysicalStates` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:37:1
[INFO] [stdout]     |
[INFO] [stdout]  37 | struct PhysicalStates {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `EntityFightStatus` is more private than the item `<Building<'_> as Damageable>::fight_status`
[INFO] [stdout]    --> src/game/entity.rs:535:5
[INFO] [stdout]     |
[INFO] [stdout] 535 |     fn fight_status(&mut self) -> &mut EntityFightStatus { &mut self.fight_status }
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `<Building<'_> as Damageable>::fight_status` is reachable at visibility `pub(in crate::game)`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `EntityFightStatus` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/game/entity.rs:43:1
[INFO] [stdout]     |
[INFO] [stdout]  43 | struct EntityFightStatus {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `HUMANS_POS_Y` is never used
[INFO] [stdout]   --> src/settings.rs:13:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | pub static HUMANS_POS_Y: f32 = 525.0;
[INFO] [stdout]    |            ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Others` is never constructed
[INFO] [stdout]   --> src/game/entity.rs:33:5
[INFO] [stdout]    |
[INFO] [stdout] 31 | pub enum BuildingType {
[INFO] [stdout]    |          ------------ variant in this enum
[INFO] [stdout] 32 |     Base,
[INFO] [stdout] 33 |     Others,
[INFO] [stdout]    |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `armor` and `is_infant` are never read
[INFO] [stdout]   --> src/game/entity.rs:45:5
[INFO] [stdout]    |
[INFO] [stdout] 43 | struct EntityFightStatus {
[INFO] [stdout]    |        ----------------- fields in this struct
[INFO] [stdout] 44 |     attack_damage: f32,
[INFO] [stdout] 45 |     armor: f32,
[INFO] [stdout]    |     ^^^^^
[INFO] [stdout] 46 |     // 是否是近战
[INFO] [stdout] 47 |     is_infant: Option<f32>,
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `state_timer` and `set_attack_target` are never used
[INFO] [stdout]   --> src/game/entity.rs:74:8
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub trait Entity<'this, T> : Damageable + GeoInfo {
[INFO] [stdout]    |           ------ methods in this trait
[INFO] [stdout] ...
[INFO] [stdout] 74 |     fn state_timer(&mut self) -> &mut system::Clock;
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 78 |     fn set_attack_target(&mut self, target: Option<(u32, f32)>);
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `state_timer` and `velocity` are never read
[INFO] [stdout]    --> src/game/entity.rs:330:5
[INFO] [stdout]     |
[INFO] [stdout] 326 | pub struct Enemy<'a> {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 330 |     state_timer: system::Clock,
[INFO] [stdout]     |     ^^^^^^^^^^^
[INFO] [stdout] 331 |     fight_status: EntityFightStatus,
[INFO] [stdout] 332 |     velocity: f32,
[INFO] [stdout]     |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `building_type` is never read
[INFO] [stdout]    --> src/game/entity.rs:468:9
[INFO] [stdout]     |
[INFO] [stdout] 465 | pub struct Building<'a> {
[INFO] [stdout]     |            -------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 468 |     pub building_type: BuildingType,
[INFO] [stdout]     |         ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `set_position` and `resize` are never used
[INFO] [stdout]    --> src/game/entity.rs:508:12
[INFO] [stdout]     |
[INFO] [stdout] 472 | impl<'a> Building<'a> {
[INFO] [stdout]     | --------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 508 |     pub fn set_position(&mut self, pos: system::Vector2f) {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 512 |     pub fn resize(&mut self, size: system::Vector2f) {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UIString` is never constructed
[INFO] [stdout]  --> src/game/ui.rs:6:8
[INFO] [stdout]   |
[INFO] [stdout] 6 | struct UIString;
[INFO] [stdout]   |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `UICardsInfo` is never constructed
[INFO] [stdout]  --> src/game/ui.rs:9:8
[INFO] [stdout]   |
[INFO] [stdout] 9 | struct UICardsInfo;
[INFO] [stdout]   |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/game.rs:51:48
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub fn new(width: u32, height: u32, title: &str) -> Game {
[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] 51 |     pub fn new(width: u32, height: u32, title: &str) -> Game<'_> {
[INFO] [stdout]    |                                                             ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:136:21
[INFO] [stdout]     |
[INFO] [stdout] 136 |                     drop_index.iter().map(|x| x - 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 136 |                     let _ = drop_index.iter().map(|x| x - 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:168:21
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 168 |                     let _ = drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:205:21
[INFO] [stdout]     |
[INFO] [stdout] 205 |                     drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 205 |                     let _ = drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |                     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:236:13
[INFO] [stdout]     |
[INFO] [stdout] 236 |             humans_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 236 |             let _ = humans_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Map` that must be used
[INFO] [stdout]    --> src/game.rs:256:13
[INFO] [stdout]     |
[INFO] [stdout] 256 |             enemies_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: iterators are lazy and do nothing unless consumed
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 256 |             let _ = enemies_drop_index.iter_mut().map(|x| *x - 1);
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.70s
[INFO] running `Command { std: "docker" "inspect" "c3d86428219e58bb78d7f5941b771d0135154e71caeed9f0774092f4296aca67", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c3d86428219e58bb78d7f5941b771d0135154e71caeed9f0774092f4296aca67", kill_on_drop: false }`
[INFO] [stdout] c3d86428219e58bb78d7f5941b771d0135154e71caeed9f0774092f4296aca67
