[INFO] cloning repository https://github.com/Marco-Masera/silly_cell_simulation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Marco-Masera/silly_cell_simulation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarco-Masera%2Fsilly_cell_simulation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarco-Masera%2Fsilly_cell_simulation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d7b7fc71bbcf7eeb35a65c3920747d3a295f8385 [INFO] building Marco-Masera/silly_cell_simulation against master#f5209000832c9d3bc29c91f4daef4ca9f28dc797+target=wasm32-wasip1 for pr-149868 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMarco-Masera%2Fsilly_cell_simulation" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Marco-Masera/silly_cell_simulation [INFO] finished tweaking git repo https://github.com/Marco-Masera/silly_cell_simulation [INFO] tweaked toml for git repo https://github.com/Marco-Masera/silly_cell_simulation written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Marco-Masera/silly_cell_simulation on toolchain f5209000832c9d3bc29c91f4daef4ca9f28dc797 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Marco-Masera/silly_cell_simulation 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" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa26ba8b7d46ef0bee954dbe6fc149c060166f877f55d0413d29dbc367d4ef75 [INFO] running `Command { std: "docker" "start" "-a" "fa26ba8b7d46ef0bee954dbe6fc149c060166f877f55d0413d29dbc367d4ef75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa26ba8b7d46ef0bee954dbe6fc149c060166f877f55d0413d29dbc367d4ef75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa26ba8b7d46ef0bee954dbe6fc149c060166f877f55d0413d29dbc367d4ef75", kill_on_drop: false }` [INFO] [stdout] fa26ba8b7d46ef0bee954dbe6fc149c060166f877f55d0413d29dbc367d4ef75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "build" "--frozen" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] aee6db4ec6013dc9a57a63622db5106b83bf781e6e13babba67204b880c895bc [INFO] running `Command { std: "docker" "start" "-a" "aee6db4ec6013dc9a57a63622db5106b83bf781e6e13babba67204b880c895bc", kill_on_drop: false }` [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bytemuck v1.23.1 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling fontdue v0.9.3 [INFO] [stderr] Compiling image v0.24.9 [INFO] [stderr] Compiling macroquad v0.4.14 [INFO] [stderr] Compiling cellsim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `WHITE` and `draw_ellipse` [INFO] [stdout] --> src/grid.rs:1:53 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{color::{BLACK, GRAY, GREEN, ORANGE, WHITE}, prelude::rand, shapes::{draw_circle, draw_ellipse, draw_line, draw_rectan... [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 imports: `CELL_MIN_RADIUS_REPRODUCTION`, `CELL_MIN_RADIUS`, `INITIAL_CELLS`, and `MIN_CELLS` [INFO] [stdout] --> src/grid.rs:3:50 [INFO] [stdout] | [INFO] [stdout] 3 | ...E, CELL_MIN_RADIUS, CELL_MIN_RADIUS_REPRODUCTION, FOOD_RADIUS, GRID_CELL_SIZE, GRID_SIZE_H, GRID_SIZE_W, INITIAL_CELLS, INITIAL_CELL_RADIUS, MIN_CELLS, P... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:69:16 [INFO] [stdout] | [INFO] [stdout] 69 | if (self.grid_matrice[i][j][k].radius <= 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 69 - if (self.grid_matrice[i][j][k].radius <= 0.0) { [INFO] [stdout] 69 + if self.grid_matrice[i][j][k].radius <= 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | if (self.grid_matrice[i2][j2][l].radius <= 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - if (self.grid_matrice[i2][j2][l].radius <= 0.0) { [INFO] [stdout] 74 + if self.grid_matrice[i2][j2][l].radius <= 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | if (UPDATE_NEIGHBORS){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if (UPDATE_NEIGHBORS){ [INFO] [stdout] 88 + if UPDATE_NEIGHBORS { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | if (!self.grid_matrice[i2][j2][l].is_hidden){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if (!self.grid_matrice[i2][j2][l].is_hidden){ [INFO] [stdout] 91 + if !self.grid_matrice[i2][j2][l].is_hidden { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | if (!self.grid_matrice[i][j][k].is_hidden){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (!self.grid_matrice[i][j][k].is_hidden){ [INFO] [stdout] 98 + if !self.grid_matrice[i][j][k].is_hidden { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | if (cell.y > GRID_SIZE_H / 2.0 - 4.0 - cell.radius && cell.y <= GRID_SIZE_H / 2.0 + 4.0 - cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - if (cell.y > GRID_SIZE_H / 2.0 - 4.0 - cell.radius && cell.y <= GRID_SIZE_H / 2.0 + 4.0 - cell.radius) { [INFO] [stdout] 159 + if cell.y > GRID_SIZE_H / 2.0 - 4.0 - cell.radius && cell.y <= GRID_SIZE_H / 2.0 + 4.0 - cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | ... } else if (cell.y < GRID_SIZE_H / 2.0 + 4.0 + cell.radius && cell.y >= GRID_SIZE_H / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 162 - } else if (cell.y < GRID_SIZE_H / 2.0 + 4.0 + cell.radius && cell.y >= GRID_SIZE_H / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] 162 + } else if cell.y < GRID_SIZE_H / 2.0 + 4.0 + cell.radius && cell.y >= GRID_SIZE_H / 2.0 - 4.0 + cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:168:28 [INFO] [stdout] | [INFO] [stdout] 168 | if (cell.x > GRID_SIZE_W / 2.0 - 4.0 - cell.radius && cell.x <= GRID_SIZE_W / 2.0 + 1.0 - cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (cell.x > GRID_SIZE_W / 2.0 - 4.0 - cell.radius && cell.x <= GRID_SIZE_W / 2.0 + 1.0 - cell.radius) { [INFO] [stdout] 168 + if cell.x > GRID_SIZE_W / 2.0 - 4.0 - cell.radius && cell.x <= GRID_SIZE_W / 2.0 + 1.0 - cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:171:35 [INFO] [stdout] | [INFO] [stdout] 171 | ... } else if (cell.x < GRID_SIZE_W / 2.0 + 4.0 + cell.radius && cell.x >= GRID_SIZE_W / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 171 - } else if (cell.x < GRID_SIZE_W / 2.0 + 4.0 + cell.radius && cell.x >= GRID_SIZE_W / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] 171 + } else if cell.x < GRID_SIZE_W / 2.0 + 4.0 + cell.radius && cell.x >= GRID_SIZE_W / 2.0 - 4.0 + cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:176:24 [INFO] [stdout] | [INFO] [stdout] 176 | if (bounce_horizontal*cell.speed_x < 0.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - if (bounce_horizontal*cell.speed_x < 0.0){ [INFO] [stdout] 176 + if bounce_horizontal*cell.speed_x < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 181 | if (bounce_vertical*cell.speed_y < 0.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - if (bounce_vertical*cell.speed_y < 0.0){ [INFO] [stdout] 181 + if bounce_vertical*cell.speed_y < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:197:28 [INFO] [stdout] | [INFO] [stdout] 197 | if (cell.x > obstacle.x - obstacle.width / 2.0 && cell.x < obstacle.x + obstacle.width / 2.0 && [INFO] [stdout] | ^ [INFO] [stdout] 198 | cell.y > obstacle.y - obstacle.height / 2.0 && cell.y < obstacle.y + obstacle.height / 2.0) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 197 ~ if cell.x > obstacle.x - obstacle.width / 2.0 && cell.x < obstacle.x + obstacle.width / 2.0 && [INFO] [stdout] 198 ~ cell.y > obstacle.y - obstacle.height / 2.0 && cell.y < obstacle.y + obstacle.height / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:238:36 [INFO] [stdout] | [INFO] [stdout] 238 | ... if (cell.mass > CELL_MAX_VOLUME) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - if (cell.mass > CELL_MAX_VOLUME) { [INFO] [stdout] 238 + if cell.mass > CELL_MAX_VOLUME { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:257:20 [INFO] [stdout] | [INFO] [stdout] 257 | if (i < self.grid_matrice.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 257 - if (i < self.grid_matrice.len() - 1) { [INFO] [stdout] 257 + if i < self.grid_matrice.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | if (j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 260 - if (j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] 260 + if j < self.grid_matrice[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:263:20 [INFO] [stdout] | [INFO] [stdout] 263 | if (i < self.grid_matrice.len() - 1 && j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 263 - if (i < self.grid_matrice.len() - 1 && j > 0) { [INFO] [stdout] 263 + if i < self.grid_matrice.len() - 1 && j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 266 | if (i < self.grid_matrice.len() - 1 && j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (i < self.grid_matrice.len() - 1 && j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] 266 + if i < self.grid_matrice.len() - 1 && j < self.grid_matrice[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:344:24 [INFO] [stdout] | [INFO] [stdout] 344 | if (cell.y < GRID_SIZE_H / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 344 - if (cell.y < GRID_SIZE_H / 2.0) { [INFO] [stdout] 344 + if cell.y < GRID_SIZE_H / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 351 | if (cell.x < GRID_SIZE_W / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 351 - if (cell.x < GRID_SIZE_W / 2.0) { [INFO] [stdout] 351 + if cell.x < GRID_SIZE_W / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:359:24 [INFO] [stdout] | [INFO] [stdout] 359 | if (cell.x > GRID_SIZE_W / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 359 - if (cell.x > GRID_SIZE_W / 2.0) { [INFO] [stdout] 359 + if cell.x > GRID_SIZE_W / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:363:28 [INFO] [stdout] | [INFO] [stdout] 363 | if (cell.y > GRID_SIZE_H / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 363 - if (cell.y > GRID_SIZE_H / 2.0) { [INFO] [stdout] 363 + if cell.y > GRID_SIZE_H / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | if (self.obstacles[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 442 - if (self.obstacles[0]) { [INFO] [stdout] 442 + if self.obstacles[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:445:12 [INFO] [stdout] | [INFO] [stdout] 445 | if (self.obstacles[1]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 445 - if (self.obstacles[1]) { [INFO] [stdout] 445 + if self.obstacles[1] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | if (self.obstacles[2]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 448 - if (self.obstacles[2]) { [INFO] [stdout] 448 + if self.obstacles[2] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | if (self.obstacles[3]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 451 - if (self.obstacles[3]) { [INFO] [stdout] 451 + if self.obstacles[3] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/grid.rs:311:25 [INFO] [stdout] | [INFO] [stdout] 311 | for i in p.len()..PERCEPTION_N_CELLS { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Food` is more private than the item `Grid::add_food` [INFO] [stdout] --> src/grid.rs:406:5 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn add_food(&mut self, food: Food) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Grid::add_food` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Food` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/grid.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | struct Food { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/grid.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Grid { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 43 | width: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | height: f32, [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 `get_cells_perceptions` and `set_cell_decisions` are never used [INFO] [stdout] --> src/grid.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Grid { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn get_cells_perceptions(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn set_cell_decisions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_CELLS` is never used [INFO] [stdout] --> src/params.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MIN_CELLS: usize = 500; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELL_MIN_RADIUS` is never used [INFO] [stdout] --> src/params.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const CELL_MIN_RADIUS: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELL_MIN_RADIUS_REPRODUCTION` is never used [INFO] [stdout] --> src/params.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const CELL_MIN_RADIUS_REPRODUCTION: f32 = 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `UPDATE_NEIGHBORS` should have a snake case name [INFO] [stdout] --> src/grid.rs:67:78 [INFO] [stdout] | [INFO] [stdout] 67 | fn check_collisions(&mut self, i: usize, j: usize, i2: usize, j2: usize, UPDATE_NEIGHBORS: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_neighbors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `UPDATE_NEIGHBORS` should have a snake case name [INFO] [stdout] --> src/grid.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let UPDATE_NEIGHBORS = true; //TODO: set to true only last update before running NN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_neighbors` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.38s [INFO] running `Command { std: "docker" "inspect" "aee6db4ec6013dc9a57a63622db5106b83bf781e6e13babba67204b880c895bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aee6db4ec6013dc9a57a63622db5106b83bf781e6e13babba67204b880c895bc", kill_on_drop: false }` [INFO] [stdout] aee6db4ec6013dc9a57a63622db5106b83bf781e6e13babba67204b880c895bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+f5209000832c9d3bc29c91f4daef4ca9f28dc797" "test" "--frozen" "--no-run" "--message-format=json" "--target" "wasm32-wasip1", kill_on_drop: false }` [INFO] [stdout] 2b7554749765fe10b01f53df4a2ccc2d1e678a22b095228f345130860e168fee [INFO] running `Command { std: "docker" "start" "-a" "2b7554749765fe10b01f53df4a2ccc2d1e678a22b095228f345130860e168fee", kill_on_drop: false }` [INFO] [stderr] Compiling cellsim v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `WHITE` and `draw_ellipse` [INFO] [stdout] --> src/grid.rs:1:53 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{color::{BLACK, GRAY, GREEN, ORANGE, WHITE}, prelude::rand, shapes::{draw_circle, draw_ellipse, draw_line, draw_rectan... [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 imports: `CELL_MIN_RADIUS_REPRODUCTION`, `CELL_MIN_RADIUS`, `INITIAL_CELLS`, and `MIN_CELLS` [INFO] [stdout] --> src/grid.rs:3:50 [INFO] [stdout] | [INFO] [stdout] 3 | ...E, CELL_MIN_RADIUS, CELL_MIN_RADIUS_REPRODUCTION, FOOD_RADIUS, GRID_CELL_SIZE, GRID_SIZE_H, GRID_SIZE_W, INITIAL_CELLS, INITIAL_CELL_RADIUS, MIN_CELLS, P... [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:69:16 [INFO] [stdout] | [INFO] [stdout] 69 | if (self.grid_matrice[i][j][k].radius <= 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 69 - if (self.grid_matrice[i][j][k].radius <= 0.0) { [INFO] [stdout] 69 + if self.grid_matrice[i][j][k].radius <= 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:74:20 [INFO] [stdout] | [INFO] [stdout] 74 | if (self.grid_matrice[i2][j2][l].radius <= 0.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - if (self.grid_matrice[i2][j2][l].radius <= 0.0) { [INFO] [stdout] 74 + if self.grid_matrice[i2][j2][l].radius <= 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:88:20 [INFO] [stdout] | [INFO] [stdout] 88 | if (UPDATE_NEIGHBORS){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 88 - if (UPDATE_NEIGHBORS){ [INFO] [stdout] 88 + if UPDATE_NEIGHBORS { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:91:28 [INFO] [stdout] | [INFO] [stdout] 91 | if (!self.grid_matrice[i2][j2][l].is_hidden){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 91 - if (!self.grid_matrice[i2][j2][l].is_hidden){ [INFO] [stdout] 91 + if !self.grid_matrice[i2][j2][l].is_hidden { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:98:28 [INFO] [stdout] | [INFO] [stdout] 98 | if (!self.grid_matrice[i][j][k].is_hidden){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 98 - if (!self.grid_matrice[i][j][k].is_hidden){ [INFO] [stdout] 98 + if !self.grid_matrice[i][j][k].is_hidden { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:159:28 [INFO] [stdout] | [INFO] [stdout] 159 | if (cell.y > GRID_SIZE_H / 2.0 - 4.0 - cell.radius && cell.y <= GRID_SIZE_H / 2.0 + 4.0 - cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 159 - if (cell.y > GRID_SIZE_H / 2.0 - 4.0 - cell.radius && cell.y <= GRID_SIZE_H / 2.0 + 4.0 - cell.radius) { [INFO] [stdout] 159 + if cell.y > GRID_SIZE_H / 2.0 - 4.0 - cell.radius && cell.y <= GRID_SIZE_H / 2.0 + 4.0 - cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:162:35 [INFO] [stdout] | [INFO] [stdout] 162 | ... } else if (cell.y < GRID_SIZE_H / 2.0 + 4.0 + cell.radius && cell.y >= GRID_SIZE_H / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 162 - } else if (cell.y < GRID_SIZE_H / 2.0 + 4.0 + cell.radius && cell.y >= GRID_SIZE_H / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] 162 + } else if cell.y < GRID_SIZE_H / 2.0 + 4.0 + cell.radius && cell.y >= GRID_SIZE_H / 2.0 - 4.0 + cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:168:28 [INFO] [stdout] | [INFO] [stdout] 168 | if (cell.x > GRID_SIZE_W / 2.0 - 4.0 - cell.radius && cell.x <= GRID_SIZE_W / 2.0 + 1.0 - cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 168 - if (cell.x > GRID_SIZE_W / 2.0 - 4.0 - cell.radius && cell.x <= GRID_SIZE_W / 2.0 + 1.0 - cell.radius) { [INFO] [stdout] 168 + if cell.x > GRID_SIZE_W / 2.0 - 4.0 - cell.radius && cell.x <= GRID_SIZE_W / 2.0 + 1.0 - cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:171:35 [INFO] [stdout] | [INFO] [stdout] 171 | ... } else if (cell.x < GRID_SIZE_W / 2.0 + 4.0 + cell.radius && cell.x >= GRID_SIZE_W / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 171 - } else if (cell.x < GRID_SIZE_W / 2.0 + 4.0 + cell.radius && cell.x >= GRID_SIZE_W / 2.0 - 4.0 + cell.radius) { [INFO] [stdout] 171 + } else if cell.x < GRID_SIZE_W / 2.0 + 4.0 + cell.radius && cell.x >= GRID_SIZE_W / 2.0 - 4.0 + cell.radius { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:176:24 [INFO] [stdout] | [INFO] [stdout] 176 | if (bounce_horizontal*cell.speed_x < 0.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - if (bounce_horizontal*cell.speed_x < 0.0){ [INFO] [stdout] 176 + if bounce_horizontal*cell.speed_x < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 181 | if (bounce_vertical*cell.speed_y < 0.0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 181 - if (bounce_vertical*cell.speed_y < 0.0){ [INFO] [stdout] 181 + if bounce_vertical*cell.speed_y < 0.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:197:28 [INFO] [stdout] | [INFO] [stdout] 197 | if (cell.x > obstacle.x - obstacle.width / 2.0 && cell.x < obstacle.x + obstacle.width / 2.0 && [INFO] [stdout] | ^ [INFO] [stdout] 198 | cell.y > obstacle.y - obstacle.height / 2.0 && cell.y < obstacle.y + obstacle.height / 2.0) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 197 ~ if cell.x > obstacle.x - obstacle.width / 2.0 && cell.x < obstacle.x + obstacle.width / 2.0 && [INFO] [stdout] 198 ~ cell.y > obstacle.y - obstacle.height / 2.0 && cell.y < obstacle.y + obstacle.height / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:238:36 [INFO] [stdout] | [INFO] [stdout] 238 | ... if (cell.mass > CELL_MAX_VOLUME) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - if (cell.mass > CELL_MAX_VOLUME) { [INFO] [stdout] 238 + if cell.mass > CELL_MAX_VOLUME { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:257:20 [INFO] [stdout] | [INFO] [stdout] 257 | if (i < self.grid_matrice.len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 257 - if (i < self.grid_matrice.len() - 1) { [INFO] [stdout] 257 + if i < self.grid_matrice.len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:260:20 [INFO] [stdout] | [INFO] [stdout] 260 | if (j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 260 - if (j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] 260 + if j < self.grid_matrice[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:263:20 [INFO] [stdout] | [INFO] [stdout] 263 | if (i < self.grid_matrice.len() - 1 && j > 0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 263 - if (i < self.grid_matrice.len() - 1 && j > 0) { [INFO] [stdout] 263 + if i < self.grid_matrice.len() - 1 && j > 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:266:20 [INFO] [stdout] | [INFO] [stdout] 266 | if (i < self.grid_matrice.len() - 1 && j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 266 - if (i < self.grid_matrice.len() - 1 && j < self.grid_matrice[i].len() - 1) { [INFO] [stdout] 266 + if i < self.grid_matrice.len() - 1 && j < self.grid_matrice[i].len() - 1 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:344:24 [INFO] [stdout] | [INFO] [stdout] 344 | if (cell.y < GRID_SIZE_H / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 344 - if (cell.y < GRID_SIZE_H / 2.0) { [INFO] [stdout] 344 + if cell.y < GRID_SIZE_H / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:351:24 [INFO] [stdout] | [INFO] [stdout] 351 | if (cell.x < GRID_SIZE_W / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 351 - if (cell.x < GRID_SIZE_W / 2.0) { [INFO] [stdout] 351 + if cell.x < GRID_SIZE_W / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:359:24 [INFO] [stdout] | [INFO] [stdout] 359 | if (cell.x > GRID_SIZE_W / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 359 - if (cell.x > GRID_SIZE_W / 2.0) { [INFO] [stdout] 359 + if cell.x > GRID_SIZE_W / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:363:28 [INFO] [stdout] | [INFO] [stdout] 363 | if (cell.y > GRID_SIZE_H / 2.0) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 363 - if (cell.y > GRID_SIZE_H / 2.0) { [INFO] [stdout] 363 + if cell.y > GRID_SIZE_H / 2.0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:442:12 [INFO] [stdout] | [INFO] [stdout] 442 | if (self.obstacles[0]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 442 - if (self.obstacles[0]) { [INFO] [stdout] 442 + if self.obstacles[0] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:445:12 [INFO] [stdout] | [INFO] [stdout] 445 | if (self.obstacles[1]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 445 - if (self.obstacles[1]) { [INFO] [stdout] 445 + if self.obstacles[1] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:448:12 [INFO] [stdout] | [INFO] [stdout] 448 | if (self.obstacles[2]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 448 - if (self.obstacles[2]) { [INFO] [stdout] 448 + if self.obstacles[2] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/grid.rs:451:12 [INFO] [stdout] | [INFO] [stdout] 451 | if (self.obstacles[3]) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 451 - if (self.obstacles[3]) { [INFO] [stdout] 451 + if self.obstacles[3] { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/grid.rs:311:25 [INFO] [stdout] | [INFO] [stdout] 311 | for i in p.len()..PERCEPTION_N_CELLS { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Food` is more private than the item `Grid::add_food` [INFO] [stdout] --> src/grid.rs:406:5 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn add_food(&mut self, food: Food) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Grid::add_food` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `Food` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/grid.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 27 | struct Food { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `width` and `height` are never read [INFO] [stdout] --> src/grid.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Grid { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 43 | width: f32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 44 | height: f32, [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 `get_cells_perceptions` and `set_cell_decisions` are never used [INFO] [stdout] --> src/grid.rs:286:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Grid { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 286 | pub fn get_cells_perceptions(&self){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 385 | pub fn set_cell_decisions(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MIN_CELLS` is never used [INFO] [stdout] --> src/params.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const MIN_CELLS: usize = 500; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELL_MIN_RADIUS` is never used [INFO] [stdout] --> src/params.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub const CELL_MIN_RADIUS: f32 = 0.5; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `CELL_MIN_RADIUS_REPRODUCTION` is never used [INFO] [stdout] --> src/params.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 12 | pub const CELL_MIN_RADIUS_REPRODUCTION: f32 = 2.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `UPDATE_NEIGHBORS` should have a snake case name [INFO] [stdout] --> src/grid.rs:67:78 [INFO] [stdout] | [INFO] [stdout] 67 | fn check_collisions(&mut self, i: usize, j: usize, i2: usize, j2: usize, UPDATE_NEIGHBORS: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_neighbors` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `UPDATE_NEIGHBORS` should have a snake case name [INFO] [stdout] --> src/grid.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let UPDATE_NEIGHBORS = true; //TODO: set to true only last update before running NN; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `update_neighbors` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "2b7554749765fe10b01f53df4a2ccc2d1e678a22b095228f345130860e168fee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b7554749765fe10b01f53df4a2ccc2d1e678a22b095228f345130860e168fee", kill_on_drop: false }` [INFO] [stdout] 2b7554749765fe10b01f53df4a2ccc2d1e678a22b095228f345130860e168fee