[INFO] cloning repository https://github.com/KlotzAndrew/battlesnake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KlotzAndrew/battlesnake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKlotzAndrew%2Fbattlesnake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKlotzAndrew%2Fbattlesnake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ac46cc936463e94b6f6a1c7394350e98d6f735fb [INFO] testing KlotzAndrew/battlesnake against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKlotzAndrew%2Fbattlesnake" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KlotzAndrew/battlesnake on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KlotzAndrew/battlesnake [INFO] finished tweaking git repo https://github.com/KlotzAndrew/battlesnake [INFO] tweaked toml for git repo https://github.com/KlotzAndrew/battlesnake written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/KlotzAndrew/battlesnake already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1cbd5694476eac3413eade780f1cdfe9918028ebf1bca2734754898bf96e5a09 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "1cbd5694476eac3413eade780f1cdfe9918028ebf1bca2734754898bf96e5a09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cbd5694476eac3413eade780f1cdfe9918028ebf1bca2734754898bf96e5a09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cbd5694476eac3413eade780f1cdfe9918028ebf1bca2734754898bf96e5a09", kill_on_drop: false }` [INFO] [stdout] 1cbd5694476eac3413eade780f1cdfe9918028ebf1bca2734754898bf96e5a09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9e4ca8e4b237a8e9110f0d2c0e6c6185eefbb26433c8120ac59693fd38b11312 [INFO] running `Command { std: "docker" "start" "-a" "9e4ca8e4b237a8e9110f0d2c0e6c6185eefbb26433c8120ac59693fd38b11312", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.96 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling subtle v2.4.0 [INFO] [stderr] Compiling yansi v0.5.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling serde_derive v1.0.126 [INFO] [stderr] Compiling cpufeatures v0.1.4 [INFO] [stderr] Compiling safemem v0.3.3 [INFO] [stderr] Compiling serde v1.0.126 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling state v0.4.2 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling base64 v0.9.3 [INFO] [stderr] Compiling proc-macro2 v1.0.27 [INFO] [stderr] Compiling pear_codegen v0.1.4 [INFO] [stderr] Compiling rocket_codegen v0.4.10 [INFO] [stderr] Compiling rocket v0.4.10 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling universal-hash v0.4.0 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.10.0 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling inotify-sys v0.1.5 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling filetime v0.2.14 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling inotify v0.7.1 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling notify v4.0.17 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling cookie v0.11.4 [INFO] [stderr] Compiling hyper v0.10.16 [INFO] [stderr] Compiling devise_core v0.2.0 [INFO] [stderr] Compiling devise_codegen v0.2.0 [INFO] [stderr] Compiling devise v0.2.0 [INFO] [stderr] Compiling pear v0.1.4 [INFO] [stderr] Compiling rocket_http v0.4.10 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling rocket_contrib v0.4.10 [INFO] [stderr] Compiling battlesnake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `dijkstra`, `min_spanning_tree` [INFO] [stdout] --> src/mover.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use petgraph::algo::{dijkstra, min_spanning_tree}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NodeIndex`, `UnGraph` [INFO] [stdout] --> src/mover.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use petgraph::graph::{NodeIndex, UnGraph}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `petgraph::algo::astar` [INFO] [stdout] --> src/mover.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use petgraph::algo::astar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/mover.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let head = you.head; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parent` is assigned to, but never used [INFO] [stdout] --> src/mover.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parent: requests::Point; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parent` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parent` is never read [INFO] [stdout] --> src/mover.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | parent = goal; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `idToPoint` [INFO] [stdout] --> src/mover.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn idToPoint(id: i32, size: i32) -> requests::Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pointToID` should have a snake case name [INFO] [stdout] --> src/mover.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn pointToID(point: requests::Point, size: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `point_to_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `idToPoint` should have a snake case name [INFO] [stdout] --> src/mover.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn idToPoint(id: i32, size: i32) -> requests::Point { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `id_to_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pointID` should have a snake case name [INFO] [stdout] --> src/mover.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let pointID = pointToID(point, size); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `point_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 49s [INFO] running `Command { std: "docker" "inspect" "9e4ca8e4b237a8e9110f0d2c0e6c6185eefbb26433c8120ac59693fd38b11312", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e4ca8e4b237a8e9110f0d2c0e6c6185eefbb26433c8120ac59693fd38b11312", kill_on_drop: false }` [INFO] [stdout] 9e4ca8e4b237a8e9110f0d2c0e6c6185eefbb26433c8120ac59693fd38b11312 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74b75b5af4596ee8a5b12896ba1fdabed0c55fabf6f413ca32bcda62be57bf19 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "74b75b5af4596ee8a5b12896ba1fdabed0c55fabf6f413ca32bcda62be57bf19", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling battlesnake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `dijkstra`, `min_spanning_tree` [INFO] [stdout] --> src/mover.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use petgraph::algo::{dijkstra, min_spanning_tree}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `NodeIndex`, `UnGraph` [INFO] [stdout] --> src/mover.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use petgraph::graph::{NodeIndex, UnGraph}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `petgraph::algo::astar` [INFO] [stdout] --> src/mover.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use petgraph::algo::astar; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head` [INFO] [stdout] --> src/mover.rs:41:7 [INFO] [stdout] | [INFO] [stdout] 41 | let head = you.head; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `parent` is assigned to, but never used [INFO] [stdout] --> src/mover.rs:64:11 [INFO] [stdout] | [INFO] [stdout] 64 | let mut parent: requests::Point; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_parent` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `parent` is never read [INFO] [stdout] --> src/mover.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | parent = goal; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `idToPoint` [INFO] [stdout] --> src/mover.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn idToPoint(id: i32, size: i32) -> requests::Point { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pointToID` should have a snake case name [INFO] [stdout] --> src/mover.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn pointToID(point: requests::Point, size: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `point_to_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `idToPoint` should have a snake case name [INFO] [stdout] --> src/mover.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn idToPoint(id: i32, size: i32) -> requests::Point { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `id_to_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pointID` should have a snake case name [INFO] [stdout] --> src/mover.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let pointID = pointToID(point, size); [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `point_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `turnData` should have a snake case name [INFO] [stdout] --> src/mover.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | let turnData = r#"{ [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `turn_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 19s [INFO] running `Command { std: "docker" "inspect" "74b75b5af4596ee8a5b12896ba1fdabed0c55fabf6f413ca32bcda62be57bf19", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74b75b5af4596ee8a5b12896ba1fdabed0c55fabf6f413ca32bcda62be57bf19", kill_on_drop: false }` [INFO] [stdout] 74b75b5af4596ee8a5b12896ba1fdabed0c55fabf6f413ca32bcda62be57bf19 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a96c3ead5eee18baf1c3bc66d989a51a060a51dfab864f0ff1733df013b1dd2e [INFO] running `Command { std: "docker" "start" "-a" "a96c3ead5eee18baf1c3bc66d989a51a060a51dfab864f0ff1733df013b1dd2e", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unused imports: `dijkstra`, `min_spanning_tree` [INFO] [stderr] --> src/mover.rs:4:22 [INFO] [stderr] | [INFO] [stderr] 4 | use petgraph::algo::{dijkstra, min_spanning_tree}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `NodeIndex`, `UnGraph` [INFO] [stderr] --> src/mover.rs:5:23 [INFO] [stderr] | [INFO] [stderr] 5 | use petgraph::graph::{NodeIndex, UnGraph}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `petgraph::algo::astar` [INFO] [stderr] --> src/mover.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | use petgraph::algo::astar; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `head` [INFO] [stderr] --> src/mover.rs:41:7 [INFO] [stderr] | [INFO] [stderr] 41 | let head = you.head; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_head` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable `parent` is assigned to, but never used [INFO] [stderr] --> src/mover.rs:64:11 [INFO] [stderr] | [INFO] [stderr] 64 | let mut parent: requests::Point; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_parent` instead [INFO] [stderr] [INFO] [stderr] warning: value assigned to `parent` is never read [INFO] [stderr] --> src/mover.rs:76:9 [INFO] [stderr] | [INFO] [stderr] 76 | parent = goal; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: function is never used: `idToPoint` [INFO] [stderr] --> src/mover.rs:31:4 [INFO] [stderr] | [INFO] [stderr] 31 | fn idToPoint(id: i32, size: i32) -> requests::Point { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `pointToID` should have a snake case name [INFO] [stderr] --> src/mover.rs:27:4 [INFO] [stderr] | [INFO] [stderr] 27 | fn pointToID(point: requests::Point, size: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `point_to_id` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_snake_case)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function `idToPoint` should have a snake case name [INFO] [stderr] --> src/mover.rs:31:4 [INFO] [stderr] | [INFO] [stderr] 31 | fn idToPoint(id: i32, size: i32) -> requests::Point { [INFO] [stderr] | ^^^^^^^^^ help: convert the identifier to snake case: `id_to_point` [INFO] [stderr] [INFO] [stderr] warning: variable `pointID` should have a snake case name [INFO] [stderr] --> src/mover.rs:78:13 [INFO] [stderr] | [INFO] [stderr] 78 | let pointID = pointToID(point, size); [INFO] [stderr] | ^^^^^^^ help: convert the identifier to snake case: `point_id` [INFO] [stderr] [INFO] [stderr] warning: variable `turnData` should have a snake case name [INFO] [stderr] --> src/mover.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 104 | let turnData = r#"{ [INFO] [stderr] | ^^^^^^^^ help: convert the identifier to snake case: `turn_data` [INFO] [stderr] [INFO] [stderr] warning: `battlesnake` (bin "battlesnake" test) generated 11 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.47s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/battlesnake-3eac910ffd22601b) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test mover::tests::it_works ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- mover::tests::it_works stdout ---- [INFO] [stdout] turn: Turn { game: Game { id: "game-00fe20da-94ad-11ea-bb37", timeout: 500 }, turn: 14, board: Board { height: 11, width: 11, food: [Point { x: 5, y: 5 }, Point { x: 9, y: 0 }, Point { x: 2, y: 6 }], snakes: [Snake { id: "snake-508e96ac-94ad-11ea-bb37", name: "My Snake", health: 54, body: [Point { x: 0, y: 0 }, Point { x: 1, y: 0 }, Point { x: 2, y: 0 }], head: Point { x: 0, y: 0 }, length: 3, shout: "why are we shouting??", squad: Some(""), latency: "111" }, Snake { id: "snake-b67f4906-94ae-11ea-bb37", name: "Another Snake", health: 16, body: [Point { x: 5, y: 4 }, Point { x: 5, y: 3 }, Point { x: 6, y: 3 }, Point { x: 6, y: 2 }], head: Point { x: 5, y: 4 }, length: 4, shout: "I'm not really sure...", squad: Some(""), latency: "222" }], hazards: [Point { x: 3, y: 2 }] }, you: Snake { id: "snake-508e96ac-94ad-11ea-bb37", name: "My Snake", health: 54, body: [Point { x: 0, y: 0 }, Point { x: 1, y: 0 }, Point { x: 2, y: 0 }], head: Point { x: 0, y: 0 }, length: 3, shout: "why are we shouting??", squad: Some(""), latency: "111" } } [INFO] [stdout] grid: [[1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]] [INFO] [stdout] thread 'mover::tests::it_works' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `Move { movement: Down, shout: None }`, [INFO] [stdout] right: `Move { movement: Left, shout: None }`', src/mover.rs:182:5 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x555aefd6c94c - std::backtrace_rs::backtrace::libunwind::trace::h7630ba4cba718aa0 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stdout] 1: 0x555aefd6c94c - std::backtrace_rs::backtrace::trace_unsynchronized::he7498e79c157f5ac [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x555aefd6c94c - std::sys_common::backtrace::_print_fmt::hdaebadaee17bca49 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x555aefd6c94c - ::fmt::h82b0e3aaf8a96140 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x555aefd8f6dc - core::fmt::write::h72801a82c94e6ff1 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/fmt/mod.rs:1149:17 [INFO] [stdout] 5: 0x555aefd68885 - std::io::Write::write_fmt::h21d7683cabdb4c35 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/io/mod.rs:1697:15 [INFO] [stdout] 6: 0x555aefd6e3a0 - std::sys_common::backtrace::_print::h1c9a1d19c48821c1 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x555aefd6e3a0 - std::sys_common::backtrace::print::h7ce8802039fa9d0e [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x555aefd6e3a0 - std::panicking::default_hook::{{closure}}::hb2a74a8c1499c326 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:211:50 [INFO] [stdout] 9: 0x555aefd6df86 - std::panicking::default_hook::hf4f180b00076f2b2 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:225:9 [INFO] [stdout] 10: 0x555aefd6ea54 - std::panicking::rust_panic_with_hook::he85ce8435493b711 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:606:17 [INFO] [stdout] 11: 0x555aefd6e530 - std::panicking::begin_panic_handler::{{closure}}::h31e15f69e6235bd2 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:502:13 [INFO] [stdout] 12: 0x555aefd6ce04 - std::sys_common::backtrace::__rust_end_short_backtrace::hfce2fadb61aaa3ae [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys_common/backtrace.rs:139:18 [INFO] [stdout] 13: 0x555aefd6e499 - rust_begin_unwind [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:498:5 [INFO] [stdout] 14: 0x555aefcce871 - core::panicking::panic_fmt::h7b8580d81fcbbacd [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/panicking.rs:107:14 [INFO] [stdout] 15: 0x555aefd8e288 - core::panicking::assert_failed_inner::hc71171cfb6f4bc69 [INFO] [stdout] 16: 0x555aefce8eda - core::panicking::assert_failed::had44c2e64b875e8a [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/panicking.rs:145:5 [INFO] [stdout] 17: 0x555aefcf366a - battlesnake::mover::tests::it_works::h6de52c460a3c80ec [INFO] [stdout] at /opt/rustwide/workdir/src/mover.rs:182:5 [INFO] [stdout] 18: 0x555aefcf34aa - battlesnake::mover::tests::it_works::{{closure}}::hae7785e99b3bde9f [INFO] [stdout] at /opt/rustwide/workdir/src/mover.rs:103:3 [INFO] [stdout] 19: 0x555aefce979e - core::ops::function::FnOnce::call_once::ha9804717181ee81b [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x555aefd2af23 - core::ops::function::FnOnce::call_once::h449577f1c5b077cb [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x555aefd2af23 - test::__rust_begin_short_backtrace::h8c2a0a5090591869 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/test/src/lib.rs:585:5 [INFO] [stdout] 22: 0x555aefd29ab7 - as core::ops::function::FnOnce>::call_once::hea00a22128a38543 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/alloc/src/boxed.rs:1694:9 [INFO] [stdout] 23: 0x555aefd29ab7 - as core::ops::function::FnOnce<()>>::call_once::he10b35c3c50d78a0 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x555aefd29ab7 - std::panicking::try::do_call::hc868e78bbc5af2ab [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:406:40 [INFO] [stdout] 25: 0x555aefd29ab7 - std::panicking::try::he468aede74df1b04 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:370:19 [INFO] [stdout] 26: 0x555aefd29ab7 - std::panic::catch_unwind::hce3c9152e1cf772d [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panic.rs:133:14 [INFO] [stdout] 27: 0x555aefd29ab7 - test::run_test_in_process::h9c4ab8162080cf8c [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/test/src/lib.rs:608:18 [INFO] [stdout] 28: 0x555aefd29ab7 - test::run_test::run_test_inner::{{closure}}::he9483433cef16afe [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/test/src/lib.rs:500:39 [INFO] [stdout] 29: 0x555aefcf6dfe - test::run_test::run_test_inner::{{closure}}::h479f1f872a5501ea [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/test/src/lib.rs:527:37 [INFO] [stdout] 30: 0x555aefcf6dfe - std::sys_common::backtrace::__rust_begin_short_backtrace::h0f1e9b1f279687bc [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys_common/backtrace.rs:123:18 [INFO] [stdout] 31: 0x555aefcfbc28 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::he5560613c5f5cb83 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/thread/mod.rs:484:17 [INFO] [stdout] 32: 0x555aefcfbc28 - as core::ops::function::FnOnce<()>>::call_once::h8190a68cb05ab92f [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x555aefcfbc28 - std::panicking::try::do_call::h6ae22f5ac22596e4 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:406:40 [INFO] [stdout] 34: 0x555aefcfbc28 - std::panicking::try::h2381c25487d6a7c2 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panicking.rs:370:19 [INFO] [stdout] 35: 0x555aefcfbc28 - std::panic::catch_unwind::hfe902f4d5c9d7b6d [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/panic.rs:133:14 [INFO] [stdout] 36: 0x555aefcfbc28 - std::thread::Builder::spawn_unchecked::{{closure}}::h547fad40771a584e [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/thread/mod.rs:483:30 [INFO] [stdout] 37: 0x555aefcfbc28 - core::ops::function::FnOnce::call_once{{vtable.shim}}::he8602a9971738410 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x555aefd734e3 - as core::ops::function::FnOnce>::call_once::he162a5c338a10a39 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/alloc/src/boxed.rs:1694:9 [INFO] [stdout] 39: 0x555aefd734e3 - as core::ops::function::FnOnce>::call_once::hb27497b21740dd97 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/alloc/src/boxed.rs:1694:9 [INFO] [stdout] 40: 0x555aefd734e3 - std::sys::unix::thread::Thread::new::thread_start::he467e990e49c5136 [INFO] [stdout] at /rustc/a77da2d454e6caa227a85b16410b95f93495e7e0/library/std/src/sys/unix/thread.rs:106:17 [INFO] [stdout] 41: 0x7f1df0853609 - start_thread [INFO] [stdout] 42: 0x7f1df0625293 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] mover::tests::it_works [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin battlesnake' [INFO] running `Command { std: "docker" "inspect" "a96c3ead5eee18baf1c3bc66d989a51a060a51dfab864f0ff1733df013b1dd2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a96c3ead5eee18baf1c3bc66d989a51a060a51dfab864f0ff1733df013b1dd2e", kill_on_drop: false }` [INFO] [stdout] a96c3ead5eee18baf1c3bc66d989a51a060a51dfab864f0ff1733df013b1dd2e