[INFO] cloning repository https://github.com/TheFern2/AntSimulacrum [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TheFern2/AntSimulacrum" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheFern2%2FAntSimulacrum", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheFern2%2FAntSimulacrum'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d285ee846c72c5284ab9c24de0d8bae8207c19c [INFO] checking TheFern2/AntSimulacrum against try#b8ee37b59c6e1f39bae18b85e057975ab0d89308 for pr-139587-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTheFern2%2FAntSimulacrum" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/TheFern2/AntSimulacrum on toolchain b8ee37b59c6e1f39bae18b85e057975ab0d89308 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/TheFern2/AntSimulacrum [INFO] finished tweaking git repo https://github.com/TheFern2/AntSimulacrum [INFO] tweaked toml for git repo https://github.com/TheFern2/AntSimulacrum written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/TheFern2/AntSimulacrum 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" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "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-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 964d2f17eda7a16a32053c66e6cd86c996819e63722056a14972cfc3be77970c [INFO] running `Command { std: "docker" "start" "-a" "964d2f17eda7a16a32053c66e6cd86c996819e63722056a14972cfc3be77970c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "964d2f17eda7a16a32053c66e6cd86c996819e63722056a14972cfc3be77970c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "964d2f17eda7a16a32053c66e6cd86c996819e63722056a14972cfc3be77970c", kill_on_drop: false }` [INFO] [stdout] 964d2f17eda7a16a32053c66e6cd86c996819e63722056a14972cfc3be77970c [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+b8ee37b59c6e1f39bae18b85e057975ab0d89308" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d69e2fb55d703422e6af84801c533b0df462486c970b14551f375fbe5ac9385 [INFO] running `Command { std: "docker" "start" "-a" "6d69e2fb55d703422e6af84801c533b0df462486c970b14551f375fbe5ac9385", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling zerocopy v0.8.24 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Checking powerfmt v0.2.0 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking num_threads v0.1.7 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Checking colored v2.2.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling cc v1.2.19 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling ant_simulacrum v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking widestring v1.2.0 [INFO] [stderr] Checking bitflags v2.9.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cmake v0.1.54 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling link-cplusplus v1.0.10 [INFO] [stderr] Compiling libflac-sys v0.3.1 [INFO] [stderr] Compiling sfml v0.24.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking simple_logger v4.3.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stdout] warning: unused imports: `Font` and `Text` [INFO] [stdout] --> src/colony/mod.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use sfml::graphics::{RenderWindow, Text, Color, Font, Transformable, Shape, RenderTarget}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ant::Ant` [INFO] [stdout] --> src/environment/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ant::Ant; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sfml::system::Vector2f` [INFO] [stdout] --> src/game/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sfml::system::Vector2f; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mouse` [INFO] [stdout] --> src/ui/mod.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use sfml::window::{Event, mouse}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Font` and `Text` [INFO] [stdout] --> src/colony/mod.rs:1:36 [INFO] [stdout] | [INFO] [stdout] 1 | use sfml::graphics::{RenderWindow, Text, Color, Font, Transformable, Shape, RenderTarget}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ant::Ant` [INFO] [stdout] --> src/environment/mod.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::ant::Ant; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sfml::system::Vector2f` [INFO] [stdout] --> src/ecs/component.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sfml::system::Vector2f; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sfml::system::Vector2f` [INFO] [stdout] --> src/game/mod.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use sfml::system::Vector2f; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ecs::entity::EntityId` [INFO] [stdout] --> src/ecs/system.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ecs::entity::EntityId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `mouse` [INFO] [stdout] --> src/ui/mod.rs:3:27 [INFO] [stdout] | [INFO] [stdout] 3 | use sfml::window::{Event, mouse}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/ecs/world.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/ecs/world.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::component::Component` [INFO] [stdout] --> src/ecs/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use self::component::Component; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EntityId` and `Entity` [INFO] [stdout] --> src/ecs/mod.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::entity::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sfml::system::Vector2f` [INFO] [stdout] --> src/ecs/component.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use sfml::system::Vector2f; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::ecs::entity::EntityId` [INFO] [stdout] --> src/ecs/system.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::ecs::entity::EntityId; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::any::Any` [INFO] [stdout] --> src/ecs/world.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/ecs/world.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::component::Component` [INFO] [stdout] --> src/ecs/mod.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub use self::component::Component; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `EntityId` and `Entity` [INFO] [stdout] --> src/ecs/mod.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | pub use self::entity::{Entity, EntityId}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::system::System` [INFO] [stdout] --> src/ecs/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::system::System; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::world::World` [INFO] [stdout] --> src/ecs/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use self::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::system::System` [INFO] [stdout] --> src/ecs/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use self::system::System; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::world::World` [INFO] [stdout] --> src/ecs/mod.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use self::world::World; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `delivered` is never read [INFO] [stdout] --> src/ant/mod.rs:674:25 [INFO] [stdout] | [INFO] [stdout] 674 | delivered = true; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `delivered` is assigned to, but never used [INFO] [stdout] --> src/ant/mod.rs:711:21 [INFO] [stdout] | [INFO] [stdout] 711 | let mut delivered = false; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_delivered` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `delivered` is never read [INFO] [stdout] --> src/ant/mod.rs:745:21 [INFO] [stdout] | [INFO] [stdout] 745 | delivered = true; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `delivered` is never read [INFO] [stdout] --> src/ant/mod.rs:674:25 [INFO] [stdout] | [INFO] [stdout] 674 | delivered = true; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `delivered` is assigned to, but never used [INFO] [stdout] --> src/ant/mod.rs:711:21 [INFO] [stdout] | [INFO] [stdout] 711 | let mut delivered = false; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_delivered` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `delivered` is never read [INFO] [stdout] --> src/ant/mod.rs:745:21 [INFO] [stdout] | [INFO] [stdout] 745 | delivered = true; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `random_direction_change`, `get_ignore_pheromones_timer`, and `set_ignore_pheromones_timer` are never used [INFO] [stdout] --> src/ant/mod.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Ant { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 295 | fn random_direction_change(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 833 | pub fn get_ignore_pheromones_timer(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 837 | pub fn set_ignore_pheromones_timer(&mut self, timer: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `radius` is never read [INFO] [stdout] --> src/colony/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Colony { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 10 | position: Vector2f, [INFO] [stdout] 11 | radius: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_statistics` is never used [INFO] [stdout] --> src/colony/mod.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Colony { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_statistics(&self) -> (usize, f32, usize, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Health`, `Pheromone`, `Collider`, `Food`, and `Colony` are never constructed [INFO] [stdout] --> src/ecs/component.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ComponentType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Health, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Pheromone, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | AntState, [INFO] [stdout] 13 | Collider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | Food, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Colony, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComponentType` 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: methods `component_type` and `clone_boxed` are never used [INFO] [stdout] --> src/ecs/component.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Component: Any + Send + Sync { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 20 | /// Get the type of this component [INFO] [stdout] 21 | fn component_type(&self) -> ComponentType; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn clone_boxed(&self) -> Box; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Circle` and `Rectangle` are never constructed [INFO] [stdout] --> src/ecs/component.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub enum ShapeType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 97 | Circle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 98 | Rectangle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShapeType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `colony_id` is never read [INFO] [stdout] --> src/ecs/component.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct AntStateComponent { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 127 | pub colony_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AntStateComponent` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Idle`, `ReturningHome`, and `FollowingPheromone` are never constructed [INFO] [stdout] --> src/ecs/component.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum AntState { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 132 | Idle, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | SearchingForFood, [INFO] [stdout] 134 | ReturningHome, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 135 | FollowingPheromone, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AntState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ecs/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Entity { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | id: EntityId, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `id`, `add_component`, and `remove_component` are never used [INFO] [stdout] --> src/ecs/entity.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Entity { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | /// Create a new entity with a unique ID [INFO] [stdout] 15 | pub fn new(id: EntityId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn id(&self) -> EntityId { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn add_component(&mut self, component_type: ComponentType, component_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn remove_component(&mut self, component_type: &ComponentType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update` and `name` are never used [INFO] [stdout] --> src/ecs/system.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait System { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 10 | /// Update the system [INFO] [stdout] 11 | fn update(&mut self, world: &mut World, delta_time: f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ecs/system.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl MovementSystem { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ecs/system.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a> RenderingSystem<'a> { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 74 | pub fn new(window: &'a mut RenderWindow) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ecs/system.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl AntBehaviorSystem { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 144 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_entity_id` and `systems` are never read [INFO] [stdout] --> src/ecs/world.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | next_entity_id: EntityId, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | systems: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ecs/world.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 25 | /// Create a new empty world [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add_resource(&mut self, resource: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_resource_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn create_entity(&mut self) -> EntityId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn remove_entity(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn add_component(&mut self, entity_id: EntityId, component: T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn remove_component(&mut self, entity_id: EntityId, component_type: ComponentType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn add_system(&mut self, system: S) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn update(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_component` is never used [INFO] [stdout] --> src/ecs/world.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn create_empty_component(component_type: ComponentType) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `random_direction_change`, `get_ignore_pheromones_timer`, and `set_ignore_pheromones_timer` are never used [INFO] [stdout] --> src/ant/mod.rs:295:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl Ant { [INFO] [stdout] | -------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 295 | fn random_direction_change(&mut self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 833 | pub fn get_ignore_pheromones_timer(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 837 | pub fn set_ignore_pheromones_timer(&mut self, timer: f32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `radius` is never read [INFO] [stdout] --> src/colony/mod.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Colony { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 10 | position: Vector2f, [INFO] [stdout] 11 | radius: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_statistics` is never used [INFO] [stdout] --> src/colony/mod.rs:120:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Colony { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn get_statistics(&self) -> (usize, f32, usize, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Health`, `Pheromone`, `Collider`, `Food`, and `Colony` are never constructed [INFO] [stdout] --> src/ecs/component.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ComponentType { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 10 | Health, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Pheromone, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | AntState, [INFO] [stdout] 13 | Collider, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 14 | Food, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Colony, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComponentType` 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: methods `component_type` and `clone_boxed` are never used [INFO] [stdout] --> src/ecs/component.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait Component: Any + Send + Sync { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 20 | /// Get the type of this component [INFO] [stdout] 21 | fn component_type(&self) -> ComponentType; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn clone_boxed(&self) -> Box; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Circle` and `Rectangle` are never constructed [INFO] [stdout] --> src/ecs/component.rs:97:5 [INFO] [stdout] | [INFO] [stdout] 96 | pub enum ShapeType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 97 | Circle, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 98 | Rectangle, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ShapeType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `colony_id` is never read [INFO] [stdout] --> src/ecs/component.rs:127:9 [INFO] [stdout] | [INFO] [stdout] 121 | pub struct AntStateComponent { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 127 | pub colony_id: Option, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AntStateComponent` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Idle`, `ReturningHome`, and `FollowingPheromone` are never constructed [INFO] [stdout] --> src/ecs/component.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 131 | pub enum AntState { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 132 | Idle, [INFO] [stdout] | ^^^^ [INFO] [stdout] 133 | SearchingForFood, [INFO] [stdout] 134 | ReturningHome, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 135 | FollowingPheromone, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `AntState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/ecs/entity.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Entity { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 9 | id: EntityId, [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `id`, `add_component`, and `remove_component` are never used [INFO] [stdout] --> src/ecs/entity.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Entity { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 14 | /// Create a new entity with a unique ID [INFO] [stdout] 15 | pub fn new(id: EntityId) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn id(&self) -> EntityId { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn add_component(&mut self, component_type: ComponentType, component_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn remove_component(&mut self, component_type: &ComponentType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update` and `name` are never used [INFO] [stdout] --> src/ecs/system.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub trait System { [INFO] [stdout] | ------ methods in this trait [INFO] [stdout] 10 | /// Update the system [INFO] [stdout] 11 | fn update(&mut self, world: &mut World, delta_time: f32); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 14 | fn name(&self) -> &str; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ecs/system.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl MovementSystem { [INFO] [stdout] | ------------------- associated function in this implementation [INFO] [stdout] 21 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ecs/system.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl<'a> RenderingSystem<'a> { [INFO] [stdout] | ---------------------------- associated function in this implementation [INFO] [stdout] 74 | pub fn new(window: &'a mut RenderWindow) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ecs/system.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 143 | impl AntBehaviorSystem { [INFO] [stdout] | ---------------------- associated function in this implementation [INFO] [stdout] 144 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `next_entity_id` and `systems` are never read [INFO] [stdout] --> src/ecs/world.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 12 | next_entity_id: EntityId, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 18 | systems: Vec>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/ecs/world.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 24 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 25 | /// Create a new empty world [INFO] [stdout] 26 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn add_resource(&mut self, resource: T) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn get_resource_mut(&mut self) -> Option<&mut T> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn create_entity(&mut self) -> EntityId { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 68 | pub fn remove_entity(&mut self, entity_id: EntityId) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn add_component(&mut self, entity_id: EntityId, component: T) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn remove_component(&mut self, entity_id: EntityId, component_type: ComponentType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn add_system(&mut self, system: S) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn update(&mut self, delta_time: f32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_empty_component` is never used [INFO] [stdout] --> src/ecs/world.rs:174:4 [INFO] [stdout] | [INFO] [stdout] 174 | fn create_empty_component(component_type: ComponentType) -> Box { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 17s [INFO] running `Command { std: "docker" "inspect" "6d69e2fb55d703422e6af84801c533b0df462486c970b14551f375fbe5ac9385", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d69e2fb55d703422e6af84801c533b0df462486c970b14551f375fbe5ac9385", kill_on_drop: false }` [INFO] [stdout] 6d69e2fb55d703422e6af84801c533b0df462486c970b14551f375fbe5ac9385