[INFO] cloning repository https://github.com/GageHoweTamu/Life-Automata-3D [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GageHoweTamu/Life-Automata-3D" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGageHoweTamu%2FLife-Automata-3D", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGageHoweTamu%2FLife-Automata-3D'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4e02205695aa846c5e80986e56c9019f38ff4dec [INFO] checking GageHoweTamu/Life-Automata-3D against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGageHoweTamu%2FLife-Automata-3D" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GageHoweTamu/Life-Automata-3D on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GageHoweTamu/Life-Automata-3D [INFO] finished tweaking git repo https://github.com/GageHoweTamu/Life-Automata-3D [INFO] tweaked toml for git repo https://github.com/GageHoweTamu/Life-Automata-3D written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/GageHoweTamu/Life-Automata-3D 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ncollide3d v0.32.0 [INFO] [stderr] Downloaded rayon v1.9.0 [INFO] [stderr] Downloaded kiss3d v0.32.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 100689510c8cc0051df106b022268a53475c6476f039095cf6ec5477fa34ab5e [INFO] running `Command { std: "docker" "start" "-a" "100689510c8cc0051df106b022268a53475c6476f039095cf6ec5477fa34ab5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "100689510c8cc0051df106b022268a53475c6476f039095cf6ec5477fa34ab5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "100689510c8cc0051df106b022268a53475c6476f039095cf6ec5477fa34ab5e", kill_on_drop: false }` [INFO] [stdout] 100689510c8cc0051df106b022268a53475c6476f039095cf6ec5477fa34ab5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de53c89b50b941d8e0fe86b0a616d4496f039c413374709cc081647b8e43c6f5 [INFO] running `Command { std: "docker" "start" "-a" "de53c89b50b941d8e0fe86b0a616d4496f039c413374709cc081647b8e43c6f5", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Checking libloading v0.8.3 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Checking bytemuck v1.14.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking xml-rs v0.8.19 [INFO] [stderr] Checking xdg v2.5.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Checking raw-window-handle v0.3.4 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking fixedbitset v0.2.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking petgraph v0.5.1 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking owned_ttf_parser v0.15.2 [INFO] [stderr] Checking rusttype v0.9.3 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking glow v0.7.2 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking ncollide3d v0.32.0 [INFO] [stderr] Checking kiss3d v0.32.0 [INFO] [stderr] Checking life_3d v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `kiss3d::scene::SceneNode` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kiss3d::scene::SceneNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point`, `UnitQuaternion` [INFO] [stdout] --> src/main.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use kiss3d::nalgebra::{Point, Point2, Point3, Translation3, UnitQuaternion, Vector3}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/organism.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entity`, `World` [INFO] [stdout] --> src/organism.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::world::{World, Entity}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cell.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::block::{Block, BlockType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::organism::Organism` [INFO] [stdout] --> src/world.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::organism::Organism; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use world::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kiss3d::scene::SceneNode` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kiss3d::scene::SceneNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point`, `UnitQuaternion` [INFO] [stdout] --> src/main.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use kiss3d::nalgebra::{Point, Point2, Point3, Translation3, UnitQuaternion, Vector3}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/organism.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entity`, `World` [INFO] [stdout] --> src/organism.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::world::{World, Entity}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cell.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::block::{Block, BlockType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::organism::Organism` [INFO] [stdout] --> src/world.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::organism::Organism; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use world::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food_in_sight` [INFO] [stdout] --> src/organism.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | let (danger_in_sight, food_in_sight) = self.get_nearby_organisms(organisms).iter().fold((0, 0), |(danger, food), organism| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_food_in_sight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_world` [INFO] [stdout] --> src/main.rs:41:149 [INFO] [stdout] | [INFO] [stdout] 41 | ...usize, max_blocks: usize, sim_world: &mut World) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food_in_sight` [INFO] [stdout] --> src/organism.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | let (danger_in_sight, food_in_sight) = self.get_nearby_organisms(organisms).iter().fold((0, 0), |(danger, food), organism| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_food_in_sight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `frame_counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut frame_counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_frame_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_organisms` [INFO] [stdout] --> src/main.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let num_organisms = organisms.lock().unwrap().len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_organisms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `framerate` [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let framerate = 1.0 / (now.duration_since(last_instant)).as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_framerate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut new_blocks = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_world` [INFO] [stdout] --> src/main.rs:41:149 [INFO] [stdout] | [INFO] [stdout] 41 | ...usize, max_blocks: usize, sim_world: &mut World) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `look` is never used [INFO] [stdout] --> src/cell.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Eye { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 22 | pub fn look(&self, rotation: i8, world: &World, x: usize, y: usize, z: usize) -> (i32, i32) { // delete this [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shift` and `clone` are never used [INFO] [stdout] --> src/cell.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn shift(&mut self, x: i8, y: i8, z: i8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn clone(&self) -> Cell { // this may not be needed [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block` and `Cell` are never constructed [INFO] [stdout] --> src/world.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Entity { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 8 | Block(Block), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Cell(Cell), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grid`, `width`, `height`, and `depth` are never read [INFO] [stdout] --> src/world.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | pub grid: Vec>>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub depth: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_entity`, `get_entity`, `get_adjacent_entities`, and `clear` are never used [INFO] [stdout] --> src/world.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_entity(&mut self, x: usize, y: usize, z: usize, entity: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_entity(&self, x: usize, y: usize, z: usize) -> Option<&Entity> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_adjacent_entities(&self, x: usize, y: usize, z: usize) -> Vec<((usize, usize, usize), &Entity)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Wall` is never constructed [INFO] [stdout] --> src/block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BlockType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 6 | Food, [INFO] [stdout] 7 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `frame_counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut frame_counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_frame_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_organisms` [INFO] [stdout] --> src/main.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let num_organisms = organisms.lock().unwrap().len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_organisms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `framerate` [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let framerate = 1.0 / (now.duration_since(last_instant)).as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_framerate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut new_blocks = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `look` is never used [INFO] [stdout] --> src/cell.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Eye { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 22 | pub fn look(&self, rotation: i8, world: &World, x: usize, y: usize, z: usize) -> (i32, i32) { // delete this [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shift` and `clone` are never used [INFO] [stdout] --> src/cell.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn shift(&mut self, x: i8, y: i8, z: i8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn clone(&self) -> Cell { // this may not be needed [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block` and `Cell` are never constructed [INFO] [stdout] --> src/world.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Entity { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 8 | Block(Block), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Cell(Cell), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grid`, `width`, `height`, and `depth` are never read [INFO] [stdout] --> src/world.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | pub grid: Vec>>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub depth: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_entity`, `get_entity`, `get_adjacent_entities`, and `clear` are never used [INFO] [stdout] --> src/world.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_entity(&mut self, x: usize, y: usize, z: usize, entity: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_entity(&self, x: usize, y: usize, z: usize) -> Option<&Entity> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_adjacent_entities(&self, x: usize, y: usize, z: usize) -> Vec<((usize, usize, usize), &Entity)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Wall` is never constructed [INFO] [stdout] --> src/block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BlockType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 6 | Food, [INFO] [stdout] 7 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.47s [INFO] running `Command { std: "docker" "inspect" "de53c89b50b941d8e0fe86b0a616d4496f039c413374709cc081647b8e43c6f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de53c89b50b941d8e0fe86b0a616d4496f039c413374709cc081647b8e43c6f5", kill_on_drop: false }` [INFO] [stdout] de53c89b50b941d8e0fe86b0a616d4496f039c413374709cc081647b8e43c6f5 [INFO] checking GageHoweTamu/Life-Automata-3D against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGageHoweTamu%2FLife-Automata-3D" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GageHoweTamu/Life-Automata-3D on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GageHoweTamu/Life-Automata-3D [INFO] finished tweaking git repo https://github.com/GageHoweTamu/Life-Automata-3D [INFO] tweaked toml for git repo https://github.com/GageHoweTamu/Life-Automata-3D written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/GageHoweTamu/Life-Automata-3D 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 548956b01cd86472520a7cfd9c2955c0136318846204e078865cc470f684d796 [INFO] running `Command { std: "docker" "start" "-a" "548956b01cd86472520a7cfd9c2955c0136318846204e078865cc470f684d796", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "548956b01cd86472520a7cfd9c2955c0136318846204e078865cc470f684d796", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "548956b01cd86472520a7cfd9c2955c0136318846204e078865cc470f684d796", kill_on_drop: false }` [INFO] [stdout] 548956b01cd86472520a7cfd9c2955c0136318846204e078865cc470f684d796 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed973c65a0bb8abb1a5c9a7aaa2f7a6232e9348e800facaba3d63c8845056c3c [INFO] running `Command { std: "docker" "start" "-a" "ed973c65a0bb8abb1a5c9a7aaa2f7a6232e9348e800facaba3d63c8845056c3c", kill_on_drop: false }` [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking libloading v0.8.3 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Checking bytemuck v1.14.3 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking nix v0.20.0 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking dlib v0.5.2 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking net2 v0.2.39 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Checking xdg v2.5.2 [INFO] [stderr] Checking xml-rs v0.8.19 [INFO] [stderr] Checking cty v0.2.2 [INFO] [stderr] Checking adler32 v1.2.0 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Checking raw-window-handle v0.4.3 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking mio v0.6.23 [INFO] [stderr] Checking x11-dl v2.21.0 [INFO] [stderr] Checking memmap2 v0.1.0 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking lazycell v1.3.0 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Checking mio-extras v2.0.6 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking raw-window-handle v0.3.4 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking fixedbitset v0.2.0 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking owned_ttf_parser v0.15.2 [INFO] [stderr] Checking gif v0.11.4 [INFO] [stderr] Checking png v0.16.8 [INFO] [stderr] Checking rusttype v0.9.3 [INFO] [stderr] Checking num-iter v0.1.44 [INFO] [stderr] Checking petgraph v0.5.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking andrew v0.3.1 [INFO] [stderr] Checking simba v0.6.0 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking glow v0.7.2 [INFO] [stderr] Checking calloop v0.6.5 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking wayland-commons v0.28.6 [INFO] [stderr] Checking tiff v0.6.1 [INFO] [stderr] Checking image v0.23.14 [INFO] [stderr] Compiling nalgebra-macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking wayland-cursor v0.28.6 [INFO] [stderr] Checking wayland-egl v0.28.6 [INFO] [stderr] Checking nalgebra v0.29.0 [INFO] [stderr] Checking smithay-client-toolkit v0.12.3 [INFO] [stderr] Checking winit v0.24.0 [INFO] [stderr] Checking glutin v0.26.0 [INFO] [stderr] Checking ncollide3d v0.32.0 [INFO] [stderr] Checking kiss3d v0.32.0 [INFO] [stderr] Checking life_3d v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `kiss3d::scene::SceneNode` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kiss3d::scene::SceneNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `kiss3d::scene::SceneNode` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use kiss3d::scene::SceneNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point`, `UnitQuaternion` [INFO] [stdout] --> src/main.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use kiss3d::nalgebra::{Point, Point2, Point3, Translation3, UnitQuaternion, Vector3}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/organism.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Point`, `UnitQuaternion` [INFO] [stdout] --> src/main.rs:6:24 [INFO] [stdout] | [INFO] [stdout] 6 | use kiss3d::nalgebra::{Point, Point2, Point3, Translation3, UnitQuaternion, Vector3}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entity`, `World` [INFO] [stdout] --> src/organism.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::world::{World, Entity}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cell.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::block::{Block, BlockType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::organism::Organism` [INFO] [stdout] --> src/world.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::organism::Organism; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::num` [INFO] [stdout] --> src/organism.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::num; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use world::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Entity`, `World` [INFO] [stdout] --> src/organism.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::world::{World, Entity}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Block` [INFO] [stdout] --> src/cell.rs:3:20 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::block::{Block, BlockType}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::organism::Organism` [INFO] [stdout] --> src/world.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::organism::Organism; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `world::*` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use world::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food_in_sight` [INFO] [stdout] --> src/organism.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | let (danger_in_sight, food_in_sight) = self.get_nearby_organisms(organisms).iter().fold((0, 0), |(danger, food), organism| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_food_in_sight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `food_in_sight` [INFO] [stdout] --> src/organism.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | let (danger_in_sight, food_in_sight) = self.get_nearby_organisms(organisms).iter().fold((0, 0), |(danger, food), organism| { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_food_in_sight` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_world` [INFO] [stdout] --> src/main.rs:41:149 [INFO] [stdout] | [INFO] [stdout] 41 | ...usize, max_blocks: usize, sim_world: &mut World) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `frame_counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut frame_counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_frame_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_organisms` [INFO] [stdout] --> src/main.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let num_organisms = organisms.lock().unwrap().len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_organisms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `framerate` [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let framerate = 1.0 / (now.duration_since(last_instant)).as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_framerate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut new_blocks = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sim_world` [INFO] [stdout] --> src/main.rs:41:149 [INFO] [stdout] | [INFO] [stdout] 41 | ...usize, max_blocks: usize, sim_world: &mut World) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sim_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `look` is never used [INFO] [stdout] --> src/cell.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Eye { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 22 | pub fn look(&self, rotation: i8, world: &World, x: usize, y: usize, z: usize) -> (i32, i32) { // delete this [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `frame_counter` is assigned to, but never used [INFO] [stdout] --> src/main.rs:164:13 [INFO] [stdout] | [INFO] [stdout] 164 | let mut frame_counter = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_frame_counter` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_organisms` [INFO] [stdout] --> src/main.rs:178:13 [INFO] [stdout] | [INFO] [stdout] 178 | let num_organisms = organisms.lock().unwrap().len(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_organisms` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shift` and `clone` are never used [INFO] [stdout] --> src/cell.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn shift(&mut self, x: i8, y: i8, z: i8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn clone(&self) -> Cell { // this may not be needed [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `framerate` [INFO] [stdout] --> src/main.rs:233:13 [INFO] [stdout] | [INFO] [stdout] 233 | let framerate = 1.0 / (now.duration_since(last_instant)).as_secs_f32(); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_framerate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block` and `Cell` are never constructed [INFO] [stdout] --> src/world.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Entity { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 8 | Block(Block), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Cell(Cell), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grid`, `width`, `height`, and `depth` are never read [INFO] [stdout] --> src/world.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | pub grid: Vec>>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub depth: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_entity`, `get_entity`, `get_adjacent_entities`, and `clear` are never used [INFO] [stdout] --> src/world.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_entity(&mut self, x: usize, y: usize, z: usize, entity: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_entity(&self, x: usize, y: usize, z: usize) -> Option<&Entity> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_adjacent_entities(&self, x: usize, y: usize, z: usize) -> Vec<((usize, usize, usize), &Entity)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Wall` is never constructed [INFO] [stdout] --> src/block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BlockType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 6 | Food, [INFO] [stdout] 7 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:142:17 [INFO] [stdout] | [INFO] [stdout] 142 | let mut new_blocks = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `look` is never used [INFO] [stdout] --> src/cell.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Eye { [INFO] [stdout] | -------- method in this implementation [INFO] [stdout] 22 | pub fn look(&self, rotation: i8, world: &World, x: usize, y: usize, z: usize) -> (i32, i32) { // delete this [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `shift` and `clone` are never used [INFO] [stdout] --> src/cell.rs:126:12 [INFO] [stdout] | [INFO] [stdout] 95 | impl Cell { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn shift(&mut self, x: i8, y: i8, z: i8) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn clone(&self) -> Cell { // this may not be needed [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Block` and `Cell` are never constructed [INFO] [stdout] --> src/world.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum Entity { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 8 | Block(Block), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Cell(Cell), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Entity` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `grid`, `width`, `height`, and `depth` are never read [INFO] [stdout] --> src/world.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 13 | pub grid: Vec>>>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 14 | pub width: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | pub height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | pub depth: usize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_entity`, `get_entity`, `get_adjacent_entities`, and `clear` are never used [INFO] [stdout] --> src/world.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl World { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn set_entity(&mut self, x: usize, y: usize, z: usize, entity: Option) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn get_entity(&self, x: usize, y: usize, z: usize) -> Option<&Entity> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn get_adjacent_entities(&self, x: usize, y: usize, z: usize) -> Vec<((usize, usize, usize), &Entity)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn clear(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Wall` is never constructed [INFO] [stdout] --> src/block.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub enum BlockType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 6 | Food, [INFO] [stdout] 7 | Wall, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BlockType` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 46.47s [INFO] running `Command { std: "docker" "inspect" "ed973c65a0bb8abb1a5c9a7aaa2f7a6232e9348e800facaba3d63c8845056c3c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed973c65a0bb8abb1a5c9a7aaa2f7a6232e9348e800facaba3d63c8845056c3c", kill_on_drop: false }` [INFO] [stdout] ed973c65a0bb8abb1a5c9a7aaa2f7a6232e9348e800facaba3d63c8845056c3c