[INFO] cloning repository https://github.com/PulseSapphire/Snake-Game-Rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PulseSapphire/Snake-Game-Rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPulseSapphire%2FSnake-Game-Rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPulseSapphire%2FSnake-Game-Rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3ac63993b5bbb23c4bdddccde8b1caf5755e5dc9 [INFO] checking PulseSapphire/Snake-Game-Rust against master#2e6fc425411280c658d852813de01c5157255088 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPulseSapphire%2FSnake-Game-Rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PulseSapphire/Snake-Game-Rust on toolchain 2e6fc425411280c658d852813de01c5157255088 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PulseSapphire/Snake-Game-Rust [INFO] finished tweaking git repo https://github.com/PulseSapphire/Snake-Game-Rust [INFO] tweaked toml for git repo https://github.com/PulseSapphire/Snake-Game-Rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/PulseSapphire/Snake-Game-Rust 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" "+2e6fc425411280c658d852813de01c5157255088" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] da8be41aaf59b9aab530c9463bb9129726e16d0e923ab48ef550e67abff6cd6c [INFO] running `Command { std: "docker" "start" "-a" "da8be41aaf59b9aab530c9463bb9129726e16d0e923ab48ef550e67abff6cd6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da8be41aaf59b9aab530c9463bb9129726e16d0e923ab48ef550e67abff6cd6c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da8be41aaf59b9aab530c9463bb9129726e16d0e923ab48ef550e67abff6cd6c", kill_on_drop: false }` [INFO] [stdout] da8be41aaf59b9aab530c9463bb9129726e16d0e923ab48ef550e67abff6cd6c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+2e6fc425411280c658d852813de01c5157255088" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 32fd6892a155e6f5d1a0ca21615410255bbb851ddd00f070383798264ea7d4df [INFO] running `Command { std: "docker" "start" "-a" "32fd6892a155e6f5d1a0ca21615410255bbb851ddd00f070383798264ea7d4df", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking getrandom v0.2.15 [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 num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking num-bigint v0.4.5 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking snake-game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `CLIGame` is never constructed [INFO] [stdout] --> src/cli_game/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct CLIGame<'a, const W: usize, const H: usize> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CLIGame` is never constructed [INFO] [stdout] --> src/cli_game/mod.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | struct CLIGame<'a, const W: usize, const H: usize> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `start` are never used [INFO] [stdout] --> src/cli_game/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl <'a, const W: usize, const H: usize> CLIGame<'a, W, H> { [INFO] [stdout] | ----------------------------------------------------------- associated functions in this implementation [INFO] [stdout] 13 | pub fn new () -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Game` is never used [INFO] [stdout] --> src/game/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spawn_food` and `spawn_food_random` are never used [INFO] [stdout] --> src/game/engine/game_controller/food_controller.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait FoodController { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 4 | fn spawn_food(&mut self, position: &P) -> Result<(), &'static str>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | fn spawn_food_random(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_snake` is never used [INFO] [stdout] --> src/game/engine/game_controller/movement_controller.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait MovementController { [INFO] [stdout] | ------------------ method in this trait [INFO] [stdout] 2 | fn move_snake(&mut self) -> Result<(), &'static str>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BoardIterator` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait BoardIterator<'a, P: Position>: Iterator {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BoardIteratorMut` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait BoardIteratorMut<'a, P: Position>: Iterator {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IterableBoard` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait IterableBoard<'a, P: Position, I: BoardIterator<'a, P>>: [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IterableBoardMut` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait IterableBoardMut<'a, P: Position, I: BoardIteratorMut<'a, P>>: [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CancellableEvent` is never used [INFO] [stdout] --> src/game/events/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait CancellableEvent: Event { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on_event` is never used [INFO] [stdout] --> src/game/events/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait EventHandler { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 11 | fn on_event(&self, event: &mut E); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `start` are never used [INFO] [stdout] --> src/cli_game/mod.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl <'a, const W: usize, const H: usize> CLIGame<'a, W, H> { [INFO] [stdout] | ----------------------------------------------------------- associated functions in this implementation [INFO] [stdout] 13 | pub fn new () -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 29 | fn start() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AlreadyRegistered` and `DoesNotExist` are never constructed [INFO] [stdout] --> src/game/events/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum EventError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 15 | AlreadyRegistered, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | DoesNotExist, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Game` is never used [INFO] [stdout] --> src/game/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Game { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `spawn_food` and `spawn_food_random` are never used [INFO] [stdout] --> src/game/engine/game_controller/food_controller.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait FoodController { [INFO] [stdout] | -------------- methods in this trait [INFO] [stdout] 4 | fn spawn_food(&mut self, position: &P) -> Result<(), &'static str>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 5 | fn spawn_food_random(&mut self); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `move_snake` is never used [INFO] [stdout] --> src/game/engine/game_controller/movement_controller.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait MovementController { [INFO] [stdout] | ------------------ method in this trait [INFO] [stdout] 2 | fn move_snake(&mut self) -> Result<(), &'static str>; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BoardIterator` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait BoardIterator<'a, P: Position>: Iterator {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_event_handler` and `remove_event_handler` are never used [INFO] [stdout] --> src/game/events/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait EventSubject<'a, E: Event, H: EventHandler + ?Sized> { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 20 | fn add_event_handler(&mut self, event_handler: &'a H) -> Result<(), EventError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | fn remove_event_handler(&mut self, event_handler: &'a H) -> Result<(), EventError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BoardIteratorMut` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait BoardIteratorMut<'a, P: Position>: Iterator {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IterableBoard` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait IterableBoard<'a, P: Position, I: BoardIterator<'a, P>>: [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `observers` is never read [INFO] [stdout] --> src/game/events/event_manager/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct EventManager<'a, E: Event> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 5 | observers: HashSet<&'a dyn EventHandler>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IterableBoardMut` is never used [INFO] [stdout] --> src/game/engine/game_state/board/iterators.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait IterableBoardMut<'a, P: Position, I: BoardIteratorMut<'a, P>>: [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Direction` is never used [INFO] [stdout] --> src/game/types/direction.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Direction {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `CancellableEvent` is never used [INFO] [stdout] --> src/game/events/mod.rs:5:11 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait CancellableEvent: Event { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `on_event` is never used [INFO] [stdout] --> src/game/events/mod.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub trait EventHandler { [INFO] [stdout] | ------------ method in this trait [INFO] [stdout] 11 | fn on_event(&self, event: &mut E); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/game/types/direction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Direction2D { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction2D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `game_state` and `game_controller` are never read [INFO] [stdout] --> src/engine_2d/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Engine2D> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 20 | pub game_state: Rc>>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub game_controller: C, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `AlreadyRegistered` and `DoesNotExist` are never constructed [INFO] [stdout] --> src/game/events/mod.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum EventError { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 15 | AlreadyRegistered, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | DoesNotExist, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `game_state`, `observers`, and `rng` are never read [INFO] [stdout] --> src/engine_2d/game_controller/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct GameController2D<'a, R: Rng, B: Board2D> { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 20 | game_state: Weak>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | observers: HashSet<&'a dyn OnSnakeMoveHandler>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | [INFO] [stdout] 23 | rng: R, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `add_event_handler` and `remove_event_handler` are never used [INFO] [stdout] --> src/game/events/mod.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub trait EventSubject<'a, E: Event, H: EventHandler + ?Sized> { [INFO] [stdout] | ------------ methods in this trait [INFO] [stdout] 20 | fn add_event_handler(&mut self, event_handler: &'a H) -> Result<(), EventError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 21 | [INFO] [stdout] 22 | fn remove_event_handler(&mut self, event_handler: &'a H) -> Result<(), EventError>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `move_if_valid_direction`, `move_head`, and `move_tail` are never used [INFO] [stdout] --> src/engine_2d/game_controller/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a, R: Rng, B: Board2D> GameController2D<'a, R, B> { [INFO] [stdout] | ------------------------------------------------------- associated functions in this implementation [INFO] [stdout] 39 | fn move_if_valid_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn move_head(snake: &mut Snake2D, board: &mut B) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn move_tail(snake: &mut Snake2D, board: &mut B) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `observers` is never read [INFO] [stdout] --> src/game/events/event_manager/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct EventManager<'a, E: Event> { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 5 | observers: HashSet<&'a dyn EventHandler>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run_event_handlers` is never used [INFO] [stdout] --> src/engine_2d/game_controller/mod.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a, R: Rng, B: Board2D> GameController2D<'a, R, B> { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] 230 | fn run_event_handlers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Direction` is never used [INFO] [stdout] --> src/game/types/direction.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait Direction {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RandomTileGenerator` is never constructed [INFO] [stdout] --> src/engine_2d/game_state/board_2d/random_tile_generator.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RandomTileGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Up`, `Down`, `Left`, and `Right` are never constructed [INFO] [stdout] --> src/game/types/direction.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Direction2D { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | Up, [INFO] [stdout] | ^^ [INFO] [stdout] 6 | Down, [INFO] [stdout] | ^^^^ [INFO] [stdout] 7 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction2D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `game_state` and `game_controller` are never read [INFO] [stdout] --> src/engine_2d/mod.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Engine2D> { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 20 | pub game_state: Rc>>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | pub game_controller: C, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `game_state`, `observers`, and `rng` are never read [INFO] [stdout] --> src/engine_2d/game_controller/mod.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct GameController2D<'a, R: Rng, B: Board2D> { [INFO] [stdout] | ---------------- fields in this struct [INFO] [stdout] 20 | game_state: Weak>>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 21 | observers: HashSet<&'a dyn OnSnakeMoveHandler>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 22 | [INFO] [stdout] 23 | rng: R, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `move_if_valid_direction`, `move_head`, and `move_tail` are never used [INFO] [stdout] --> src/engine_2d/game_controller/mod.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 38 | impl<'a, R: Rng, B: Board2D> GameController2D<'a, R, B> { [INFO] [stdout] | ------------------------------------------------------- associated functions in this implementation [INFO] [stdout] 39 | fn move_if_valid_direction( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | fn move_head(snake: &mut Snake2D, board: &mut B) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | fn move_tail(snake: &mut Snake2D, board: &mut B) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `run_event_handlers` is never used [INFO] [stdout] --> src/engine_2d/game_controller/mod.rs:230:8 [INFO] [stdout] | [INFO] [stdout] 229 | impl<'a, R: Rng, B: Board2D> GameController2D<'a, R, B> { [INFO] [stdout] | ------------------------------------------------------- method in this implementation [INFO] [stdout] 230 | fn run_event_handlers( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RandomTileGenerator` is never constructed [INFO] [stdout] --> src/engine_2d/game_state/board_2d/random_tile_generator.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct RandomTileGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.35s [INFO] running `Command { std: "docker" "inspect" "32fd6892a155e6f5d1a0ca21615410255bbb851ddd00f070383798264ea7d4df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32fd6892a155e6f5d1a0ca21615410255bbb851ddd00f070383798264ea7d4df", kill_on_drop: false }` [INFO] [stdout] 32fd6892a155e6f5d1a0ca21615410255bbb851ddd00f070383798264ea7d4df [INFO] checking PulseSapphire/Snake-Game-Rust against try#d856f2da3433420b7077c0dc7ee9441455bc1302 for pr-128013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPulseSapphire%2FSnake-Game-Rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PulseSapphire/Snake-Game-Rust on toolchain d856f2da3433420b7077c0dc7ee9441455bc1302 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PulseSapphire/Snake-Game-Rust [INFO] finished tweaking git repo https://github.com/PulseSapphire/Snake-Game-Rust [INFO] tweaked toml for git repo https://github.com/PulseSapphire/Snake-Game-Rust written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/PulseSapphire/Snake-Game-Rust 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" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9a7c1866c5f58fc1edd11b1a121786eb467f3246be2867d99e34fe7d8d4b2f8 [INFO] running `Command { std: "docker" "start" "-a" "d9a7c1866c5f58fc1edd11b1a121786eb467f3246be2867d99e34fe7d8d4b2f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9a7c1866c5f58fc1edd11b1a121786eb467f3246be2867d99e34fe7d8d4b2f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9a7c1866c5f58fc1edd11b1a121786eb467f3246be2867d99e34fe7d8d4b2f8", kill_on_drop: false }` [INFO] [stdout] d9a7c1866c5f58fc1edd11b1a121786eb467f3246be2867d99e34fe7d8d4b2f8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+d856f2da3433420b7077c0dc7ee9441455bc1302" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3990c42d6f12b27be2914cbd71b5dfd495c0f40f6d41626b08437130a115d09b [INFO] running `Command { std: "docker" "start" "-a" "3990c42d6f12b27be2914cbd71b5dfd495c0f40f6d41626b08437130a115d09b", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 841 | impl_integer_for_isize!(i8, test_integer_i8); [INFO] [stdout] | -------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 842 | impl_integer_for_isize!(i16, test_integer_i16); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 843 | impl_integer_for_isize!(i32, test_integer_i32); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 844 | impl_integer_for_isize!(i64, test_integer_i64); [INFO] [stdout] | ---------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 845 | impl_integer_for_isize!(i128, test_integer_i128); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/num-integer-0.1.46/src/lib.rs:511:41 [INFO] [stdout] | [INFO] [stdout] 511 | return (1 << shift).abs(); [INFO] [stdout] | ^^^ multiple `abs` found [INFO] [stdout] ... [INFO] [stdout] 846 | impl_integer_for_isize!(isize, test_integer_isize); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl for the type `i128` [INFO] [stdout] = note: candidate #2 is defined in an impl for the type `i16` [INFO] [stdout] = note: candidate #3 is defined in an impl for the type `i32` [INFO] [stdout] = note: candidate #4 is defined in an impl for the type `i64` [INFO] [stdout] = note: and 2 others [INFO] [stdout] = note: this error originates in the macro `impl_integer_for_isize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `num-integer` (lib) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "3990c42d6f12b27be2914cbd71b5dfd495c0f40f6d41626b08437130a115d09b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3990c42d6f12b27be2914cbd71b5dfd495c0f40f6d41626b08437130a115d09b", kill_on_drop: false }` [INFO] [stdout] 3990c42d6f12b27be2914cbd71b5dfd495c0f40f6d41626b08437130a115d09b