[INFO] cloning repository https://github.com/jiricodes/battlesnake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jiricodes/battlesnake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiricodes%2Fbattlesnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiricodes%2Fbattlesnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6b6d9b04732c8b698e5313919009fba5db08f509 [INFO] testing jiricodes/battlesnake against beta-2025-02-18 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiricodes%2Fbattlesnake" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jiricodes/battlesnake on toolchain beta-2025-02-18 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jiricodes/battlesnake [INFO] finished tweaking git repo https://github.com/jiricodes/battlesnake [INFO] tweaked toml for git repo https://github.com/jiricodes/battlesnake written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 245 packages to latest compatible versions [INFO] [stderr] Adding actix-web v3.3.3 (available: v4.9.0) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.30) [INFO] [stderr] Adding colored v2.2.0 (available: v3.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-02-18" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93a72a2a5409a06165be9f0a2f4bc7c56445cf1a4b2c560e21b24039543cb61c [INFO] running `Command { std: "docker" "start" "-a" "93a72a2a5409a06165be9f0a2f4bc7c56445cf1a4b2c560e21b24039543cb61c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93a72a2a5409a06165be9f0a2f4bc7c56445cf1a4b2c560e21b24039543cb61c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93a72a2a5409a06165be9f0a2f4bc7c56445cf1a4b2c560e21b24039543cb61c", kill_on_drop: false }` [INFO] [stdout] 93a72a2a5409a06165be9f0a2f4bc7c56445cf1a4b2c560e21b24039543cb61c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9c6aa26ab5764f00f2526e7c3c31f5ae1a21cd1202cfe966fa2e0dcf7603b9f1 [INFO] running `Command { std: "docker" "start" "-a" "9c6aa26ab5764f00f2526e7c3c31f5ae1a21cd1202cfe966fa2e0dcf7603b9f1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.17 [INFO] [stderr] Compiling libc v0.2.170 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.4 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling pin-project-internal v0.4.30 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.0 [INFO] [stderr] Compiling icu_properties_data v1.5.0 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling icu_normalizer_data v1.5.0 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling tinyvec v1.8.1 [INFO] [stderr] Compiling bytes v1.10.0 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling serde v1.0.218 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Compiling once_cell v1.20.3 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling match_cfg v0.1.0 [INFO] [stderr] Compiling const_fn v0.4.11 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.21 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling quick-error v1.2.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling hostname v0.3.1 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling resolv-conf v0.7.0 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling httparse v1.10.0 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling serde_json v1.0.139 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling brotli-decompressor v2.5.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling brotli v3.5.0 [INFO] [stderr] Compiling bytestring v1.4.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling iana-time-zone v0.1.61 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling chrono v0.4.39 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling pin-project v0.4.30 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling derive_more v0.99.19 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling serde_derive v1.0.218 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling pin-project-internal v1.1.9 [INFO] [stderr] Compiling async-trait v0.1.86 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling zerofrom v0.1.5 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling pin-project v1.1.9 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling actix-rt v1.1.1 [INFO] [stderr] Compiling actix-service v1.0.6 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling h2 v0.2.7 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling trust-dns-proto v0.19.7 [INFO] [stderr] Compiling trust-dns-resolver v0.19.7 [INFO] [stderr] Compiling actix-connect v2.0.0 [INFO] [stderr] Compiling actix-http v2.2.2 [INFO] [stderr] Compiling awc v2.0.3 [INFO] [stderr] Compiling actix-web v3.3.3 [INFO] [stderr] Compiling battlesnake v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/main.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `astar::Astar` [INFO] [stdout] --> src/battlesnake/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use astar::Astar; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reverse` [INFO] [stdout] --> src/battlesnake/astar.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::{Ordering, Reverse}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameGrid` and `GridObject` [INFO] [stdout] --> src/battlesnake/heuristic.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use super::grid::{GameGrid, GridObject}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sym` [INFO] [stdout] --> src/battlesnake/domove.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let sym = GridObject::Snake(gameinfo.get_my_index()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sym` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `move_point` is never read [INFO] [stdout] --> src/battlesnake/domove.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut move_point = Point::new(0, 0); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/battlesnake/heuristic.rs:82:42 [INFO] [stdout] | [INFO] [stdout] 82 | fn battlesnake(&self, start: &Point, end: &Point) -> f32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AstarNode` is never constructed [INFO] [stdout] --> src/battlesnake/astar.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct AstarNode { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_children`, `is_end`, `get_path`, `extend_with_child`, and `get_gscore` are never used [INFO] [stdout] --> src/battlesnake/astar.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl AstarNode { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 24 | pub fn new(point: Point) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_children(&self, grid: &GameGrid, heur: &Heuristic) -> Vec<(i32, Point)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | pub fn is_end(&self, end: &Point) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | pub fn get_path(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn extend_with_child(&self, child: &Point, step: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn get_gscore(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AstarQueue` is never constructed [INFO] [stdout] --> src/battlesnake/astar.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | struct AstarQueue { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `enqueue`, `dequeue`, `len`, and `point_already_reached` are never used [INFO] [stdout] --> src/battlesnake/astar.rs:99:12 [INFO] [stdout] | [INFO] [stdout] 98 | impl AstarQueue { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] 99 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn enqueue(&mut self, node: AstarNode) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn dequeue(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn point_already_reached(&mut self, point: &Point, fscore: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Astar` is never constructed [INFO] [stdout] --> src/battlesnake/astar.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct Astar { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `solve`, `get_path`, and `get_cost` are never used [INFO] [stdout] --> src/battlesnake/astar.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 141 | impl Astar { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 142 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 149 | pub fn solve(&mut self, start: Point, end: Point, grid: &GameGrid, heur: &Heuristic) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn get_path(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 179 | pub fn get_cost(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Dfs` is never constructed [INFO] [stdout] --> src/battlesnake/dfs.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Dfs { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_atleast_len`, `get_path`, `get_length`, and `get_cost` are never used [INFO] [stdout] --> src/battlesnake/dfs.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 10 | impl Dfs { [INFO] [stdout] | -------- associated items in this implementation [INFO] [stdout] 11 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn get_atleast_len(&mut self, start: &Point, grid: &GameGrid, atleast: i32) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_path(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn get_length(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn get_cost(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `default`, and `as_option_string` are never used [INFO] [stdout] --> src/battlesnake/domove.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Move { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 22 | pub fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn as_option_string(input: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `GridObjectLog` is never used [INFO] [stdout] --> src/battlesnake/game_logger.rs:48:6 [INFO] [stdout] | [INFO] [stdout] 48 | enum GridObjectLog { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameGridLog` is never constructed [INFO] [stdout] --> src/battlesnake/game_logger.rs:75:12 [INFO] [stdout] | [INFO] [stdout] 75 | pub struct GameGridLog { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/battlesnake/game_logger.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl GameGridLog { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 84 | fn new(dimensions: (usize, usize)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 94 | pub fn from_api(gameinfo: &GameInfo) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | fn is_in_bounds(&self, pos: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 121 | fn get_index(&self, pos: &Point) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 129 | fn set_snakes(&mut self, snakes: Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 144 | fn set_food(&mut self, food: &Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 159 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameStateLog` is never constructed [INFO] [stdout] --> src/battlesnake/game_logger.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub struct GameStateLog { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_api` and `print` are never used [INFO] [stdout] --> src/battlesnake/game_logger.rs:190:12 [INFO] [stdout] | [INFO] [stdout] 189 | impl GameStateLog { [INFO] [stdout] | ----------------- associated items in this implementation [INFO] [stdout] 190 | pub fn from_api(data: &GameInfo) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Empty`, `Food`, `Snake`, `Hazard`, `Collisionchance`, and `Outofbounds` are never constructed [INFO] [stdout] --> src/battlesnake/grid.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum GridObject { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 8 | Empty, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Food, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | Snake(usize), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 11 | Hazard, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | Collisionchance(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 13 | Outofbounds, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_snake`, `is_considerable`, and `is_accessible` are never used [INFO] [stdout] --> src/battlesnake/grid.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl GridObject { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 17 | pub fn is_snake(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn is_considerable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn is_accessible(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height` and `ignore_hazard` are never read [INFO] [stdout] --> src/battlesnake/grid.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct GameGrid { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 67 | height: usize, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | ignore_hazard: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/battlesnake/grid.rs:74:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl GameGrid { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 74 | pub fn new(dimensions: (usize, usize)) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn from_api(gameinfo: &GameInfo) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 96 | fn get_index(&self, pos: &Point) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_value(&self, pos: &Point) -> GridObject { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn get_value_at_index(&self, i: usize) -> GridObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 119 | pub fn is_accessible(&self, pos: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn is_in_bounds(&self, pos: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 132 | pub fn set_snakes(&mut self, snakes: Vec>) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn set_food(&mut self, food: &Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn set_food_for_print(&mut self, food: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn set_hazards(&mut self, hazard: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn set_collision_chance(&mut self, collision: &Vec, hp: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn ignore_hazard(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn get_width(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn get_height(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `HeurMethod` is never used [INFO] [stdout] --> src/battlesnake/heuristic.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum HeurMethod { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeurMethod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Heuristic` is never constructed [INFO] [stdout] --> src/battlesnake/heuristic.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Heuristic { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/battlesnake/heuristic.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Heuristic { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] 22 | pub fn new(heur_method: HeurMethod) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn manhattan(&self, start: &Point, end: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | fn euclidean(&self, start: &Point, end: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn is_in_bounds(&self, p: &Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn battlesnake_init( [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | fn battlesnake(&self, start: &Point, end: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn get_value(&self, start: &Point, end: &Point) -> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/battlesnake/input.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl GameInfo { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_my_head(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_my_health(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_my_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn get_snake_bodies(&self) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn get_head_collision_hazard(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_my_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_my_length(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | pub fn get_heads(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn is_win(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `extend_front` are never used [INFO] [stdout] --> src/battlesnake/path.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Path { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn extend_front(&mut self, offset: &Point) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/battlesnake/point.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Point { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn get_x(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_y(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_right(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn get_left(&self) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_up(&self) -> Point { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 53 | pub fn get_down(&self) -> Point { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_neighbours(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn distance_squared(&self, other: &Self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn distance(&self, other: &Self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn find_closest(&self, others: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_neighbour_direction(self, neighbour: Self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn is_neighbour(self, other: Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 40s [INFO] running `Command { std: "docker" "inspect" "9c6aa26ab5764f00f2526e7c3c31f5ae1a21cd1202cfe966fa2e0dcf7603b9f1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c6aa26ab5764f00f2526e7c3c31f5ae1a21cd1202cfe966fa2e0dcf7603b9f1", kill_on_drop: false }` [INFO] [stdout] 9c6aa26ab5764f00f2526e7c3c31f5ae1a21cd1202cfe966fa2e0dcf7603b9f1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f9a30f1ee61faca15fa9268e60ed4a7488ac7a2d8c168cc6ad61f0c607ac4a9 [INFO] running `Command { std: "docker" "start" "-a" "2f9a30f1ee61faca15fa9268e60ed4a7488ac7a2d8c168cc6ad61f0c607ac4a9", kill_on_drop: false }` [INFO] [stderr] Compiling battlesnake v0.1.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web` [INFO] [stdout] --> src/main.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `astar::Astar` [INFO] [stdout] --> src/battlesnake/mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use astar::Astar; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Reverse` [INFO] [stdout] --> src/battlesnake/astar.rs:7:26 [INFO] [stdout] | [INFO] [stdout] 7 | use std::cmp::{Ordering, Reverse}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `GameGrid` and `GridObject` [INFO] [stdout] --> src/battlesnake/heuristic.rs:3:19 [INFO] [stdout] | [INFO] [stdout] 3 | use super::grid::{GameGrid, GridObject}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sym` [INFO] [stdout] --> src/battlesnake/domove.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | let sym = GridObject::Snake(gameinfo.get_my_index()); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_sym` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `move_point` is never read [INFO] [stdout] --> src/battlesnake/domove.rs:50:17 [INFO] [stdout] | [INFO] [stdout] 50 | let mut move_point = Point::new(0, 0); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `end` [INFO] [stdout] --> src/battlesnake/heuristic.rs:82:42 [INFO] [stdout] | [INFO] [stdout] 82 | fn battlesnake(&self, start: &Point, end: &Point) -> f32 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/battlesnake/heuristic.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | for (i, val) in expected.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/battlesnake/heuristic.rs:122:17 [INFO] [stdout] | [INFO] [stdout] 122 | for (i, val) in expected.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `val` [INFO] [stdout] --> src/battlesnake/heuristic.rs:140:17 [INFO] [stdout] | [INFO] [stdout] 140 | for (i, val) in expected.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `closest_empty` is never read [INFO] [stdout] --> src/battlesnake/astar.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 136 | pub struct Astar { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 137 | solution: Option<(f32, Vec)>, [INFO] [stdout] 138 | closest_empty: Option<(f32, Vec)>, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new`, `default`, and `as_option_string` are never used [INFO] [stdout] --> src/battlesnake/domove.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Move { [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 22 | pub fn new(input: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn default() -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 150 | pub fn as_option_string(input: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Hazard` and `Collisionchance` are never constructed [INFO] [stdout] --> src/battlesnake/grid.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum GridObject { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | Hazard, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 12 | Collisionchance(i32), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GridObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_snake` and `is_considerable` are never used [INFO] [stdout] --> src/battlesnake/grid.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl GridObject { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 17 | pub fn is_snake(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn is_considerable(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `ignore_hazard` is never read [INFO] [stdout] --> src/battlesnake/grid.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct GameGrid { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 70 | ignore_hazard: bool, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/battlesnake/grid.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 73 | impl GameGrid { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn from_api(gameinfo: &GameInfo) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 92 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | pub fn get_value_at_index(&self, i: usize) -> GridObject { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn set_food(&mut self, food: &Vec) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 162 | pub fn set_food_for_print(&mut self, food: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 175 | pub fn set_hazards(&mut self, hazard: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 190 | pub fn set_collision_chance(&mut self, collision: &Vec, hp: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 205 | pub fn ignore_hazard(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 209 | pub fn get_width(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 213 | pub fn get_height(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Euclidean` is never constructed [INFO] [stdout] --> src/battlesnake/heuristic.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum HeurMethod { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 8 | Manhattan, [INFO] [stdout] 9 | Euclidean, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `HeurMethod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `method` is never read [INFO] [stdout] --> src/battlesnake/heuristic.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Heuristic { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 14 | method: HeurMethod, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/battlesnake/input.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl GameInfo { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn get_my_head(&self) -> Point { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | pub fn get_my_health(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 60 | pub fn get_my_index(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn get_head_collision_hazard(&self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 102 | pub fn get_my_id(&self) -> &str { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn get_my_length(&self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn is_win(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/battlesnake/path.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Path { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 12 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_neighbour` is never used [INFO] [stdout] --> src/battlesnake/point.rs:106:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Point { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 106 | pub fn is_neighbour(self, other: Point) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.96s [INFO] running `Command { std: "docker" "inspect" "2f9a30f1ee61faca15fa9268e60ed4a7488ac7a2d8c168cc6ad61f0c607ac4a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f9a30f1ee61faca15fa9268e60ed4a7488ac7a2d8c168cc6ad61f0c607ac4a9", kill_on_drop: false }` [INFO] [stdout] 2f9a30f1ee61faca15fa9268e60ed4a7488ac7a2d8c168cc6ad61f0c607ac4a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-02-18" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] cbd6492205a13884260a9cb5fd2b6c004efc0e29f6d63269576e161a8433850d [INFO] running `Command { std: "docker" "start" "-a" "cbd6492205a13884260a9cb5fd2b6c004efc0e29f6d63269576e161a8433850d", kill_on_drop: false }` [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `web` [INFO] [stderr] --> src/main.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `astar::Astar` [INFO] [stderr] --> src/battlesnake/mod.rs:1:9 [INFO] [stderr] | [INFO] [stderr] 1 | pub use astar::Astar; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Reverse` [INFO] [stderr] --> src/battlesnake/astar.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | use std::cmp::{Ordering, Reverse}; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `GameGrid` and `GridObject` [INFO] [stderr] --> src/battlesnake/heuristic.rs:3:19 [INFO] [stderr] | [INFO] [stderr] 3 | use super::grid::{GameGrid, GridObject}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `sym` [INFO] [stderr] --> src/battlesnake/domove.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | let sym = GridObject::Snake(gameinfo.get_my_index()); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_sym` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `move_point` is never read [INFO] [stderr] --> src/battlesnake/domove.rs:50:17 [INFO] [stderr] | [INFO] [stderr] 50 | let mut move_point = Point::new(0, 0); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `end` [INFO] [stderr] --> src/battlesnake/heuristic.rs:82:42 [INFO] [stderr] | [INFO] [stderr] 82 | fn battlesnake(&self, start: &Point, end: &Point) -> f32 { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_end` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `val` [INFO] [stderr] --> src/battlesnake/heuristic.rs:105:17 [INFO] [stderr] | [INFO] [stderr] 105 | for (i, val) in expected.iter().enumerate() { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `val` [INFO] [stderr] --> src/battlesnake/heuristic.rs:122:17 [INFO] [stderr] | [INFO] [stderr] 122 | for (i, val) in expected.iter().enumerate() { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `val` [INFO] [stderr] --> src/battlesnake/heuristic.rs:140:17 [INFO] [stderr] | [INFO] [stderr] 140 | for (i, val) in expected.iter().enumerate() { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_val` [INFO] [stderr] [INFO] [stderr] warning: field `closest_empty` is never read [INFO] [stderr] --> src/battlesnake/astar.rs:138:5 [INFO] [stderr] | [INFO] [stderr] 136 | pub struct Astar { [INFO] [stderr] | ----- field in this struct [INFO] [stderr] 137 | solution: Option<(f32, Vec)>, [INFO] [stderr] 138 | closest_empty: Option<(f32, Vec)>, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated functions `new`, `default`, and `as_option_string` are never used [INFO] [stderr] --> src/battlesnake/domove.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 21 | impl Move { [INFO] [stderr] | --------- associated functions in this implementation [INFO] [stderr] 22 | pub fn new(input: &str) -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] ... [INFO] [stderr] 143 | pub fn default() -> Self { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 150 | pub fn as_option_string(input: &str) -> Option { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variants `Hazard` and `Collisionchance` are never constructed [INFO] [stderr] --> src/battlesnake/grid.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum GridObject { [INFO] [stderr] | ---------- variants in this enum [INFO] [stderr] ... [INFO] [stderr] 11 | Hazard, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 12 | Collisionchance(i32), [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `GridObject` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `is_snake` and `is_considerable` are never used [INFO] [stderr] --> src/battlesnake/grid.rs:17:12 [INFO] [stderr] | [INFO] [stderr] 16 | impl GridObject { [INFO] [stderr] | --------------- methods in this implementation [INFO] [stderr] 17 | pub fn is_snake(&self) -> bool { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 24 | pub fn is_considerable(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `ignore_hazard` is never read [INFO] [stderr] --> src/battlesnake/grid.rs:70:5 [INFO] [stderr] | [INFO] [stderr] 66 | pub struct GameGrid { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 70 | ignore_hazard: bool, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple associated items are never used [INFO] [stderr] --> src/battlesnake/grid.rs:83:12 [INFO] [stderr] | [INFO] [stderr] 73 | impl GameGrid { [INFO] [stderr] | ------------- associated items in this implementation [INFO] [stderr] ... [INFO] [stderr] 83 | pub fn from_api(gameinfo: &GameInfo) -> Self { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 92 | pub fn reset(&mut self) { [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 111 | pub fn get_value_at_index(&self, i: usize) -> GridObject { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 147 | pub fn set_food(&mut self, food: &Vec) { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 162 | pub fn set_food_for_print(&mut self, food: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 175 | pub fn set_hazards(&mut self, hazard: &Vec) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 190 | pub fn set_collision_chance(&mut self, collision: &Vec, hp: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 205 | pub fn ignore_hazard(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 209 | pub fn get_width(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 213 | pub fn get_height(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `Euclidean` is never constructed [INFO] [stderr] --> src/battlesnake/heuristic.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 7 | pub enum HeurMethod { [INFO] [stderr] | ---------- variant in this enum [INFO] [stderr] 8 | Manhattan, [INFO] [stderr] 9 | Euclidean, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `HeurMethod` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `method` is never read [INFO] [stderr] --> src/battlesnake/heuristic.rs:14:5 [INFO] [stderr] | [INFO] [stderr] 13 | pub struct Heuristic { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 14 | method: HeurMethod, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple methods are never used [INFO] [stderr] --> src/battlesnake/input.rs:52:12 [INFO] [stderr] | [INFO] [stderr] 40 | impl GameInfo { [INFO] [stderr] | ------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 52 | pub fn get_my_head(&self) -> Point { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 56 | pub fn get_my_health(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 60 | pub fn get_my_index(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 87 | pub fn get_head_collision_hazard(&self) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 102 | pub fn get_my_id(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn get_my_length(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 126 | pub fn is_win(&self) -> bool { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/battlesnake/path.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 11 | impl Path { [INFO] [stderr] | --------- associated function in this implementation [INFO] [stderr] 12 | pub fn new() -> Self { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: method `is_neighbour` is never used [INFO] [stderr] --> src/battlesnake/point.rs:106:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl Point { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 106 | pub fn is_neighbour(self, other: Point) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `battlesnake` (bin "battlesnake" test) generated 22 warnings (run `cargo fix --bin "battlesnake" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/battlesnake-d6f3fe94618be3db) [INFO] [stdout] [INFO] [stdout] running 24 tests [INFO] [stdout] test battlesnake::astar::test::basic_battlesnake ... ok [INFO] [stdout] test battlesnake::dfs::test::dfs_simple ... ok [INFO] [stdout] test battlesnake::board::test::from_api ... ok [INFO] [stdout] test battlesnake::board::test::astar ... ok [INFO] [stdout] test battlesnake::dfs::test::no_way ... ok [INFO] [stdout] test battlesnake::board::test::advance ... ok [INFO] [stdout] test battlesnake::astar::test::basic_manhattan ... ok [INFO] [stdout] test battlesnake::board::test::available_moves ... ok [INFO] [stdout] test battlesnake::dfs::test::way_out ... ok [INFO] [stdout] test battlesnake::heuristic::test::manhattan_00 ... ok [INFO] [stdout] test battlesnake::heuristic::test::manhattan_inner ... ok [INFO] [stdout] test battlesnake::input::test::test_input ... ok [INFO] [stdout] test battlesnake::path::test::extend ... ok [INFO] [stdout] test battlesnake::point::test::closest ... ok [INFO] [stdout] test battlesnake::game_logger::test::print ... ok [INFO] [stdout] test battlesnake::grid::test::grid_get_value ... ok [INFO] [stdout] test battlesnake::path::test::basics ... ok [INFO] [stdout] test battlesnake::grid::test::grid_is_in_bounds ... ok [INFO] [stdout] test battlesnake::snake::test::basics ... ok [INFO] [stdout] test battlesnake::path::test::extend_dir ... ok [INFO] [stdout] test battlesnake::heuristic::test::manhattan_outter ... ok [INFO] [stdout] test battlesnake::point::test::directions ... ok [INFO] [stdout] test battlesnake::minimax::test::test_test ... ok [INFO] [stdout] test battlesnake::game_logger::test::session_basic ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 24 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "cbd6492205a13884260a9cb5fd2b6c004efc0e29f6d63269576e161a8433850d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbd6492205a13884260a9cb5fd2b6c004efc0e29f6d63269576e161a8433850d", kill_on_drop: false }` [INFO] [stdout] cbd6492205a13884260a9cb5fd2b6c004efc0e29f6d63269576e161a8433850d