[INFO] cloning repository https://github.com/CarsonBurke/ml_battle_snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CarsonBurke/ml_battle_snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarsonBurke%2Fml_battle_snake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarsonBurke%2Fml_battle_snake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 279258125063568c67f479959def1384f3266e7b [INFO] checking CarsonBurke/ml_battle_snake against master#092a284ba0421695f2032c947765429fd7095796 for pr-139763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCarsonBurke%2Fml_battle_snake" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CarsonBurke/ml_battle_snake on toolchain 092a284ba0421695f2032c947765429fd7095796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+092a284ba0421695f2032c947765429fd7095796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CarsonBurke/ml_battle_snake [INFO] finished tweaking git repo https://github.com/CarsonBurke/ml_battle_snake [INFO] tweaked toml for git repo https://github.com/CarsonBurke/ml_battle_snake written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CarsonBurke/ml_battle_snake 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" "+092a284ba0421695f2032c947765429fd7095796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: server [INFO] [stderr] warning: unused manifest key: simulation [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded figment v0.10.18 [INFO] [stderr] Downloaded rustversion v1.0.16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+092a284ba0421695f2032c947765429fd7095796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 20ece5bf07594a6c71a5da5be7cf5a1f5b5d167f1cd28daf3e1c00d7a07cf2c8 [INFO] running `Command { std: "docker" "start" "-a" "20ece5bf07594a6c71a5da5be7cf5a1f5b5d167f1cd28daf3e1c00d7a07cf2c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "20ece5bf07594a6c71a5da5be7cf5a1f5b5d167f1cd28daf3e1c00d7a07cf2c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20ece5bf07594a6c71a5da5be7cf5a1f5b5d167f1cd28daf3e1c00d7a07cf2c8", kill_on_drop: false }` [INFO] [stdout] 20ece5bf07594a6c71a5da5be7cf5a1f5b5d167f1cd28daf3e1c00d7a07cf2c8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+092a284ba0421695f2032c947765429fd7095796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 02f5392f1f15566fc7d9ff17cb64fb519def8aad5c5a8011b07a487c131f48b8 [INFO] running `Command { std: "docker" "start" "-a" "02f5392f1f15566fc7d9ff17cb64fb519def8aad5c5a8011b07a487c131f48b8", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: server [INFO] [stderr] warning: unused manifest key: simulation [INFO] [stderr] Compiling proc-macro2 v1.0.82 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling serde v1.0.201 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Checking futures-core v0.3.30 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling time-core v0.1.2 [INFO] [stderr] Checking futures-sink v0.3.30 [INFO] [stderr] Checking hashbrown v0.14.5 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-channel v0.3.30 [INFO] [stderr] Checking futures-io v0.3.30 [INFO] [stderr] Compiling time-macros v0.2.18 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking futures-task v0.3.30 [INFO] [stderr] Compiling ref-cast v1.0.23 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling deranged v0.3.11 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling bitflags v2.5.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Checking num_cpus v1.16.0 [INFO] [stderr] Checking mio v0.8.11 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Compiling syn v2.0.61 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Checking inlinable_string v0.1.15 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Checking winnow v0.6.8 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling rustix v0.38.34 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling tokio v1.37.0 [INFO] [stderr] Compiling multer v2.1.0 [INFO] [stderr] Compiling figment v0.10.18 [INFO] [stderr] Compiling either v1.11.0 [INFO] [stderr] Compiling serde_json v1.0.117 [INFO] [stderr] Compiling state v0.6.0 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling time v0.3.36 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Checking linux-raw-sys v0.4.13 [INFO] [stderr] Compiling indexmap v2.2.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking parking_lot_core v0.9.10 [INFO] [stderr] Compiling rocket v0.5.0 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Checking encoding_rs v0.8.34 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking fastrand v2.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking parking_lot v0.12.2 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking atomic v0.5.3 [INFO] [stderr] Checking binascii v0.1.4 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking tempfile v3.10.1 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling devise_core v0.4.1 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling serde_derive v1.0.201 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.23 [INFO] [stderr] Compiling async-stream-impl v0.3.5 [INFO] [stderr] Compiling async-trait v0.1.80 [INFO] [stderr] Compiling devise_codegen v0.4.1 [INFO] [stderr] Checking async-stream v0.3.5 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling devise v0.4.1 [INFO] [stderr] Compiling rocket_http v0.5.0 [INFO] [stderr] Compiling rocket_codegen v0.5.0 [INFO] [stderr] Checking tokio-util v0.7.11 [INFO] [stderr] Checking tokio-stream v0.1.15 [INFO] [stderr] Checking toml_datetime v0.6.5 [INFO] [stderr] Checking serde_spanned v0.6.5 [INFO] [stderr] Checking ubyte v0.10.4 [INFO] [stderr] Checking toml_edit v0.22.12 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking toml v0.8.12 [INFO] [stderr] Checking ml_battle_snake v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::fairing::AdHoc` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::fairing::AdHoc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json::Json` [INFO] [stdout] --> src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::serde::{json::Json, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/lib.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/ml_snake/logic.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/ml_snake/logic.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use std::{collections::HashMap, time::SystemTime}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/neural_network.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net` [INFO] [stdout] --> src/simulation/simulation.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use core::{net, panic}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Range` [INFO] [stdout] --> src/simulation/simulation.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashSet, ops::Range, time::SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ml_snake::snake` and `self` [INFO] [stdout] --> src/simulation/simulation.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ml_snake::snake, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | neural_network::{self, NeuralNetwork, NeuralNetworkManager}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 92 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_game` [INFO] [stdout] --> src/simulation/simulation.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | #[cfg(debug_game)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_game)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_game)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:170:15 [INFO] [stdout] | [INFO] [stdout] 170 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random` [INFO] [stdout] --> src/simulation/game.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::{random, Rng}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameState`, `get_move`, and `unpack_coord` [INFO] [stdout] --> src/simulation/game.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | ml_snake::logic::{choose_move, get_move}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | neural_network::NeuralNetwork, [INFO] [stdout] 12 | utils::{get_direction, is_out_of_bounds, pack_coord, pack_xy, random_coord, unpack_coord}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 13 | Battlesnake, Board, Coord, Game, GameState, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_game` [INFO] [stdout] --> src/simulation/game.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | #[cfg(debug_game)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_game)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_game)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_game` [INFO] [stdout] --> src/simulation/game.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | #[cfg(debug_game)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_game)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_game)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log::info` [INFO] [stdout] --> src/lib.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use log::info; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::fairing::AdHoc` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rocket::fairing::AdHoc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rocket::http::Status` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use rocket::http::Status; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json::Json` [INFO] [stdout] --> src/lib.rs:7:21 [INFO] [stdout] | [INFO] [stdout] 7 | use rocket::serde::{json::Json, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `json` [INFO] [stdout] --> src/lib.rs:9:18 [INFO] [stdout] | [INFO] [stdout] 9 | use serde_json::{json, Value}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::seq::SliceRandom` [INFO] [stdout] --> src/ml_snake/logic.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use rand::seq::SliceRandom; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `collections::HashMap` [INFO] [stdout] --> src/ml_snake/logic.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | use std::{collections::HashMap, time::SystemTime}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/neural_network.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net` [INFO] [stdout] --> src/simulation/simulation.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | use core::{net, panic}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ops::Range` [INFO] [stdout] --> src/simulation/simulation.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{collections::HashSet, ops::Range, time::SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ml_snake::snake` and `self` [INFO] [stdout] --> src/simulation/simulation.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | ml_snake::snake, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | neural_network::{self, NeuralNetwork, NeuralNetworkManager}, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:92:15 [INFO] [stdout] | [INFO] [stdout] 92 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: expected names are: `docsrs`, `feature`, and `test` and 31 more [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:94:15 [INFO] [stdout] | [INFO] [stdout] 94 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:104:15 [INFO] [stdout] | [INFO] [stdout] 104 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_game` [INFO] [stdout] --> src/simulation/simulation.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 55 | #[cfg(debug_game)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_game)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_game)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:141:19 [INFO] [stdout] | [INFO] [stdout] 141 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_simulation` [INFO] [stdout] --> src/simulation/simulation.rs:170:15 [INFO] [stdout] | [INFO] [stdout] 170 | #[cfg(debug_simulation)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: found config with similar value: `feature = "debug_simulation"` [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_simulation)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_simulation)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `random` [INFO] [stdout] --> src/simulation/game.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | use rand::{random, Rng}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameState`, `get_move`, and `unpack_coord` [INFO] [stdout] --> src/simulation/game.rs:10:36 [INFO] [stdout] | [INFO] [stdout] 10 | ml_snake::logic::{choose_move, get_move}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 11 | neural_network::NeuralNetwork, [INFO] [stdout] 12 | utils::{get_direction, is_out_of_bounds, pack_coord, pack_xy, random_coord, unpack_coord}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 13 | Battlesnake, Board, Coord, Game, GameState, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_game` [INFO] [stdout] --> src/simulation/game.rs:90:15 [INFO] [stdout] | [INFO] [stdout] 90 | #[cfg(debug_game)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_game)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_game)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `debug_game` [INFO] [stdout] --> src/simulation/game.rs:116:15 [INFO] [stdout] | [INFO] [stdout] 116 | #[cfg(debug_game)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider using a Cargo feature instead [INFO] [stdout] = help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint: [INFO] [stdout] [lints.rust] [INFO] [stdout] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(debug_game)'] } [INFO] [stdout] = help: or consider adding `println!("cargo::rustc-check-cfg=cfg(debug_game)");` to the top of the `build.rs` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network_manager` [INFO] [stdout] --> src/simulation/simulation.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | network_manager: &mut NeuralNetworkManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `network_manager` [INFO] [stdout] --> src/simulation/simulation.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | network_manager: &mut NeuralNetworkManager, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_network_manager` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputs` [INFO] [stdout] --> src/ml_snake/logic.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let outputs: Vec = vec![ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scored_outputs` [INFO] [stdout] --> src/neural_network.rs:270:38 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn back_propagate(&mut self, scored_outputs: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scored_outputs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/simulation/game.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | for i in 0..=snakes_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/simulation/game.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | for x in 0..self.board.width { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/simulation/game.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | for y in 0..self.board.height { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `longest_length` and `highest_turns` are never read [INFO] [stdout] --> src/simulation/simulation.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Simulation { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | longest_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | highest_turns: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/bin/server.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::serde::{json::Json, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Deserialize` [INFO] [stdout] --> src/bin/server.rs:8:33 [INFO] [stdout] | [INFO] [stdout] 8 | use rocket::serde::{json::Json, Deserialize}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `outputs` [INFO] [stdout] --> src/ml_snake/logic.rs:175:9 [INFO] [stdout] | [INFO] [stdout] 175 | let outputs: Vec = vec![ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_outputs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/simulate.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use ml_battle_snake::simulation::simulation::{self, Simulation}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scored_outputs` [INFO] [stdout] --> src/neural_network.rs:270:38 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn back_propagate(&mut self, scored_outputs: bool) {} [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scored_outputs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/bin/simulate.rs:1:47 [INFO] [stdout] | [INFO] [stdout] 1 | use ml_battle_snake::simulation::simulation::{self, Simulation}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/simulation/game.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | for i in 0..=snakes_count { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/simulation/game.rs:291:13 [INFO] [stdout] | [INFO] [stdout] 291 | for x in 0..self.board.width { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/simulation/game.rs:292:17 [INFO] [stdout] | [INFO] [stdout] 292 | for y in 0..self.board.height { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `longest_length` and `highest_turns` are never read [INFO] [stdout] --> src/simulation/simulation.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct Simulation { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 15 | longest_length: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | highest_turns: u32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.70s [INFO] running `Command { std: "docker" "inspect" "02f5392f1f15566fc7d9ff17cb64fb519def8aad5c5a8011b07a487c131f48b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02f5392f1f15566fc7d9ff17cb64fb519def8aad5c5a8011b07a487c131f48b8", kill_on_drop: false }` [INFO] [stdout] 02f5392f1f15566fc7d9ff17cb64fb519def8aad5c5a8011b07a487c131f48b8