[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] building jiricodes/battlesnake against master#c7f6aa2869acdbf014d094c6e427e554e160b6db for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjiricodes%2Fbattlesnake" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jiricodes/battlesnake on toolchain c7f6aa2869acdbf014d094c6e427e554e160b6db [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "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.11.0) [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.48) [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" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ansi_term v0.12.1 [INFO] [stderr] Downloaded alloc-stdlib v0.2.2 [INFO] [stderr] Downloaded ws2_32-sys v0.2.1 [INFO] [stderr] Downloaded rayon-core v1.13.0 [INFO] [stderr] Downloaded actix-service v1.0.6 [INFO] [stderr] Downloaded tracing-futures v0.2.5 [INFO] [stderr] Downloaded h2 v0.2.7 [INFO] [stderr] Downloaded actix-server v1.0.4 [INFO] [stderr] Downloaded stdweb-internal-runtime v0.1.5 [INFO] [stderr] Downloaded ipconfig v0.2.2 [INFO] [stderr] Downloaded semver v1.0.27 [INFO] [stderr] Downloaded bytestring v1.5.0 [INFO] [stderr] Downloaded mio v0.6.23 [INFO] [stderr] Downloaded winreg v0.6.2 [INFO] [stderr] Downloaded actix-tls v2.0.0 [INFO] [stderr] Downloaded actix-utils v2.0.0 [INFO] [stderr] Downloaded linked-hash-map v0.5.6 [INFO] [stderr] Downloaded winapi-build v0.1.1 [INFO] [stderr] Downloaded tokio v0.2.25 [INFO] [stderr] Downloaded stdweb v0.4.20 [INFO] [stderr] Downloaded stdweb-derive v0.5.3 [INFO] [stderr] Downloaded actix-web-codegen v0.4.0 [INFO] [stderr] Downloaded actix-router v0.2.7 [INFO] [stderr] Downloaded trust-dns-resolver v0.19.7 [INFO] [stderr] Downloaded fuchsia-zircon-sys v0.3.3 [INFO] [stderr] Downloaded pin-project v0.4.30 [INFO] [stderr] Downloaded stdweb-internal-macros v0.2.9 [INFO] [stderr] Downloaded rayon v1.11.0 [INFO] [stderr] Downloaded enum-as-inner v0.3.4 [INFO] [stderr] Downloaded clap v2.34.0 [INFO] [stderr] Downloaded actix-connect v2.0.0 [INFO] [stderr] Downloaded brotli-decompressor v2.5.1 [INFO] [stderr] Downloaded cookie v0.14.4 [INFO] [stderr] Downloaded actix-http v2.2.2 [INFO] [stderr] Downloaded iovec v0.1.4 [INFO] [stderr] Downloaded bytes v0.5.6 [INFO] [stderr] Downloaded discard v1.0.4 [INFO] [stderr] Downloaded lru-cache v0.1.2 [INFO] [stderr] Downloaded resolv-conf v0.7.5 [INFO] [stderr] Downloaded copyless v0.1.5 [INFO] [stderr] Downloaded net2 v0.2.39 [INFO] [stderr] Downloaded awc v2.0.3 [INFO] [stderr] Downloaded base-x v0.2.11 [INFO] [stderr] Downloaded time-macros-impl v0.1.2 [INFO] [stderr] Downloaded strsim v0.8.0 [INFO] [stderr] Downloaded brotli v3.5.0 [INFO] [stderr] Downloaded winapi v0.2.8 [INFO] [stderr] Downloaded widestring v0.4.3 [INFO] [stderr] Downloaded trust-dns-proto v0.19.7 [INFO] [stderr] Downloaded language-tags v0.2.2 [INFO] [stderr] Downloaded mio-uds v0.6.8 [INFO] [stderr] Downloaded actix-rt v1.1.1 [INFO] [stderr] Downloaded pin-project-internal v0.4.30 [INFO] [stderr] Downloaded sha1 v0.6.1 [INFO] [stderr] Downloaded actix-threadpool v0.3.3 [INFO] [stderr] Downloaded proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Downloaded actix-web v3.3.3 [INFO] [stderr] Downloaded actix-testing v1.0.1 [INFO] [stderr] Downloaded matches v0.1.10 [INFO] [stderr] Downloaded actix-codec v0.3.0 [INFO] [stderr] Downloaded alloc-no-stdlib v2.0.4 [INFO] [stderr] Downloaded tokio-util v0.3.1 [INFO] [stderr] Downloaded actix-macros v0.1.3 [INFO] [stderr] Downloaded threadpool v1.8.1 [INFO] [stderr] Downloaded fuchsia-zircon v0.3.3 [INFO] [stderr] Downloaded kernel32-sys v0.2.2 [INFO] [stderr] Downloaded miow v0.2.2 [INFO] [stderr] Downloaded pin-project-lite v0.1.12 [INFO] [stderr] Downloaded convert_case v0.4.0 [INFO] [stderr] Downloaded socket2 v0.3.19 [INFO] [stderr] Downloaded const_fn v0.4.11 [INFO] [stderr] Downloaded textwrap v0.11.0 [INFO] [stderr] Downloaded standback v0.2.17 [INFO] [stderr] Downloaded time-macros v0.1.1 [INFO] [stderr] Downloaded time v0.2.27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9ca0d79c20ad378ea40075b93ea0022f982d1d0d663de774e5ec94ab751eac49 [INFO] running `Command { std: "docker" "start" "-a" "9ca0d79c20ad378ea40075b93ea0022f982d1d0d663de774e5ec94ab751eac49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9ca0d79c20ad378ea40075b93ea0022f982d1d0d663de774e5ec94ab751eac49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ca0d79c20ad378ea40075b93ea0022f982d1d0d663de774e5ec94ab751eac49", kill_on_drop: false }` [INFO] [stdout] 9ca0d79c20ad378ea40075b93ea0022f982d1d0d663de774e5ec94ab751eac49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 766bd0f076c1189bd80a9aae67b61d3c9cb6c192e8ad61a830b1ee9343dc5e7b [INFO] running `Command { std: "docker" "start" "-a" "766bd0f076c1189bd80a9aae67b61d3c9cb6c192e8ad61a830b1ee9343dc5e7b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling pin-project-lite v0.1.12 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling pin-project-internal v0.4.30 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling copyless v0.1.5 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.10.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling const_fn v0.4.11 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling unicode-bidi v0.3.18 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling net2 v0.2.39 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling tokio v0.2.25 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling crc32fast v1.5.0 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling lru-cache v0.1.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling resolv-conf v0.7.5 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling brotli-decompressor v2.5.1 [INFO] [stderr] Compiling actix-macros v0.1.3 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling enum-as-inner v0.3.4 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling sha-1 v0.9.8 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling pin-project v0.4.30 [INFO] [stderr] Compiling actix-codec v0.3.0 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling brotli v3.5.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling derive_more v0.99.20 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling socket2 v0.3.19 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling actix-threadpool v0.3.3 [INFO] [stderr] Compiling language-tags v0.2.2 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling base64 v0.13.1 [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 crossbeam-deque v0.8.6 [INFO] [stderr] Compiling bytestring v1.5.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling actix-utils v2.0.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling actix-server v1.0.4 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling actix-tls v2.0.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling actix-router v0.2.7 [INFO] [stderr] Compiling actix-web-codegen v0.4.0 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling actix-testing v1.0.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling clap v2.34.0 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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: enum `GridObject` is never used [INFO] [stdout] --> src/battlesnake/grid.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum GridObject { [INFO] [stdout] | ^^^^^^^^^^ [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: struct `GameGrid` is never constructed [INFO] [stdout] --> src/battlesnake/grid.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct GameGrid { [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] [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 2m 25s [INFO] running `Command { std: "docker" "inspect" "766bd0f076c1189bd80a9aae67b61d3c9cb6c192e8ad61a830b1ee9343dc5e7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "766bd0f076c1189bd80a9aae67b61d3c9cb6c192e8ad61a830b1ee9343dc5e7b", kill_on_drop: false }` [INFO] [stdout] 766bd0f076c1189bd80a9aae67b61d3c9cb6c192e8ad61a830b1ee9343dc5e7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+c7f6aa2869acdbf014d094c6e427e554e160b6db" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 399280a7a50483eb796de104f84d20e89593d18e94c8bf6609f29f2f5c180cff [INFO] running `Command { std: "docker" "start" "-a" "399280a7a50483eb796de104f84d20e89593d18e94c8bf6609f29f2f5c180cff", 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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 2.73s [INFO] running `Command { std: "docker" "inspect" "399280a7a50483eb796de104f84d20e89593d18e94c8bf6609f29f2f5c180cff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "399280a7a50483eb796de104f84d20e89593d18e94c8bf6609f29f2f5c180cff", kill_on_drop: false }` [INFO] [stdout] 399280a7a50483eb796de104f84d20e89593d18e94c8bf6609f29f2f5c180cff