[INFO] cloning repository https://github.com/TheLord699/RustTest [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheLord699/RustTest" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLord699%2FRustTest", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLord699%2FRustTest'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9986fb5f62039f69f3cfa67711c28b6c6161ac52 [INFO] checking TheLord699/RustTest against master#7ad4e69ad585d8ff214f7b42d01f1959eda08f40 for pr-152543 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheLord699%2FRustTest" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TheLord699/RustTest [INFO] finished tweaking git repo https://github.com/TheLord699/RustTest [INFO] tweaked toml for git repo https://github.com/TheLord699/RustTest written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TheLord699/RustTest on toolchain 7ad4e69ad585d8ff214f7b42d01f1959eda08f40 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7ad4e69ad585d8ff214f7b42d01f1959eda08f40" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TheLord699/RustTest 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" "+7ad4e69ad585d8ff214f7b42d01f1959eda08f40" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded env_home v0.1.0 [INFO] [stderr] Downloaded which v7.0.3 [INFO] [stderr] Downloaded coreaudio-sys v0.2.17 [INFO] [stderr] Downloaded claxon v0.4.3 [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded mlua-sys v0.6.8 [INFO] [stderr] Downloaded objc-rs v0.2.8 [INFO] [stderr] Downloaded quad-rand v0.2.3 [INFO] [stderr] Downloaded hound v3.5.1 [INFO] [stderr] Downloaded minifb v0.28.0 [INFO] [stderr] Downloaded mlua v0.9.9 [INFO] [stderr] Downloaded sdl2 v0.35.2 [INFO] [stderr] Downloaded miniquad v0.4.8 [INFO] [stderr] Downloaded ndk-sys v0.2.2 [INFO] [stderr] Downloaded bstr v1.12.1 [INFO] [stderr] Downloaded lua-src v547.0.0 [INFO] [stderr] Downloaded macroquad v0.4.14 [INFO] [stderr] Downloaded luajit-src v210.5.12+a4f56a4 [INFO] [stderr] Downloaded sdl2-sys v0.35.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7ad4e69ad585d8ff214f7b42d01f1959eda08f40" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 332dcb67c2c43e3ef5873cf42407980874e984897c1049839c7fa46ebc5afda6 [INFO] running `Command { std: "docker" "start" "-a" "332dcb67c2c43e3ef5873cf42407980874e984897c1049839c7fa46ebc5afda6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "332dcb67c2c43e3ef5873cf42407980874e984897c1049839c7fa46ebc5afda6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "332dcb67c2c43e3ef5873cf42407980874e984897c1049839c7fa46ebc5afda6", kill_on_drop: false }` [INFO] [stdout] 332dcb67c2c43e3ef5873cf42407980874e984897c1049839c7fa46ebc5afda6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+7ad4e69ad585d8ff214f7b42d01f1959eda08f40" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72b36eec003e5e79aab8501c70663c1f0918b6cd598add0028745bebb1db994a [INFO] running `Command { std: "docker" "start" "-a" "72b36eec003e5e79aab8501c70663c1f0918b6cd598add0028745bebb1db994a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling libc v0.2.178 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking memchr v2.7.6 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cc v1.2.49 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling rustix v1.1.2 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling linux-raw-sys v0.11.0 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling bitflags v2.10.0 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling zerocopy v0.8.31 [INFO] [stderr] Checking crossbeam-deque v0.8.6 [INFO] [stderr] Compiling env_home v0.1.0 [INFO] [stderr] Checking as-slice v0.2.1 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling av-scenechange v0.14.1 [INFO] [stderr] Compiling built v0.8.0 [INFO] [stderr] Checking aligned v0.4.2 [INFO] [stderr] Checking symphonia-core v0.5.5 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking quick-error v2.0.1 [INFO] [stderr] Checking core2 v0.4.0 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Compiling syn v2.0.111 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling pastey v0.1.1 [INFO] [stderr] Checking y4m v0.8.0 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking bitstream-io v4.9.0 [INFO] [stderr] Compiling miniquad v0.4.8 [INFO] [stderr] Checking new_debug_unreachable v1.0.6 [INFO] [stderr] Checking imgref v1.12.0 [INFO] [stderr] Compiling rav1e v0.8.1 [INFO] [stderr] Checking zune-core v0.4.12 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Checking weezl v0.1.12 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling cpal v0.15.3 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking zune-jpeg v0.4.21 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking pxfm v0.1.27 [INFO] [stderr] Checking loop9 v0.1.5 [INFO] [stderr] Checking tinyvec v1.10.0 [INFO] [stderr] Compiling lua-src v547.0.0 [INFO] [stderr] Checking ogg v0.8.0 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking avif-serialize v0.8.6 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking ttf-parser v0.21.1 [INFO] [stderr] Checking zune-core v0.5.0 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Checking symphonia-metadata v0.5.5 [INFO] [stderr] Checking bit_field v0.10.3 [INFO] [stderr] Compiling minifb v0.28.0 [INFO] [stderr] Checking rgb v0.8.52 [INFO] [stderr] Checking lebe v0.5.3 [INFO] [stderr] Checking zune-jpeg v0.5.5 [INFO] [stderr] Checking image-webp v0.2.4 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking symphonia-bundle-mp3 v0.5.5 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Compiling which v7.0.3 [INFO] [stderr] Checking tempfile v3.23.0 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking alsa v0.9.1 [INFO] [stderr] Checking lewton v0.10.2 [INFO] [stderr] Checking moxcms v0.7.10 [INFO] [stderr] Checking symphonia v0.5.5 [INFO] [stderr] Compiling luajit-src v210.5.12+a4f56a4 [INFO] [stderr] Checking gif v0.14.1 [INFO] [stderr] Checking bstr v1.12.1 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Compiling mlua-sys v0.6.8 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Checking raw-window-handle v0.6.2 [INFO] [stderr] Checking fontdue v0.9.3 [INFO] [stderr] Checking quad-rand v0.2.3 [INFO] [stderr] Checking hound v3.5.1 [INFO] [stderr] Checking glam v0.27.0 [INFO] [stderr] Checking rustc-hash v2.1.1 [INFO] [stderr] Checking maybe-rayon v0.1.1 [INFO] [stderr] Checking wayland-commons v0.29.5 [INFO] [stderr] Compiling equator-macro v0.4.2 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling zerocopy-derive v0.8.31 [INFO] [stderr] Compiling profiling-procmacros v1.0.17 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling fax_derive v0.2.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking wayland-cursor v0.29.5 [INFO] [stderr] Checking profiling v1.0.17 [INFO] [stderr] Checking fax v0.2.6 [INFO] [stderr] Checking equator v0.4.2 [INFO] [stderr] Checking macroquad v0.4.14 [INFO] [stderr] Checking aligned-vec v0.6.4 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking v_frame v0.3.9 [INFO] [stderr] Checking rodio v0.18.1 [INFO] [stderr] Checking av1-grain v0.2.5 [INFO] [stderr] Checking thiserror v2.0.17 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking half v2.7.1 [INFO] [stderr] Checking exr v1.74.0 [INFO] [stderr] Checking tiff v0.10.3 [INFO] [stderr] Checking ravif v0.12.0 [INFO] [stderr] Checking image v0.25.9 [INFO] [stderr] Checking mlua v0.9.9 [INFO] [stderr] Checking game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::scripting::EnemyAI` [INFO] [stdout] --> src/enemy_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::scripting::EnemyAI; [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: `crate::scripting::EnemyAI` [INFO] [stdout] --> src/enemy_manager.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::scripting::EnemyAI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (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:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut enemy_movements = Vec::new(); [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: unused variable: `stats` [INFO] [stdout] --> src/game.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let stats = self.enemy_manager.get_enemy_stats(&enemy_type); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stats` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_player` [INFO] [stdout] --> src/game.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let temp_player = crate::ecs::Entity::new( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let mut enemy_movements = Vec::new(); [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: unused variable: `stats` [INFO] [stdout] --> src/game.rs:104:17 [INFO] [stdout] | [INFO] [stdout] 104 | let stats = self.enemy_manager.get_enemy_stats(&enemy_type); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_stats` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `temp_player` [INFO] [stdout] --> src/game.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let temp_player = crate::ecs::Entity::new( [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_temp_player` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_solid`, `with_pushable`, `move_entity`, and `check_collision` are never used [INFO] [stdout] --> src/ecs.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn with_solid(mut self, solid: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn with_pushable(mut self, pushable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn move_entity(&mut self, dx: f32, dy: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn check_collision(&self, other: &Entity) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter_entities`, `iter_entities_mut`, `remove_entity`, and `clear` are never used [INFO] [stdout] --> src/ecs.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl ECSManager { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn iter_entities(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn iter_entities_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn remove_entity(&mut self, id: EntityID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/enemy_manager.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct EnemyStats { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 111 | pub health: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 112 | pub max_health: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 113 | pub speed: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | pub damage: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | pub experience: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 116 | pub aggro_range: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 117 | pub attack_range: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 118 | pub attack_cooldown: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 119 | pub knockback_resistance: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub ai_type: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 121 | pub pushable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 122 | pub mass: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 123 | pub scale: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 124 | pub attack_sequence: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnemyStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_json` is never used [INFO] [stdout] --> src/helper_methods.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn load_json(path: &str) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnemyAI` is never constructed [INFO] [stdout] --> src/scripting.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EnemyAI { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_enemy_ai`, `load_all_ai_scripts`, `update_enemy`, and `cleanup_entity` are never used [INFO] [stdout] --> src/scripting.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl EnemyAI { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn load_enemy_ai(&mut self, enemy_type: &str, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn load_all_ai_scripts(&mut self, scripts_dir: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn update_enemy( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn cleanup_entity(&mut self, entity_id: crate::ecs::EntityID) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `with_solid`, `with_pushable`, `move_entity`, and `check_collision` are never used [INFO] [stdout] --> src/ecs.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn with_solid(mut self, solid: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn with_pushable(mut self, pushable: bool) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub fn move_entity(&mut self, dx: f32, dy: f32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn check_collision(&self, other: &Entity) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `iter_entities`, `iter_entities_mut`, `remove_entity`, and `clear` are never used [INFO] [stdout] --> src/ecs.rs:315:12 [INFO] [stdout] | [INFO] [stdout] 106 | impl ECSManager { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 315 | pub fn iter_entities(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 319 | pub fn iter_entities_mut(&mut self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 323 | pub fn remove_entity(&mut self, id: EntityID) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 327 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/enemy_manager.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 110 | pub struct EnemyStats { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 111 | pub health: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 112 | pub max_health: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 113 | pub speed: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 114 | pub damage: i32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 115 | pub experience: i32, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 116 | pub aggro_range: i32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 117 | pub attack_range: i32, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 118 | pub attack_cooldown: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 119 | pub knockback_resistance: f32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 120 | pub ai_type: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 121 | pub pushable: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 122 | pub mass: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 123 | pub scale: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 124 | pub attack_sequence: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `EnemyStats` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_json` is never used [INFO] [stdout] --> src/helper_methods.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn load_json(path: &str) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `EnemyAI` is never constructed [INFO] [stdout] --> src/scripting.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct EnemyAI { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `load_enemy_ai`, `load_all_ai_scripts`, `update_enemy`, and `cleanup_entity` are never used [INFO] [stdout] --> src/scripting.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl EnemyAI { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 14 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn load_enemy_ai(&mut self, enemy_type: &str, path: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn load_all_ai_scripts(&mut self, scripts_dir: &str) -> Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn update_enemy( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn cleanup_entity(&mut self, entity_id: crate::ecs::EntityID) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 42.92s [INFO] running `Command { std: "docker" "inspect" "72b36eec003e5e79aab8501c70663c1f0918b6cd598add0028745bebb1db994a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72b36eec003e5e79aab8501c70663c1f0918b6cd598add0028745bebb1db994a", kill_on_drop: false }` [INFO] [stdout] 72b36eec003e5e79aab8501c70663c1f0918b6cd598add0028745bebb1db994a