[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#b70888601af92f6cdc0364abab3446e418b91d36 for pr-86479 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKlotzAndrew%2Fbattlesnake" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KlotzAndrew/battlesnake on toolchain b70888601af92f6cdc0364abab3446e418b91d36 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "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-1/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" "+b70888601af92f6cdc0364abab3446e418b91d36" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c3132a8e35bfe2f32db1c3695bb7ac8162458292b922f8c28a03d66a14e8389b [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" "c3132a8e35bfe2f32db1c3695bb7ac8162458292b922f8c28a03d66a14e8389b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c3132a8e35bfe2f32db1c3695bb7ac8162458292b922f8c28a03d66a14e8389b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3132a8e35bfe2f32db1c3695bb7ac8162458292b922f8c28a03d66a14e8389b", kill_on_drop: false }` [INFO] [stdout] c3132a8e35bfe2f32db1c3695bb7ac8162458292b922f8c28a03d66a14e8389b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d031712bb5e41fc8288704eeb9fc9ff742cfa62788e89c0218b8039fcddb6d14 [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" "d031712bb5e41fc8288704eeb9fc9ff742cfa62788e89c0218b8039fcddb6d14", kill_on_drop: false }` [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [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 log v0.4.14 [INFO] [stderr] Compiling opaque-debug v0.3.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling syn v1.0.73 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling typeable v0.1.2 [INFO] [stderr] Compiling traitobject v0.1.0 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling state v0.4.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling fixedbitset v0.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.5 [INFO] [stderr] Compiling tinyvec v1.2.0 [INFO] [stderr] Compiling base64 v0.9.3 [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 filetime v0.2.14 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling generic-array v0.14.4 [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 indexmap v1.6.2 [INFO] [stderr] Compiling inotify v0.7.1 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling mime v0.2.6 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling petgraph v0.5.1 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling notify v4.0.17 [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 polyval v0.4.5 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling sha2 v0.9.5 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling idna v0.1.5 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling cookie v0.11.4 [INFO] [stderr] Compiling url v1.7.2 [INFO] [stderr] Compiling serde_derive v1.0.126 [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 serde v1.0.126 [INFO] [stderr] Compiling rocket_http v0.4.10 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling serde_json v1.0.64 [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 14s [INFO] running `Command { std: "docker" "inspect" "d031712bb5e41fc8288704eeb9fc9ff742cfa62788e89c0218b8039fcddb6d14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d031712bb5e41fc8288704eeb9fc9ff742cfa62788e89c0218b8039fcddb6d14", kill_on_drop: false }` [INFO] [stdout] d031712bb5e41fc8288704eeb9fc9ff742cfa62788e89c0218b8039fcddb6d14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] be3b350198ef8a6ba1d2d22b3d602299db061330a3f2bf0837fb0d998861f8ac [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" "be3b350198ef8a6ba1d2d22b3d602299db061330a3f2bf0837fb0d998861f8ac", kill_on_drop: false }` [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 3.69s [INFO] running `Command { std: "docker" "inspect" "be3b350198ef8a6ba1d2d22b3d602299db061330a3f2bf0837fb0d998861f8ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "be3b350198ef8a6ba1d2d22b3d602299db061330a3f2bf0837fb0d998861f8ac", kill_on_drop: false }` [INFO] [stdout] be3b350198ef8a6ba1d2d22b3d602299db061330a3f2bf0837fb0d998861f8ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+b70888601af92f6cdc0364abab3446e418b91d36" "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] 35dfddc49a692281ebc758226d1e7ea6531c04f1aa03eb839216f03a80dd8e62 [INFO] running `Command { std: "docker" "start" "-a" "35dfddc49a692281ebc758226d1e7ea6531c04f1aa03eb839216f03a80dd8e62", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] warning: unused imports: `dijkstra`, `min_spanning_tree` [INFO] [stdout] running 1 test [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 0.15s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/battlesnake-51495a862dfcce34) [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: 0x55a724a1feb0 - std::backtrace_rs::backtrace::libunwind::trace::h99dbb39dca18857d [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/../../backtrace/src/backtrace/libunwind.rs:90:5 [INFO] [stdout] 1: 0x55a724a1feb0 - std::backtrace_rs::backtrace::trace_unsynchronized::h832861927e9cfedf [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x55a724a1feb0 - std::sys_common::backtrace::_print_fmt::h3d18154c77dcf310 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:67:5 [INFO] [stdout] 3: 0x55a724a1feb0 - ::fmt::he312f4ad5b9bb346 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:46:22 [INFO] [stdout] 4: 0x55a724a426fc - core::fmt::write::h9a6d9c74526a6c1b [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/fmt/mod.rs:1115:17 [INFO] [stdout] 5: 0x55a724a1ce15 - std::io::Write::write_fmt::h65d36b96410d80d7 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/io/mod.rs:1665:15 [INFO] [stdout] 6: 0x55a724a2202b - std::sys_common::backtrace::_print::h65d996766de40da4 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:49:5 [INFO] [stdout] 7: 0x55a724a2202b - std::sys_common::backtrace::print::h40df9727e635f303 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:36:9 [INFO] [stdout] 8: 0x55a724a2202b - std::panicking::default_hook::{{closure}}::hd2da4327dea91a51 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:208:50 [INFO] [stdout] 9: 0x55a724a21b3c - std::panicking::default_hook::h3d55120ad6ada158 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:222:9 [INFO] [stdout] 10: 0x55a724a226f4 - std::panicking::rust_panic_with_hook::hf85dd0bb545e3b55 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:622:17 [INFO] [stdout] 11: 0x55a724a221d7 - std::panicking::begin_panic_handler::{{closure}}::h736ae969434da9fa [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:519:13 [INFO] [stdout] 12: 0x55a724a2038c - std::sys_common::backtrace::__rust_end_short_backtrace::h6133bb80b1d6c3e0 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:141:18 [INFO] [stdout] 13: 0x55a724a22139 - rust_begin_unwind [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:515:5 [INFO] [stdout] 14: 0x55a72498b3b1 - core::panicking::panic_fmt::hcf5f6d96e1dd7099 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/panicking.rs:92:14 [INFO] [stdout] 15: 0x55a724a41018 - core::panicking::assert_failed_inner::h6ded2444c01d76f2 [INFO] [stdout] 16: 0x55a7249a6e6a - core::panicking::assert_failed::hd7364f05e0b9c5ab [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/panicking.rs:117:5 [INFO] [stdout] 17: 0x55a7249a739c - battlesnake::mover::tests::it_works::hcdefd96b482f6be6 [INFO] [stdout] at /opt/rustwide/workdir/src/mover.rs:182:5 [INFO] [stdout] 18: 0x55a7249a71da - battlesnake::mover::tests::it_works::{{closure}}::h06dcdd6ee652b2ce [INFO] [stdout] at /opt/rustwide/workdir/src/mover.rs:103:3 [INFO] [stdout] 19: 0x55a7249a746e - core::ops::function::FnOnce::call_once::h3476c6c6099568ea [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 20: 0x55a7249e6f03 - core::ops::function::FnOnce::call_once::h227fa683a5745bd3 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 21: 0x55a7249e6f03 - test::__rust_begin_short_backtrace::h3a193bd570ada00a [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/test/src/lib.rs:578:5 [INFO] [stdout] 22: 0x55a7249e5978 - as core::ops::function::FnOnce>::call_once::h262d2f411717179a [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 23: 0x55a7249e5978 - as core::ops::function::FnOnce<()>>::call_once::hfec00caec3e52a7b [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panic.rs:347:9 [INFO] [stdout] 24: 0x55a7249e5978 - std::panicking::try::do_call::ha5f42e76ffda569d [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:401:40 [INFO] [stdout] 25: 0x55a7249e5978 - std::panicking::try::h53f36df0935b9500 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:365:19 [INFO] [stdout] 26: 0x55a7249e5978 - std::panic::catch_unwind::h5a497f74b0ce006f [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panic.rs:434:14 [INFO] [stdout] 27: 0x55a7249e5978 - test::run_test_in_process::hab0aead337f48a88 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/test/src/lib.rs:601:18 [INFO] [stdout] 28: 0x55a7249e5978 - test::run_test::run_test_inner::{{closure}}::h632c383164d4cba2 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/test/src/lib.rs:493:39 [INFO] [stdout] 29: 0x55a7249b40fd - test::run_test::run_test_inner::{{closure}}::h7c4b3612891a4b58 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/test/src/lib.rs:520:37 [INFO] [stdout] 30: 0x55a7249b40fd - std::sys_common::backtrace::__rust_begin_short_backtrace::habf7d8a08419d00e [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys_common/backtrace.rs:125:18 [INFO] [stdout] 31: 0x55a7249b8828 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h3acba502e2068204 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/thread/mod.rs:476:17 [INFO] [stdout] 32: 0x55a7249b8828 - as core::ops::function::FnOnce<()>>::call_once::h526ef819c1964a35 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panic.rs:347:9 [INFO] [stdout] 33: 0x55a7249b8828 - std::panicking::try::do_call::hc0b5663d6373cec8 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:401:40 [INFO] [stdout] 34: 0x55a7249b8828 - std::panicking::try::ha9007ede9d35dcd6 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panicking.rs:365:19 [INFO] [stdout] 35: 0x55a7249b8828 - std::panic::catch_unwind::hf60d56329ebbb81c [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/panic.rs:434:14 [INFO] [stdout] 36: 0x55a7249b8828 - std::thread::Builder::spawn_unchecked::{{closure}}::hb1722d498f4ce777 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/thread/mod.rs:475:30 [INFO] [stdout] 37: 0x55a7249b8828 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h15eb01325730c962 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/core/src/ops/function.rs:227:5 [INFO] [stdout] 38: 0x55a724a27267 - as core::ops::function::FnOnce>::call_once::h09f167e08fc945ff [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 39: 0x55a724a27267 - as core::ops::function::FnOnce>::call_once::hf814fe85eeb118e0 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/alloc/src/boxed.rs:1572:9 [INFO] [stdout] 40: 0x55a724a27267 - std::sys::unix::thread::Thread::new::thread_start::hb71b17934c5f5e68 [INFO] [stdout] at /rustc/b70888601af92f6cdc0364abab3446e418b91d36/library/std/src/sys/unix/thread.rs:91:17 [INFO] [stdout] 41: 0x7feccd361609 - start_thread [INFO] [stdout] 42: 0x7feccd133293 - 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.04s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin battlesnake' [INFO] running `Command { std: "docker" "inspect" "35dfddc49a692281ebc758226d1e7ea6531c04f1aa03eb839216f03a80dd8e62", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35dfddc49a692281ebc758226d1e7ea6531c04f1aa03eb839216f03a80dd8e62", kill_on_drop: false }` [INFO] [stdout] 35dfddc49a692281ebc758226d1e7ea6531c04f1aa03eb839216f03a80dd8e62