[INFO] cloning repository https://github.com/csauve/slughorn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/csauve/slughorn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsauve%2Fslughorn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsauve%2Fslughorn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5a4c82f2f4169ca156b13d7053117a55db419f54 [INFO] testing csauve/slughorn against master#0e21a27075a8c508f00d1a4430497f17ce93d5c9 for pr-98839 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcsauve%2Fslughorn" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/csauve/slughorn on toolchain 0e21a27075a8c508f00d1a4430497f17ce93d5c9 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4/source/rust-toolchain [INFO] started tweaking git repo https://github.com/csauve/slughorn [INFO] finished tweaking git repo https://github.com/csauve/slughorn [INFO] tweaked toml for git repo https://github.com/csauve/slughorn written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/csauve/slughorn already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ef6b362b22ba85e960877c178db501809ca1ff5188a64010e8391842e3faab79 [INFO] running `Command { std: "docker" "start" "-a" "ef6b362b22ba85e960877c178db501809ca1ff5188a64010e8391842e3faab79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ef6b362b22ba85e960877c178db501809ca1ff5188a64010e8391842e3faab79", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef6b362b22ba85e960877c178db501809ca1ff5188a64010e8391842e3faab79", kill_on_drop: false }` [INFO] [stdout] ef6b362b22ba85e960877c178db501809ca1ff5188a64010e8391842e3faab79 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 57af98db915b1099f2af267dc4295cd2ebbe7171efc3f09c3b0ec5a073c7e262 [INFO] running `Command { std: "docker" "start" "-a" "57af98db915b1099f2af267dc4295cd2ebbe7171efc3f09c3b0ec5a073c7e262", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling memchr v2.3.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling futures-core v0.3.1 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling futures-sink v0.3.1 [INFO] [stderr] Compiling bytes v0.5.3 [INFO] [stderr] Compiling fnv v1.0.6 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling arc-swap v0.4.4 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling futures-io v0.3.1 [INFO] [stderr] Compiling futures-task v0.3.1 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling pin-project-lite v0.1.2 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling rayon-core v1.7.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling try-lock v0.2.2 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling either v1.5.3 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling http v0.2.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling indexmap v1.3.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling num_cpus v1.12.0 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling atty v0.2.13 [INFO] [stderr] Compiling crossbeam-queue v0.2.1 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling mio v0.6.21 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling crossbeam-deque v0.7.2 [INFO] [stderr] Compiling chrono v0.4.10 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling uuid v0.8.1 [INFO] [stderr] Compiling rayon v1.3.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling tokio-macros v0.2.4 [INFO] [stderr] Compiling pin-project-internal v0.4.6 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Compiling tokio v0.2.11 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Compiling pin-project v0.4.6 [INFO] [stderr] Compiling futures-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.1 [INFO] [stderr] Compiling futures v0.3.1 [INFO] [stderr] Compiling tokio-util v0.2.0 [INFO] [stderr] Compiling h2 v0.2.1 [INFO] [stderr] Compiling hyper v0.13.1 [INFO] [stderr] Compiling serde_json v1.0.44 [INFO] [stderr] Compiling bookworm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `linear` is never used [INFO] [stdout] --> src/game/offset.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn linear(self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `abs` is never used [INFO] [stdout] --> src/game/offset.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn abs(&self) -> Offset { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/path.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new() -> Path { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_bounds` is never used [INFO] [stdout] --> src/game/path.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn get_bounds(&self) -> Option<(Coord, Coord)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `slide_end` is never used [INFO] [stdout] --> src/game/path.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn slide_end(&mut self, offset: Offset) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `pop_start` is never used [INFO] [stdout] --> src/game/path.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | pub fn pop_start(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `dist` is never used [INFO] [stdout] --> src/game/path.rs:95:12 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn dist(&self) -> UnitAbs { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `end` is never used [INFO] [stdout] --> src/game/path.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn end(&self) -> Option { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `tail` is never used [INFO] [stdout] --> src/game/snake.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn tail(&self) -> Coord { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_closest_snake_by_pathfind` is never used [INFO] [stdout] --> src/game/board.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn get_closest_snake_by_pathfind(&self, coord: Coord) -> Option<(usize, UnitAbs)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `enemies` is never used [INFO] [stdout] --> src/game/board.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn enemies(&self) -> &[Snake] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `area` is never used [INFO] [stdout] --> src/game/board.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn area(&self) -> UnitAbs { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `config` are never read [INFO] [stdout] --> src/host.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | struct LiveSnake { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | pub id: ApiSnakeId, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | pub addr: String, [INFO] [stdout] 18 | pub config: ApiSnakeConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiveSnake` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 30.01s [INFO] running `Command { std: "docker" "inspect" "57af98db915b1099f2af267dc4295cd2ebbe7171efc3f09c3b0ec5a073c7e262", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57af98db915b1099f2af267dc4295cd2ebbe7171efc3f09c3b0ec5a073c7e262", kill_on_drop: false }` [INFO] [stdout] 57af98db915b1099f2af267dc4295cd2ebbe7171efc3f09c3b0ec5a073c7e262 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82529bbc33bbae1893de142972924fefcbea4905f6fe1439ec05a7ae349ca92f [INFO] running `Command { std: "docker" "start" "-a" "82529bbc33bbae1893de142972924fefcbea4905f6fe1439ec05a7ae349ca92f", kill_on_drop: false }` [INFO] [stderr] Compiling bookworm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: associated function `abs` is never used [INFO] [stdout] --> src/game/offset.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn abs(&self) -> Offset { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/game/path.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new() -> Path { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_bounds` is never used [INFO] [stdout] --> src/game/path.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn get_bounds(&self) -> Option<(Coord, Coord)> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `get_closest_snake_by_pathfind` is never used [INFO] [stdout] --> src/game/board.rs:273:12 [INFO] [stdout] | [INFO] [stdout] 273 | pub fn get_closest_snake_by_pathfind(&self, coord: Coord) -> Option<(usize, UnitAbs)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `area` is never used [INFO] [stdout] --> src/game/board.rs:406:12 [INFO] [stdout] | [INFO] [stdout] 406 | pub fn area(&self) -> UnitAbs { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `config` are never read [INFO] [stdout] --> src/host.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | struct LiveSnake { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | pub id: ApiSnakeId, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | pub addr: String, [INFO] [stdout] 18 | pub config: ApiSnakeConfig, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LiveSnake` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_head_to_head_kill` is never used [INFO] [stdout] --> src/brain.rs:356:8 [INFO] [stdout] | [INFO] [stdout] 356 | fn test_head_to_head_kill() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 3.98s [INFO] running `Command { std: "docker" "inspect" "82529bbc33bbae1893de142972924fefcbea4905f6fe1439ec05a7ae349ca92f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82529bbc33bbae1893de142972924fefcbea4905f6fe1439ec05a7ae349ca92f", kill_on_drop: false }` [INFO] [stdout] 82529bbc33bbae1893de142972924fefcbea4905f6fe1439ec05a7ae349ca92f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+0e21a27075a8c508f00d1a4430497f17ce93d5c9" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 89857f198c3ad8365b8c75f652580ee009a3ac977690250961ea106a23e54b60 [INFO] running `Command { std: "docker" "start" "-a" "89857f198c3ad8365b8c75f652580ee009a3ac977690250961ea106a23e54b60", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: associated function `abs` is never used [INFO] [stderr] --> src/game/offset.rs:67:12 [INFO] [stderr] | [INFO] [stderr] 67 | pub fn abs(&self) -> Offset { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/game/path.rs:15:12 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn new() -> Path { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `get_bounds` is never used [INFO] [stderr] --> src/game/path.rs:33:12 [INFO] [stderr] | [INFO] [stderr] 33 | pub fn get_bounds(&self) -> Option<(Coord, Coord)> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `get_closest_snake_by_pathfind` is never used [INFO] [stderr] --> src/game/board.rs:273:12 [INFO] [stderr] | [INFO] [stderr] 273 | pub fn get_closest_snake_by_pathfind(&self, coord: Coord) -> Option<(usize, UnitAbs)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `area` is never used [INFO] [stderr] --> src/game/board.rs:406:12 [INFO] [stderr] | [INFO] [stderr] 406 | pub fn area(&self) -> UnitAbs { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `id` and `config` are never read [INFO] [stderr] --> src/host.rs:16:9 [INFO] [stderr] | [INFO] [stderr] 15 | struct LiveSnake { [INFO] [stderr] | --------- fields in this struct [INFO] [stderr] 16 | pub id: ApiSnakeId, [INFO] [stderr] | ^^ [INFO] [stderr] 17 | pub addr: String, [INFO] [stderr] 18 | pub config: ApiSnakeConfig, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `LiveSnake` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: function `test_head_to_head_kill` is never used [INFO] [stderr] --> src/brain.rs:356:8 [INFO] [stderr] | [INFO] [stderr] 356 | fn test_head_to_head_kill() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `bookworm` (bin "bookworm" test) generated 7 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.96s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/bookworm-c6093bb903840999) [INFO] [stdout] [INFO] [stdout] running 34 tests [INFO] [stdout] test api::tests::test_parse_basic ... ok [INFO] [stdout] test game::board::tests::test_advance ... ok [INFO] [stdout] test game::board::tests::test_from_api_basic ... ok [INFO] [stdout] test game::board::tests::test_you_die ... ok [INFO] [stdout] test game::board::tests::test_from_api_official ... ok [INFO] [stdout] test game::coord::tests::test_coord_ops ... ok [INFO] [stdout] test game::coord::tests::test_coord_and_offset ... ok [INFO] [stdout] test game::coord::tests::test_bound ... ok [INFO] [stdout] test game::coord::tests::test_dir_into_offset ... ok [INFO] [stdout] test game::offset::tests::test_manhattan_dist ... ok [INFO] [stdout] test game::offset::tests::test_offset_ops ... ok [INFO] [stdout] test game::offset::tests::test_linear ... ok [INFO] [stdout] test game::path::tests::test_extend ... ok [INFO] [stdout] test game::path::tests::test_length ... ok [INFO] [stdout] test game::path::tests::test_new_basic ... ok [INFO] [stdout] test game::path::tests::test_slide ... ok [INFO] [stdout] test brain::tests::test_almost_trapped ... ok [INFO] [stdout] test game::snake::tests::test_from_api_ok ... ok [INFO] [stdout] test game::path::tests::test_start_end ... ok [INFO] [stdout] test brain::tests::test_lookahead_best_dead_end ... ok [INFO] [stdout] test util::tests::test ... ok [INFO] [stdout] test game::snake::tests::test_snake_body ... ok [INFO] [stdout] test game::path::tests::test_pop ... ok [INFO] [stdout] test brain::tests::test_facing_self ... ok [INFO] [stdout] test brain::tests::test_trap_enemy ... ok [INFO] [stdout] test brain::tests::test_lookahead_basic ... ok [INFO] [stdout] test brain::tests::test_enemy_already_trapped ... ok [INFO] [stdout] test brain::tests::test_avoid_starvation ... ok [INFO] [stdout] test brain::tests::test_avoid_head_to_head_death ... ok [INFO] [stdout] test brain::tests::test_avoid_trap_opportunity ... ok [INFO] [stdout] test brain::tests::test_avoid_head_to_head_death2 ... ok [INFO] [stdout] test brain::tests::test_lookahead_avoid_dead_end ... FAILED [INFO] [stdout] test brain::tests::test_facing_wall ... ok [INFO] [stdout] test brain::tests::test_facing_other ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- brain::tests::test_lookahead_avoid_dead_end stdout ---- [INFO] [stdout] thread 'brain::tests::test_lookahead_avoid_dead_end' panicked at 'assertion failed: `(left == right)` [INFO] [stdout] left: `Right`, [INFO] [stdout] right: `Up`', src/brain.rs:292:9 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5559449825b0 - std::backtrace_rs::backtrace::libunwind::trace::h8bb00aa01257e658 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 1: 0x5559449825b0 - std::backtrace_rs::backtrace::trace_unsynchronized::hbe32e96be15adfbb [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5559449825b0 - std::sys_common::backtrace::_print_fmt::h9784b9af5bb44c28 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stdout] 3: 0x5559449825b0 - ::fmt::h1c87dcc158231dee [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stdout] 4: 0x5559449a59ec - core::fmt::write::h75398e49432c4e9d [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/fmt/mod.rs:1198:17 [INFO] [stdout] 5: 0x55594497eea5 - std::io::Write::write_fmt::hf0afd61938d8b31f [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/io/mod.rs:1672:15 [INFO] [stdout] 6: 0x555944984021 - std::sys_common::backtrace::_print::h39d989fb5cda9189 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stdout] 7: 0x555944984021 - std::sys_common::backtrace::print::hafd951f3a156e9b8 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stdout] 8: 0x555944984021 - std::panicking::default_hook::{{closure}}::h3c15d03d8aed3f76 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:295:22 [INFO] [stdout] 9: 0x555944983c76 - std::panicking::default_hook::h6145e5c2935e997c [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:311:9 [INFO] [stdout] 10: 0x5559449846c3 - std::panicking::rust_panic_with_hook::h4418702214a7a914 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:698:17 [INFO] [stdout] 11: 0x5559449845b7 - std::panicking::begin_panic_handler::{{closure}}::h0cc75df59cfeee86 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:588:13 [INFO] [stdout] 12: 0x555944982a84 - std::sys_common::backtrace::__rust_end_short_backtrace::hfebe76dc31b59894 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys_common/backtrace.rs:138:18 [INFO] [stdout] 13: 0x5559449842e2 - rust_begin_unwind [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:584:5 [INFO] [stdout] 14: 0x55594480d293 - core::panicking::panic_fmt::h28c6dc36de3ad6b2 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/panicking.rs:142:14 [INFO] [stdout] 15: 0x5559449a3eb8 - core::panicking::assert_failed_inner::hce4e9f80600fd426 [INFO] [stdout] 16: 0x555944836d9a - core::panicking::assert_failed::he4369dae634010ec [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/panicking.rs:181:5 [INFO] [stdout] 17: 0x5559448804d5 - bookworm::brain::tests::test_lookahead_avoid_dead_end::h64925eb240ef4d87 [INFO] [stdout] at /opt/rustwide/workdir/src/brain.rs:292:9 [INFO] [stdout] 18: 0x5559448803ba - bookworm::brain::tests::test_lookahead_avoid_dead_end::{{closure}}::h6bab9abdf7fa1773 [INFO] [stdout] at /opt/rustwide/workdir/src/brain.rs:290:5 [INFO] [stdout] 19: 0x55594482fdde - core::ops::function::FnOnce::call_once::h136578a42b55a2ae [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/ops/function.rs:248:5 [INFO] [stdout] 20: 0x5559448bcbe3 - core::ops::function::FnOnce::call_once::hce3bf1b84d649375 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/ops/function.rs:248:5 [INFO] [stdout] 21: 0x5559448bcbe3 - test::__rust_begin_short_backtrace::h268c4dff1fdc08d8 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/test/src/lib.rs:572:5 [INFO] [stdout] 22: 0x5559448bb9cc - as core::ops::function::FnOnce>::call_once::h77064d56d798d725 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/alloc/src/boxed.rs:1934:9 [INFO] [stdout] 23: 0x5559448bb9cc - as core::ops::function::FnOnce<()>>::call_once::h362603611fd702ef [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 24: 0x5559448bb9cc - std::panicking::try::do_call::hc24e8889c40c0b88 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:492:40 [INFO] [stdout] 25: 0x5559448bb9cc - std::panicking::try::h64fd9954f6422690 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:456:19 [INFO] [stdout] 26: 0x5559448bb9cc - std::panic::catch_unwind::h8590ab8b8c78e131 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panic.rs:137:14 [INFO] [stdout] 27: 0x5559448bb9cc - test::run_test_in_process::hd8ca038d3f817f7d [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/test/src/lib.rs:595:18 [INFO] [stdout] 28: 0x5559448bb9cc - test::run_test::run_test_inner::{{closure}}::h57a8a429b5e58c39 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/test/src/lib.rs:489:39 [INFO] [stdout] 29: 0x55594488793c - test::run_test::run_test_inner::{{closure}}::h72dbbb6bf3813446 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/test/src/lib.rs:516:37 [INFO] [stdout] 30: 0x55594488793c - std::sys_common::backtrace::__rust_begin_short_backtrace::h916790c31ecb4ff9 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys_common/backtrace.rs:122:18 [INFO] [stdout] 31: 0x55594488d91f - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h4ffbab0d0d8ad2ca [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/thread/mod.rs:505:17 [INFO] [stdout] 32: 0x55594488d91f - as core::ops::function::FnOnce<()>>::call_once::he8df5d343786542a [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/panic/unwind_safe.rs:271:9 [INFO] [stdout] 33: 0x55594488d91f - std::panicking::try::do_call::h80e54b75371d89cf [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:492:40 [INFO] [stdout] 34: 0x55594488d91f - std::panicking::try::h1b15ecfa1d32df7a [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panicking.rs:456:19 [INFO] [stdout] 35: 0x55594488d91f - std::panic::catch_unwind::h993ecf1ae87ebd59 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/panic.rs:137:14 [INFO] [stdout] 36: 0x55594488d91f - std::thread::Builder::spawn_unchecked_::{{closure}}::h23926ef7367e9afd [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/thread/mod.rs:504:30 [INFO] [stdout] 37: 0x55594488d91f - core::ops::function::FnOnce::call_once{{vtable.shim}}::h93ce9dab9bcb8d25 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/core/src/ops/function.rs:248:5 [INFO] [stdout] 38: 0x555944988cd3 - as core::ops::function::FnOnce>::call_once::h7fdba1c346e6c483 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/alloc/src/boxed.rs:1934:9 [INFO] [stdout] 39: 0x555944988cd3 - as core::ops::function::FnOnce>::call_once::h8839b4becacc6e1e [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/alloc/src/boxed.rs:1934:9 [INFO] [stdout] 40: 0x555944988cd3 - std::sys::unix::thread::Thread::new::thread_start::h5077fd2da854c080 [INFO] [stdout] at /rustc/0e21a27075a8c508f00d1a4430497f17ce93d5c9/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stdout] 41: 0x7fdbb653e609 - start_thread [INFO] [stdout] 42: 0x7fdbb630e133 - clone [INFO] [stdout] 43: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] brain::tests::test_lookahead_avoid_dead_end [INFO] [stdout] [INFO] [stdout] test result: FAILED. 33 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--bin bookworm' [INFO] running `Command { std: "docker" "inspect" "89857f198c3ad8365b8c75f652580ee009a3ac977690250961ea106a23e54b60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89857f198c3ad8365b8c75f652580ee009a3ac977690250961ea106a23e54b60", kill_on_drop: false }` [INFO] [stdout] 89857f198c3ad8365b8c75f652580ee009a3ac977690250961ea106a23e54b60