[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#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fd3caf%2Fsneaky-snake" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-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-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/d3caf/sneaky-snake on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 57dfcc6149686b946a3063721c56c8873c86079e786c36f4c38294aee84caa30 [INFO] running `Command { std: "docker" "start" "-a" "57dfcc6149686b946a3063721c56c8873c86079e786c36f4c38294aee84caa30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "57dfcc6149686b946a3063721c56c8873c86079e786c36f4c38294aee84caa30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "57dfcc6149686b946a3063721c56c8873c86079e786c36f4c38294aee84caa30", kill_on_drop: false }` [INFO] [stdout] 57dfcc6149686b946a3063721c56c8873c86079e786c36f4c38294aee84caa30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 62b5924cac8bd7d29ee8a71e44c2da812fcc9fc4422120670df3f24026f8981c [INFO] running `Command { std: "docker" "start" "-a" "62b5924cac8bd7d29ee8a71e44c2da812fcc9fc4422120670df3f24026f8981c", kill_on_drop: false }` [INFO] [stderr] Checking sneaky-snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [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)]` 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)]` 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: 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: 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: 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: 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: 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] running `Command { std: "docker" "inspect" "62b5924cac8bd7d29ee8a71e44c2da812fcc9fc4422120670df3f24026f8981c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "62b5924cac8bd7d29ee8a71e44c2da812fcc9fc4422120670df3f24026f8981c", kill_on_drop: false }` [INFO] [stdout] 62b5924cac8bd7d29ee8a71e44c2da812fcc9fc4422120670df3f24026f8981c