[INFO] fetching crate treevolution 1.0.1... [INFO] checking treevolution-1.0.1 against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478 [INFO] extracting crate treevolution 1.0.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate treevolution 1.0.1 [INFO] finished tweaking crates.io crate treevolution 1.0.1 [INFO] tweaked toml for crates.io crate treevolution 1.0.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate treevolution 1.0.1 on toolchain eca445e5ae4a6679cc27d3a09106ce245e13a5a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate treevolution 1.0.1 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" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: explicit `package.readme` can be inferred [INFO] [stderr] --> Cargo.toml:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | readme = "README.md" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::manual_readme` is set to `warn` by default [INFO] [stderr] help: consider removing `package.readme` [INFO] [stderr] warning: binary `treevolution_viewer` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-4-tc1/source/target/.../treevolution_viewer [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::non_kebab_case_bins` is set to `warn` by default [INFO] [stderr] help: to change the binary name to `treevolution-viewer`, convert `bin.name` [INFO] [stderr] --> Cargo.toml:2:8 [INFO] [stderr] | [INFO] [stderr] 2 - name = "treevolution_viewer" [INFO] [stderr] 2 + name = "treevolution-viewer" [INFO] [stderr] | [INFO] [stderr] warning: `treevolution` (manifest) generated 2 warnings [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy-derive v0.8.22 [INFO] [stderr] Downloaded quad-rand v0.2.3 [INFO] [stderr] Downloaded macroquad_macro v0.1.8 [INFO] [stderr] Downloaded miniquad v0.4.6 [INFO] [stderr] Downloaded zerocopy v0.8.22 [INFO] [stderr] Downloaded fontdue v0.7.3 [INFO] [stderr] Downloaded glam v0.27.0 [INFO] [stderr] Downloaded macroquad v0.4.13 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1 [INFO] running `Command { std: "docker" "start" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] warning: explicit `package.readme` can be inferred [INFO] [stderr] --> Cargo.toml:33:1 [INFO] [stderr] | [INFO] [stderr] 33 | readme = "README.md" [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::manual_readme` is set to `warn` by default [INFO] [stderr] help: consider removing `package.readme` [INFO] [stderr] warning: binary `treevolution_viewer` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../treevolution_viewer [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::non_kebab_case_bins` is set to `warn` by default [INFO] [stderr] help: to change the binary name to `treevolution-viewer`, convert `bin.name` [INFO] [stderr] --> Cargo.toml:2:8 [INFO] [stderr] | [INFO] [stderr] 2 - name = "treevolution_viewer" [INFO] [stderr] 2 + name = "treevolution-viewer" [INFO] [stderr] | [INFO] [stderr] warning: `treevolution` (manifest) generated 2 warnings [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking miniz_oxide v0.8.5 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling matrixmultiply v0.3.9 [INFO] [stderr] Compiling zerocopy v0.8.22 [INFO] [stderr] Compiling miniquad v0.4.6 [INFO] [stderr] Checking bytemuck v1.22.0 [INFO] [stderr] Checking either v1.14.0 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking flate2 v1.1.0 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling quote v1.0.39 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Compiling syn v2.0.99 [INFO] [stderr] Checking quad-rand v0.2.3 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Checking glam v0.27.0 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking ndarray v0.16.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking fontdue v0.7.3 [INFO] [stderr] Checking macroquad v0.4.13 [INFO] [stderr] Checking treevolution v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sim_mod/habitat.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut plant = &mut self.plants[idx]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sim_mod/habitat.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | for mut plant in &mut self.plants { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/sim_mod/plant.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | .map(|x| ResponseCluster::new(genome)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `values` is never read [INFO] [stdout] --> src/sim_mod/genome.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | let mut values = Vec::::with_capacity(amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 29 | values = (self.value_counter..self.value_counter + amount) [INFO] [stdout] | ------ `values` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEAD_CELL_COLOR` is never used [INFO] [stdout] --> src/sim_mod/cell_types.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const DEAD_CELL_COLOR: Color = Color { [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 `is_in_grid` and `spawn_random_cell` are never used [INFO] [stdout] --> src/sim_mod/habitat.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Habitat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn is_in_grid(&self, pos: IVec2) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn spawn_random_cell(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_root`, `has_energy`, and `is_seed` are never used [INFO] [stdout] --> src/sim_mod/plant.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Plant { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn new_with_root(root_pos: IVec2) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn has_energy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn is_seed(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_values` is never used [INFO] [stdout] --> src/sim_mod/genome.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Genome { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn parse_values(&mut self, amount: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_response` is never used [INFO] [stdout] --> src/sim_mod/response_cluster.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ResponseCluster { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_response(&self, direction: &str) -> &Response { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/constants/simulation.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const GENOME_SIZE: usize = 500; // the size of genome raw data, unused data is intended [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sim_mod/habitat.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut plant = &mut self.plants[idx]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sim_mod/habitat.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | for mut plant in &mut self.plants { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/sim_mod/plant.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | .map(|x| ResponseCluster::new(genome)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `values` is never read [INFO] [stdout] --> src/sim_mod/genome.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | let mut values = Vec::::with_capacity(amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 29 | values = (self.value_counter..self.value_counter + amount) [INFO] [stdout] | ------ `values` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEAD_CELL_COLOR` is never used [INFO] [stdout] --> src/sim_mod/cell_types.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const DEAD_CELL_COLOR: Color = Color { [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 `is_in_grid` and `spawn_random_cell` are never used [INFO] [stdout] --> src/sim_mod/habitat.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Habitat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn is_in_grid(&self, pos: IVec2) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn spawn_random_cell(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_root`, `has_energy`, and `is_seed` are never used [INFO] [stdout] --> src/sim_mod/plant.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Plant { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn new_with_root(root_pos: IVec2) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn has_energy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn is_seed(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_values` is never used [INFO] [stdout] --> src/sim_mod/genome.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Genome { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn parse_values(&mut self, amount: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_response` is never used [INFO] [stdout] --> src/sim_mod/response_cluster.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ResponseCluster { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_response(&self, direction: &str) -> &Response { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/constants/simulation.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const GENOME_SIZE: usize = 500; // the size of genome raw data, unused data is intended [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IndexedParallelIterator` [INFO] [stdout] --> src/grid_window/grid_window.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::iter::{IndexedParallelIterator}; [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/sim_mod/habitat.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut plant = &mut self.plants[idx]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sim_mod/habitat.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | for mut plant in &mut self.plants { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/sim_mod/plant.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | .map(|x| ResponseCluster::new(genome)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `values` is never read [INFO] [stdout] --> src/sim_mod/genome.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | let mut values = Vec::::with_capacity(amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 29 | values = (self.value_counter..self.value_counter + amount) [INFO] [stdout] | ------ `values` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/constants/simulation.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const GENOME_SIZE: usize = 500; // the size of genome raw data, unused data is intended [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEAD_CELL_COLOR` is never used [INFO] [stdout] --> src/sim_mod/cell_types.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const DEAD_CELL_COLOR: Color = Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_root_con` is never used [INFO] [stdout] --> src/sim_mod/cell_types.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CellType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_root_con(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_in_grid` and `spawn_random_cell` are never used [INFO] [stdout] --> src/sim_mod/habitat.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Habitat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn is_in_grid(&self, pos: IVec2) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn spawn_random_cell(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_root`, `has_energy`, and `is_seed` are never used [INFO] [stdout] --> src/sim_mod/plant.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Plant { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn new_with_root(root_pos: IVec2) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn has_energy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn is_seed(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_values` is never used [INFO] [stdout] --> src/sim_mod/genome.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Genome { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn parse_values(&mut self, amount: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_response` is never used [INFO] [stdout] --> src/sim_mod/response_cluster.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ResponseCluster { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_response(&self, direction: &str) -> &Response { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `IndexedParallelIterator` [INFO] [stdout] --> src/grid_window/grid_window.rs:5:19 [INFO] [stdout] | [INFO] [stdout] 5 | use rayon::iter::{IndexedParallelIterator}; [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/sim_mod/habitat.rs:67:17 [INFO] [stdout] | [INFO] [stdout] 67 | let mut plant = &mut self.plants[idx]; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/sim_mod/habitat.rs:270:13 [INFO] [stdout] | [INFO] [stdout] 270 | for mut plant in &mut self.plants { [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/sim_mod/plant.rs:149:19 [INFO] [stdout] | [INFO] [stdout] 149 | .map(|x| ResponseCluster::new(genome)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `values` is never read [INFO] [stdout] --> src/sim_mod/genome.rs:20:26 [INFO] [stdout] | [INFO] [stdout] 20 | let mut values = Vec::::with_capacity(amount); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this value is reassigned later and never used [INFO] [stdout] ... [INFO] [stdout] 29 | values = (self.value_counter..self.value_counter + amount) [INFO] [stdout] | ------ `values` is overwritten here before the previous value is read [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GENOME_SIZE` is never used [INFO] [stdout] --> src/constants/simulation.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const GENOME_SIZE: usize = 500; // the size of genome raw data, unused data is intended [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEAD_CELL_COLOR` is never used [INFO] [stdout] --> src/sim_mod/cell_types.rs:13:7 [INFO] [stdout] | [INFO] [stdout] 13 | const DEAD_CELL_COLOR: Color = Color { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_root_con` is never used [INFO] [stdout] --> src/sim_mod/cell_types.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl CellType { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 41 | pub fn get_root_con(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_in_grid` and `spawn_random_cell` are never used [INFO] [stdout] --> src/sim_mod/habitat.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl Habitat { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 182 | fn is_in_grid(&self, pos: IVec2) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 197 | fn spawn_random_cell(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_root`, `has_energy`, and `is_seed` are never used [INFO] [stdout] --> src/sim_mod/plant.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Plant { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn new_with_root(root_pos: IVec2) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn has_energy(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 153 | pub fn is_seed(&self) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `parse_values` is never used [INFO] [stdout] --> src/sim_mod/genome.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl Genome { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 19 | fn parse_values(&mut self, amount: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_response` is never used [INFO] [stdout] --> src/sim_mod/response_cluster.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl ResponseCluster { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn get_response(&self, direction: &str) -> &Response { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.53s [INFO] running `Command { std: "docker" "inspect" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1", kill_on_drop: false }` [INFO] [stdout] 536b0631bf8ebd8a07178275284fac51a21f6793e7106e7e198f7474f95b22f1