[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] c00e68ae0cb2b2c45707eecfcb6fd8ee066be277 [INFO] checking JunkuiZhang/castle_game against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJunkuiZhang%2Fcastle_game" "/workspace/builds/worker-58/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-58/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JunkuiZhang/castle_game on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-58/source/Cargo.toml [INFO] crate git repo https://github.com/JunkuiZhang/castle_game already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 525b96f71ef1f3737d4f0d9fe3c4c4b79e9e53d1ff9473c64458d42cc1892159 [INFO] running `Command { std: "docker" "start" "-a" "525b96f71ef1f3737d4f0d9fe3c4c4b79e9e53d1ff9473c64458d42cc1892159", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "525b96f71ef1f3737d4f0d9fe3c4c4b79e9e53d1ff9473c64458d42cc1892159", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "525b96f71ef1f3737d4f0d9fe3c4c4b79e9e53d1ff9473c64458d42cc1892159", kill_on_drop: false }` [INFO] [stdout] 525b96f71ef1f3737d4f0d9fe3c4c4b79e9e53d1ff9473c64458d42cc1892159 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-58/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27e08380f76dcbf75eb2190967877e2cf119319d20f848d6d2f327885abbeb64 [INFO] running `Command { std: "docker" "start" "-a" "27e08380f76dcbf75eb2190967877e2cf119319d20f848d6d2f327885abbeb64", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [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 cfg-if v0.1.10 [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 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/game/entity.rs (6 fixes) [INFO] [stderr] Fixed src/game.rs (6 fixes) [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/game/entity.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hp` is assigned to, but never used [INFO] [stdout] --> src/game/entity.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let mut hp: f32 = 100.0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: unused import: `RenderTarget` [INFO] [stdout] --> src/game/entity.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hp` is assigned to, but never used [INFO] [stdout] --> src/game/entity.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let mut hp: f32 = 100.0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: private type `EntityFightStatus` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | fn fight_status(&mut self) -> &mut EntityFightStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn physical_states(&mut self) -> &mut PhysicalStates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | fn rival_dir(&self) -> &Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn set_rival_dir(&mut self, dir: Option); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | fn state_changer(&mut self, _rival_coming: &Option) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fn update(&mut self, dt: f32, pos_list: &mut HashMap, rival_coming: &Option, [INFO] [stdout] 114 | | rival_pos_list: &HashMap) { [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | fn rival_dir(&self) -> &Option { &self.enemy_dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | fn set_rival_dir(&mut self, dir: Option) { self.enemy_dir = dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | fn state_changer(&mut self, rival_coming: &Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:409:5 [INFO] [stdout] | [INFO] [stdout] 409 | fn rival_dir(&self) -> &Option { &self.rival_direction } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | fn set_rival_dir(&mut self, dir: Option) { self.rival_direction = dir; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `HUMANS_POS_Y` [INFO] [stdout] --> src/settings.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static HUMANS_POS_Y: f32 = 525.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Others` [INFO] [stdout] --> src/game/entity.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Others, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `armor` [INFO] [stdout] --> src/game/entity.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | armor: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_infant` [INFO] [stdout] --> src/game/entity.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | is_infant: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/entity.rs:332:5 [INFO] [stdout] | [INFO] [stdout] 332 | velocity: f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_position` [INFO] [stdout] --> src/game/entity.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | pub fn set_position(&mut self, pos: system::Vector2f) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/game/entity.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn resize(&mut self, size: system::Vector2f) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UIString` [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 is never constructed: `UICardsInfo` [INFO] [stdout] --> src/game/ui.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct UICardsInfo; [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [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] [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] [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] [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] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | fn fight_status(&mut self) -> &mut EntityFightStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn physical_states(&mut self) -> &mut PhysicalStates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | fn rival_dir(&self) -> &Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn set_rival_dir(&mut self, dir: Option); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | fn state_changer(&mut self, _rival_coming: &Option) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fn update(&mut self, dt: f32, pos_list: &mut HashMap, rival_coming: &Option, [INFO] [stdout] 114 | | rival_pos_list: &HashMap) { [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | fn rival_dir(&self) -> &Option { &self.enemy_dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | fn set_rival_dir(&mut self, dir: Option) { self.enemy_dir = dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | fn state_changer(&mut self, rival_coming: &Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:409:5 [INFO] [stdout] | [INFO] [stdout] 409 | fn rival_dir(&self) -> &Option { &self.rival_direction } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | fn set_rival_dir(&mut self, dir: Option) { self.rival_direction = dir; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `HUMANS_POS_Y` [INFO] [stdout] --> src/settings.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static HUMANS_POS_Y: f32 = 525.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Others` [INFO] [stdout] --> src/game/entity.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Others, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `armor` [INFO] [stdout] --> src/game/entity.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | armor: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_infant` [INFO] [stdout] --> src/game/entity.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | is_infant: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/entity.rs:332:5 [INFO] [stdout] | [INFO] [stdout] 332 | velocity: f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_position` [INFO] [stdout] --> src/game/entity.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | pub fn set_position(&mut self, pos: system::Vector2f) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/game/entity.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn resize(&mut self, size: system::Vector2f) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UIString` [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 is never constructed: `UICardsInfo` [INFO] [stdout] --> src/game/ui.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct UICardsInfo; [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [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] [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] [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] [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] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.27s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking castle v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused import: `RenderTarget` [INFO] [stdout] --> src/game/entity.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hp` is assigned to, but never used [INFO] [stdout] --> src/game/entity.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let mut hp: f32 = 100.0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: unused import: `RenderTarget` [INFO] [stdout] --> src/game/entity.rs:2:51 [INFO] [stdout] | [INFO] [stdout] 2 | use super::sfml::graphics::{Shape, Transformable, RenderTarget, RectangleShape}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `hp` is assigned to, but never used [INFO] [stdout] --> src/game/entity.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let mut hp: f32 = 100.0; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: private type `EntityFightStatus` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | fn fight_status(&mut self) -> &mut EntityFightStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn physical_states(&mut self) -> &mut PhysicalStates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | fn rival_dir(&self) -> &Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn set_rival_dir(&mut self, dir: Option); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | fn state_changer(&mut self, _rival_coming: &Option) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fn update(&mut self, dt: f32, pos_list: &mut HashMap, rival_coming: &Option, [INFO] [stdout] 114 | | rival_pos_list: &HashMap) { [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | fn rival_dir(&self) -> &Option { &self.enemy_dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | fn set_rival_dir(&mut self, dir: Option) { self.enemy_dir = dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | fn state_changer(&mut self, rival_coming: &Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:409:5 [INFO] [stdout] | [INFO] [stdout] 409 | fn rival_dir(&self) -> &Option { &self.rival_direction } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | fn set_rival_dir(&mut self, dir: Option) { self.rival_direction = dir; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `HUMANS_POS_Y` [INFO] [stdout] --> src/settings.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static HUMANS_POS_Y: f32 = 525.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Others` [INFO] [stdout] --> src/game/entity.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Others, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `armor` [INFO] [stdout] --> src/game/entity.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | armor: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_infant` [INFO] [stdout] --> src/game/entity.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | is_infant: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/entity.rs:332:5 [INFO] [stdout] | [INFO] [stdout] 332 | velocity: f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_position` [INFO] [stdout] --> src/game/entity.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | pub fn set_position(&mut self, pos: system::Vector2f) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/game/entity.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn resize(&mut self, size: system::Vector2f) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UIString` [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 is never constructed: `UICardsInfo` [INFO] [stdout] --> src/game/ui.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct UICardsInfo; [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [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] [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] [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] [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] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | fn fight_status(&mut self) -> &mut EntityFightStatus; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(private_in_public)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | fn physical_states(&mut self) -> &mut PhysicalStates; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | fn rival_dir(&self) -> &Option; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:81:5 [INFO] [stdout] | [INFO] [stdout] 81 | fn set_rival_dir(&mut self, dir: Option); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | fn state_changer(&mut self, _rival_coming: &Option) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:113:5 [INFO] [stdout] | [INFO] [stdout] 113 | / fn update(&mut self, dt: f32, pos_list: &mut HashMap, rival_coming: &Option, [INFO] [stdout] 114 | | rival_pos_list: &HashMap) { [INFO] [stdout] | |______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | fn rival_dir(&self) -> &Option { &self.enemy_dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:226:5 [INFO] [stdout] | [INFO] [stdout] 226 | fn set_rival_dir(&mut self, dir: Option) { self.enemy_dir = dir } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:237:5 [INFO] [stdout] | [INFO] [stdout] 237 | fn state_changer(&mut self, rival_coming: &Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `PhysicalStates` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:409:5 [INFO] [stdout] | [INFO] [stdout] 409 | fn rival_dir(&self) -> &Option { &self.rival_direction } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EnemyComing` in public interface (error E0446) [INFO] [stdout] --> src/game/entity.rs:410:5 [INFO] [stdout] | [INFO] [stdout] 410 | fn set_rival_dir(&mut self, dir: Option) { self.rival_direction = dir; } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: private type `EntityFightStatus` in public interface (error E0446) [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #34537 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `HUMANS_POS_Y` [INFO] [stdout] --> src/settings.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | pub static HUMANS_POS_Y: f32 = 525.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Others` [INFO] [stdout] --> src/game/entity.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | Others, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `armor` [INFO] [stdout] --> src/game/entity.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 45 | armor: f32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `is_infant` [INFO] [stdout] --> src/game/entity.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | is_infant: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/entity.rs:332:5 [INFO] [stdout] | [INFO] [stdout] 332 | velocity: f32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_position` [INFO] [stdout] --> src/game/entity.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | pub fn set_position(&mut self, pos: system::Vector2f) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `resize` [INFO] [stdout] --> src/game/entity.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | pub fn resize(&mut self, size: system::Vector2f) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `UIString` [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 is never constructed: `UICardsInfo` [INFO] [stdout] --> src/game/ui.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct UICardsInfo; [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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: iterators are lazy and do nothing unless consumed [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] [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] [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] [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] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 34 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.59s [INFO] running `Command { std: "docker" "inspect" "27e08380f76dcbf75eb2190967877e2cf119319d20f848d6d2f327885abbeb64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27e08380f76dcbf75eb2190967877e2cf119319d20f848d6d2f327885abbeb64", kill_on_drop: false }` [INFO] [stdout] 27e08380f76dcbf75eb2190967877e2cf119319d20f848d6d2f327885abbeb64