[INFO] cloning repository https://github.com/opedro-c/snake_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/opedro-c/snake_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopedro-c%2Fsnake_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopedro-c%2Fsnake_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4c6770e9779442cbdc4c848c176547b9238fb629 [INFO] checking opedro-c/snake_game against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopedro-c%2Fsnake_game" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/opedro-c/snake_game on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/opedro-c/snake_game [INFO] finished tweaking git repo https://github.com/opedro-c/snake_game [INFO] tweaked toml for git repo https://github.com/opedro-c/snake_game written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/opedro-c/snake_game 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 76eb8cd7c7cc5bf00a364bd91f67ca6124cb4f29d4fc595e0aacfa3f108dc70c [INFO] running `Command { std: "docker" "start" "-a" "76eb8cd7c7cc5bf00a364bd91f67ca6124cb4f29d4fc595e0aacfa3f108dc70c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "76eb8cd7c7cc5bf00a364bd91f67ca6124cb4f29d4fc595e0aacfa3f108dc70c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76eb8cd7c7cc5bf00a364bd91f67ca6124cb4f29d4fc595e0aacfa3f108dc70c", kill_on_drop: false }` [INFO] [stdout] 76eb8cd7c7cc5bf00a364bd91f67ca6124cb4f29d4fc595e0aacfa3f108dc70c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bbd34c67767e0e6e2605feba9b57992f4c00eb7293144a7089bfab443cfe17d9 [INFO] running `Command { std: "docker" "start" "-a" "bbd34c67767e0e6e2605feba9b57992f4c00eb7293144a7089bfab443cfe17d9", kill_on_drop: false }` [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking snake_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/snake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/snake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows` and `columns` are never read [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | rows: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | columns: u8, [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `head`, `repr`, `direction`, and `position` are never read [INFO] [stdout] --> src/snake.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 8 | head: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | repr: SnakeBodyParts, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | direction: Directions, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeadUp`, `HeadDown`, `HeadLeft`, `HeadRight`, and `Body` are never constructed [INFO] [stdout] --> src/snake.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum SnakeBodyParts { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 16 | HeadUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | HeadDown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | HeadLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | HeadRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Body [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_body_position` and `add_body` are never used [INFO] [stdout] --> src/snake.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Snake { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 24 | pub fn update_body_position(&mut self, new_position: Position, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn add_body(&mut self, new_body: Option>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `column` are never read [INFO] [stdout] --> src/snake.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 68 | row: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 69 | column: u8 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows` and `columns` are never read [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | rows: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | columns: u8, [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `head`, `repr`, `direction`, and `position` are never read [INFO] [stdout] --> src/snake.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 8 | head: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | repr: SnakeBodyParts, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | direction: Directions, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeadUp`, `HeadDown`, `HeadLeft`, `HeadRight`, and `Body` are never constructed [INFO] [stdout] --> src/snake.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum SnakeBodyParts { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 16 | HeadUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | HeadDown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | HeadLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | HeadRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Body [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_body_position` and `add_body` are never used [INFO] [stdout] --> src/snake.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Snake { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 24 | pub fn update_body_position(&mut self, new_position: Position, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn add_body(&mut self, new_body: Option>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `column` are never read [INFO] [stdout] --> src/snake.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 68 | row: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 69 | column: u8 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.70s [INFO] running `Command { std: "docker" "inspect" "bbd34c67767e0e6e2605feba9b57992f4c00eb7293144a7089bfab443cfe17d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbd34c67767e0e6e2605feba9b57992f4c00eb7293144a7089bfab443cfe17d9", kill_on_drop: false }` [INFO] [stdout] bbd34c67767e0e6e2605feba9b57992f4c00eb7293144a7089bfab443cfe17d9 [INFO] checking opedro-c/snake_game against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopedro-c%2Fsnake_game" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/opedro-c/snake_game on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/opedro-c/snake_game [INFO] finished tweaking git repo https://github.com/opedro-c/snake_game [INFO] tweaked toml for git repo https://github.com/opedro-c/snake_game written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/opedro-c/snake_game 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41460d57d5a4f0dc7c185562929b7d0c8853366f7d95520be1c3618219e3304e [INFO] running `Command { std: "docker" "start" "-a" "41460d57d5a4f0dc7c185562929b7d0c8853366f7d95520be1c3618219e3304e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41460d57d5a4f0dc7c185562929b7d0c8853366f7d95520be1c3618219e3304e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41460d57d5a4f0dc7c185562929b7d0c8853366f7d95520be1c3618219e3304e", kill_on_drop: false }` [INFO] [stdout] 41460d57d5a4f0dc7c185562929b7d0c8853366f7d95520be1c3618219e3304e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 88f208e9729ecb1c02025a7cdf6997c12dc9eaf89b19381ae6836c16da7b2883 [INFO] running `Command { std: "docker" "start" "-a" "88f208e9729ecb1c02025a7cdf6997c12dc9eaf89b19381ae6836c16da7b2883", kill_on_drop: false }` [INFO] [stderr] Checking numtoa v0.1.0 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking termion v1.5.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking snake_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/snake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/snake.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows` and `columns` are never read [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | rows: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | columns: u8, [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `head`, `repr`, `direction`, and `position` are never read [INFO] [stdout] --> src/snake.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 8 | head: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | repr: SnakeBodyParts, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | direction: Directions, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeadUp`, `HeadDown`, `HeadLeft`, `HeadRight`, and `Body` are never constructed [INFO] [stdout] --> src/snake.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum SnakeBodyParts { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 16 | HeadUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | HeadDown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | HeadLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | HeadRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Body [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_body_position` and `add_body` are never used [INFO] [stdout] --> src/snake.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Snake { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 24 | pub fn update_body_position(&mut self, new_position: Position, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn add_body(&mut self, new_body: Option>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `column` are never read [INFO] [stdout] --> src/snake.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 68 | row: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 69 | column: u8 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `rows` and `columns` are never read [INFO] [stdout] --> src/board.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Board { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 5 | rows: u8, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | columns: u8, [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] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `head`, `repr`, `direction`, and `position` are never read [INFO] [stdout] --> src/snake.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 7 | struct Snake { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 8 | head: bool, [INFO] [stdout] | ^^^^ [INFO] [stdout] 9 | repr: SnakeBodyParts, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | direction: Directions, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 11 | position: Position, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `HeadUp`, `HeadDown`, `HeadLeft`, `HeadRight`, and `Body` are never constructed [INFO] [stdout] --> src/snake.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | enum SnakeBodyParts { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 16 | HeadUp, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | HeadDown, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | HeadLeft, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 19 | HeadRight, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 20 | Body [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `update_body_position` and `add_body` are never used [INFO] [stdout] --> src/snake.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl Snake { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 24 | pub fn update_body_position(&mut self, new_position: Position, direction: Directions) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn add_body(&mut self, new_body: Option>) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `row` and `column` are never read [INFO] [stdout] --> src/snake.rs:68:5 [INFO] [stdout] | [INFO] [stdout] 67 | struct Position { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 68 | row: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] 69 | column: u8 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.78s [INFO] running `Command { std: "docker" "inspect" "88f208e9729ecb1c02025a7cdf6997c12dc9eaf89b19381ae6836c16da7b2883", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "88f208e9729ecb1c02025a7cdf6997c12dc9eaf89b19381ae6836c16da7b2883", kill_on_drop: false }` [INFO] [stdout] 88f208e9729ecb1c02025a7cdf6997c12dc9eaf89b19381ae6836c16da7b2883