[INFO] cloning repository https://github.com/SpaceKing81/brain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SpaceKing81/brain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpaceKing81%2Fbrain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpaceKing81%2Fbrain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 60e15fbc286a895189215c5f7d22334f0441efdf [INFO] checking SpaceKing81/brain against eca445e5ae4a6679cc27d3a09106ce245e13a5a6 for pr-162478 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSpaceKing81%2Fbrain" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SpaceKing81/brain [INFO] finished tweaking git repo https://github.com/SpaceKing81/brain [INFO] tweaked toml for git repo https://github.com/SpaceKing81/brain written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SpaceKing81/brain 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 git repo https://github.com/SpaceKing81/brain 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] Downloading crates ... [INFO] [stderr] Downloaded miniquad v0.4.6 [INFO] [stderr] Downloaded macroquad v0.4.13 [INFO] [stderr] Downloaded fontdue v0.7.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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] d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9 [INFO] running `Command { std: "docker" "start" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9", 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" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9", 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" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9" "/opt/rustwide/cargo-home/bin/cargo" "+eca445e5ae4a6679cc27d3a09106ce245e13a5a6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling miniquad v0.4.6 [INFO] [stderr] Checking bytemuck v1.21.0 [INFO] [stderr] Checking miniz_oxide v0.8.4 [INFO] [stderr] Checking ttf-parser v0.15.2 [INFO] [stderr] Compiling macroquad_macro v0.1.8 [INFO] [stderr] Checking glam v0.27.0 [INFO] [stderr] Checking quad-rand v0.2.3 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking flate2 v1.0.35 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking fontdue v0.7.3 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking macroquad v0.4.13 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking digital_brain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Read` and `sink` [INFO] [stdout] --> src/brain.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufReader, BufWriter, Read, sink}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize` [INFO] [stdout] --> src/brain.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use bincode::{self, deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `screen_height` and `screen_width` [INFO] [stdout] --> src/brain.rs:12:44 [INFO] [stdout] | [INFO] [stdout] 12 | color::{GRAY}, rand, shapes::*, window::{screen_height, screen_width} [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/brain.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | axon::Axon, consts::{self, *}, internal_consts::{self, *}, neuron::{self, Neuron}, pos::Pos, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `GRAY` [INFO] [stdout] --> src/axon.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::{rand, color::{Color,GRAY}}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AXON_INPUT_COLOR`, `AXON_NEG_COLOR`, and `AXON_POS_COLOR` [INFO] [stdout] --> src/axon.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{internal_consts::{AXON_INPUT_COLOR, AXON_NEG_COLOR, AXON_POS_COLOR}, MAX_HAPPY_VALUE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Read` and `sink` [INFO] [stdout] --> src/brain.rs:5:37 [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::{BufReader, BufWriter, Read, sink}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `deserialize` [INFO] [stdout] --> src/brain.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use bincode::{self, deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `screen_height` and `screen_width` [INFO] [stdout] --> src/brain.rs:12:44 [INFO] [stdout] | [INFO] [stdout] 12 | color::{GRAY}, rand, shapes::*, window::{screen_height, screen_width} [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `self` and `self` [INFO] [stdout] --> src/brain.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 17 | axon::Axon, consts::{self, *}, internal_consts::{self, *}, neuron::{self, Neuron}, pos::Pos, [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Color` and `GRAY` [INFO] [stdout] --> src/axon.rs:2:31 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::{rand, color::{Color,GRAY}}; [INFO] [stdout] | ^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AXON_INPUT_COLOR`, `AXON_NEG_COLOR`, and `AXON_POS_COLOR` [INFO] [stdout] --> src/axon.rs:5:31 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{internal_consts::{AXON_INPUT_COLOR, AXON_NEG_COLOR, AXON_POS_COLOR}, MAX_HAPPY_VALUE}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/brain.rs:239:7 [INFO] [stdout] | [INFO] [stdout] 238 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 239 | for neuron_id in neurons_to_remove {self.remove_neuron(neuron_id);} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/brain.rs:239:7 [INFO] [stdout] | [INFO] [stdout] 238 | todo!(); [INFO] [stdout] | ------- any code following this expression is unreachable [INFO] [stdout] 239 | for neuron_id in neurons_to_remove {self.remove_neuron(neuron_id);} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `neuron_id` [INFO] [stdout] --> src/brain.rs:445:36 [INFO] [stdout] | [INFO] [stdout] 445 | fn find_happier_space(&mut self, neuron_id: u32) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_neuron_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `neuron_id` [INFO] [stdout] --> src/brain.rs:445:36 [INFO] [stdout] | [INFO] [stdout] 445 | fn find_happier_space(&mut self, neuron_id: u32) { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_neuron_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `neuron_new` [INFO] [stdout] --> src/brain.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | let neuron_new = Neuron::new_with_time(self.displayed, self.clock); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_neuron_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `neuron_new` [INFO] [stdout] --> src/brain.rs:480:9 [INFO] [stdout] | [INFO] [stdout] 480 | let neuron_new = Neuron::new_with_time(self.displayed, self.clock); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_neuron_new` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neuron.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neuron.rs:192:11 [INFO] [stdout] | [INFO] [stdout] 192 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neuron.rs:183:11 [INFO] [stdout] | [INFO] [stdout] 183 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/neuron.rs:192:11 [INFO] [stdout] | [INFO] [stdout] 192 | for i in 0..6 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_SIZE` is never used [INFO] [stdout] --> src/internal_consts.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GRID_SIZE: f32 = 40.0; [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 `GRAVITY` is never used [INFO] [stdout] --> src/internal_consts.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const GRAVITY: f32 = 0.01; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVITY_SUFRACE` is never used [INFO] [stdout] --> src/internal_consts.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const GRAVITY_SUFRACE: f32 = 50.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ELECTRIC_SUFRACE` is never used [INFO] [stdout] --> src/internal_consts.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ELECTRIC_SUFRACE: f32 = 11.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COULOMB` is never used [INFO] [stdout] --> src/internal_consts.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const COULOMB: f32 = 1000.0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPRING` is never used [INFO] [stdout] --> src/internal_consts.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const SPRING:f32 = 1.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPRING_NORMAL` is never used [INFO] [stdout] --> src/internal_consts.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const SPRING_NORMAL:f32 = 20.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIME_STEP` is never used [INFO] [stdout] --> src/internal_consts.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const TIME_STEP: f32 = 0.01; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fire_input` is never used [INFO] [stdout] --> src/axon.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 22 | impl Axon { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn fire_input(&mut self, delta_t:u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_data` and `roll_save_check` are never used [INFO] [stdout] --> src/neuron.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 63 | impl Neuron { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn new_with_data( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn roll_save_check(&self, output:bool) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_input` is never used [INFO] [stdout] --> src/neuron.rs:258:10 [INFO] [stdout] | [INFO] [stdout] 242 | impl Neuron { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn has_input(&self, input_ids: &HashSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRID_SIZE` is never used [INFO] [stdout] --> src/internal_consts.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub const GRID_SIZE: f32 = 40.0; [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 `GRAVITY` is never used [INFO] [stdout] --> src/internal_consts.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub const GRAVITY: f32 = 0.01; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GRAVITY_SUFRACE` is never used [INFO] [stdout] --> src/internal_consts.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub const GRAVITY_SUFRACE: f32 = 50.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ELECTRIC_SUFRACE` is never used [INFO] [stdout] --> src/internal_consts.rs:6:11 [INFO] [stdout] | [INFO] [stdout] 6 | pub const ELECTRIC_SUFRACE: f32 = 11.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COULOMB` is never used [INFO] [stdout] --> src/internal_consts.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub const COULOMB: f32 = 1000.0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPRING` is never used [INFO] [stdout] --> src/internal_consts.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | pub const SPRING:f32 = 1.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SPRING_NORMAL` is never used [INFO] [stdout] --> src/internal_consts.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | pub const SPRING_NORMAL:f32 = 20.0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TIME_STEP` is never used [INFO] [stdout] --> src/internal_consts.rs:10:11 [INFO] [stdout] | [INFO] [stdout] 10 | pub const TIME_STEP: f32 = 0.01; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `fire_input` is never used [INFO] [stdout] --> src/axon.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 22 | impl Axon { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn fire_input(&mut self, delta_t:u32) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new_with_data` and `roll_save_check` are never used [INFO] [stdout] --> src/neuron.rs:96:10 [INFO] [stdout] | [INFO] [stdout] 63 | impl Neuron { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 96 | pub fn new_with_data( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 139 | pub fn roll_save_check(&self, output:bool) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `has_input` is never used [INFO] [stdout] --> src/neuron.rs:258:10 [INFO] [stdout] | [INFO] [stdout] 242 | impl Neuron { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 258 | pub fn has_input(&self, input_ids: &HashSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `prelude::*` [INFO] [stdout] --> examples/load.rs:1:17 [INFO] [stdout] | [INFO] [stdout] 1 | use macroquad::{prelude::*}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `digital_brain::Spirion` [INFO] [stdout] --> examples/load.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use digital_brain::Spirion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/load.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | let (mut brain,_,_) = digital_brain::Spirion::build_from_bin( [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/load.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 11 | brain.save_as_bin("spirion_load_test.bin"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 11 | let _ = brain.save_as_bin("spirion_load_test.bin"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `BRAIN_SIZE` is never used [INFO] [stdout] --> examples/pong.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const BRAIN_SIZE:Option = Some(3000); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/pong.rs:61:7 [INFO] [stdout] | [INFO] [stdout] 61 | brain.save_as_bin("spirion_pong"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 61 | let _ = brain.save_as_bin("spirion_pong"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/just_chatting.rs:103:9 [INFO] [stdout] | [INFO] [stdout] 103 | let mut input = "0"; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/just_chatting.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 133 | brain.save_as_bin("Spirion_speaking.bin"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 133 | let _ = brain.save_as_bin("Spirion_speaking.bin"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::clone` [INFO] [stdout] --> examples/normal_snake.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use std::clone; [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: `collections::storage::get` and `rand::RandGenerator` [INFO] [stdout] --> examples/normal_snake.rs:32:27 [INFO] [stdout] | [INFO] [stdout] 32 | use macroquad::{prelude::{collections::storage::get, *}, rand::RandGenerator}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `GAME_LEVEL` is never used [INFO] [stdout] --> examples/normal_snake.rs:21:7 [INFO] [stdout] | [INFO] [stdout] 21 | const GAME_LEVEL:f32 = 1.0; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `ZERO` is never used [INFO] [stdout] --> examples/normal_snake.rs:147:9 [INFO] [stdout] | [INFO] [stdout] 122 | impl Coords { [INFO] [stdout] | ----------- associated constant in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | const ZERO:Coords = Coords {row:0, col:0}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pixle_to_grid` is never used [INFO] [stdout] --> examples/normal_snake.rs:387:6 [INFO] [stdout] | [INFO] [stdout] 230 | impl SnakeGame { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 387 | fn pixle_to_grid(&self, pixle:f32) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/normal_snake.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 353 | new.set(in_row as usize, in_col as usize, value); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 353 | let _ = new.set(in_row as usize, in_col as usize, value); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> examples/normal_snake.rs:382:7 [INFO] [stdout] | [INFO] [stdout] 382 | self.current_frame.set(i.row, i.col, iter * intervel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 382 | let _ = self.current_frame.set(i.row, i.col, iter * intervel); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.87s [INFO] running `Command { std: "docker" "inspect" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9", kill_on_drop: false }` [INFO] [stdout] d6ebd0cd6e2c64bf05c6e5aea7b62ec024d162fe1339079459d84d6a45ad44a9