[INFO] cloning repository https://github.com/d3caf/sneaky-snake [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/d3caf/sneaky-snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3caf%2Fsneaky-snake", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3caf%2Fsneaky-snake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f8302ab4d776e1ca53cf863d0d8ba5b9109e34b [INFO] checking d3caf/sneaky-snake against try#93086cfebfccb79083c59d0d3b2052944bba643c for pr-146440-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3caf%2Fsneaky-snake" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/d3caf/sneaky-snake [INFO] finished tweaking git repo https://github.com/d3caf/sneaky-snake [INFO] tweaked toml for git repo https://github.com/d3caf/sneaky-snake written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/d3caf/sneaky-snake on toolchain 93086cfebfccb79083c59d0d3b2052944bba643c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/d3caf/sneaky-snake already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 48f32dc4add1ed1b3cbf280b8f5d7159399fbce4f6e6044a156e62d5e7835d83 [INFO] running `Command { std: "docker" "start" "-a" "48f32dc4add1ed1b3cbf280b8f5d7159399fbce4f6e6044a156e62d5e7835d83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "48f32dc4add1ed1b3cbf280b8f5d7159399fbce4f6e6044a156e62d5e7835d83", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f32dc4add1ed1b3cbf280b8f5d7159399fbce4f6e6044a156e62d5e7835d83", kill_on_drop: false }` [INFO] [stdout] 48f32dc4add1ed1b3cbf280b8f5d7159399fbce4f6e6044a156e62d5e7835d83 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+93086cfebfccb79083c59d0d3b2052944bba643c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b1277dddf12ab8567aa72357ea5b525ef7df60026c5e38194dca31e10a4d0c8a [INFO] running `Command { std: "docker" "start" "-a" "b1277dddf12ab8567aa72357ea5b525ef7df60026c5e38194dca31e10a4d0c8a", kill_on_drop: false }` [INFO] [stderr] Checking sneaky-snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: struct `Snake` is never constructed [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Snake { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Snake` is never constructed [INFO] [stdout] --> src/main.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Snake { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] = note: `#[deny(unused_unconstructable_pub_structs)]` (part of `#[deny(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Board` is never constructed [INFO] [stdout] --> src/main.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: struct `Board` is never constructed [INFO] [stdout] --> src/main.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Board { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tournament`, `League`, `Arena`, and `Challenge` are never constructed [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum GameSource { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 9 | Tournament, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | League, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Arena, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | Challenge, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameSource` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Tournament`, `League`, `Arena`, and `Challenge` are never constructed [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | enum GameSource { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 9 | Tournament, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 10 | League, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 11 | Arena, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 12 | Challenge, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GameSource` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `map`, `timeout`, `source`, and `ruleset` are never read [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 18 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | map: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | timeout: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | source: GameSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | ruleset: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `map`, `timeout`, `source`, and `ruleset` are never read [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 17 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 18 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 19 | map: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | timeout: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 21 | source: GameSource, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 22 | ruleset: Option>, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Game` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 38 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 39 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | health: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | latency: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 43 | head: Position, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | shout: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | squad: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Snake` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 38 | id: String, [INFO] [stdout] | ^^ [INFO] [stdout] 39 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 40 | health: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | body: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 42 | latency: u64, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 43 | head: Position, [INFO] [stdout] | ^^^^ [INFO] [stdout] 44 | length: u16, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 45 | shout: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 46 | squad: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Snake` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height`, `width`, `food`, `hazards`, and `snakes` are never read [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 51 | height: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | width: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | food: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | hazards: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | snakes: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `height`, `width`, `food`, `hazards`, and `snakes` are never read [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 50 | pub struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 51 | height: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 52 | width: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 53 | food: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 54 | hazards: Vec, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | snakes: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Board` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameState` is never constructed [INFO] [stdout] --> src/main.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct GameState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GameState` is never constructed [INFO] [stdout] --> src/main.rs:59:8 [INFO] [stdout] | [INFO] [stdout] 59 | struct GameState { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Move` is never used [INFO] [stdout] --> src/logic.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Move` is never used [INFO] [stdout] --> src/logic.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Move { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_move` is never used [INFO] [stdout] --> src/logic.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_move(_state: &GameState) -> Move { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_move` is never used [INFO] [stdout] --> src/logic.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_move(_state: &GameState) -> Move { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sneaky-snake` (bin "sneaky-snake") due to 2 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `sneaky-snake` (bin "sneaky-snake" test) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b1277dddf12ab8567aa72357ea5b525ef7df60026c5e38194dca31e10a4d0c8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1277dddf12ab8567aa72357ea5b525ef7df60026c5e38194dca31e10a4d0c8a", kill_on_drop: false }` [INFO] [stdout] b1277dddf12ab8567aa72357ea5b525ef7df60026c5e38194dca31e10a4d0c8a