[INFO] cloning repository https://github.com/brianShan974/rust-pong [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brianShan974/rust-pong" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbrianShan974%2Frust-pong", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbrianShan974%2Frust-pong'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bf415776fd628e6998364d239b94df6185fd33ef [INFO] checking brianShan974/rust-pong against master#f8f6997469237299c1d60814c7b9828602a1f8e4 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FbrianShan974%2Frust-pong" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/brianShan974/rust-pong [INFO] finished tweaking git repo https://github.com/brianShan974/rust-pong [INFO] tweaked toml for git repo https://github.com/brianShan974/rust-pong written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/brianShan974/rust-pong on toolchain f8f6997469237299c1d60814c7b9828602a1f8e4 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 19 packages to latest compatible versions [INFO] [stderr] Adding rand v0.8.5 (available: v0.9.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2 v0.38.0 [INFO] [stderr] Downloaded sdl2-sys v0.38.0 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d844348b38aa77b35420f22c7e9a4ef07f680afe5fb13bec3f718d6e1c8aa857 [INFO] running `Command { std: "docker" "start" "-a" "d844348b38aa77b35420f22c7e9a4ef07f680afe5fb13bec3f718d6e1c8aa857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d844348b38aa77b35420f22c7e9a4ef07f680afe5fb13bec3f718d6e1c8aa857", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d844348b38aa77b35420f22c7e9a4ef07f680afe5fb13bec3f718d6e1c8aa857", kill_on_drop: false }` [INFO] [stdout] d844348b38aa77b35420f22c7e9a4ef07f680afe5fb13bec3f718d6e1c8aa857 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+f8f6997469237299c1d60814c7b9828602a1f8e4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5871c334576c5c6f6550cc430cd3cc2b83570714fa851b41e968cb5851b67eff [INFO] running `Command { std: "docker" "start" "-a" "5871c334576c5c6f6550cc430cd3cc2b83570714fa851b41e968cb5851b67eff", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling cfg-if v1.0.1 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Compiling sdl2 v0.38.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Compiling sdl2-sys v0.38.0 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust_pong v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `GameState` is more private than the item `Game::set_state` [INFO] [stdout] --> src/game_and_scene/game.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set_state(&mut self, state: GameState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Game::set_state` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `GameState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/game_and_scene/game.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum GameState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `GameState` is more private than the item `Game::set_state` [INFO] [stdout] --> src/game_and_scene/game.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn set_state(&mut self, state: GameState) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `Game::set_state` is reachable at visibility `pub(crate)` [INFO] [stdout] | [INFO] [stdout] note: but type `GameState` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/game_and_scene/game.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | enum GameState { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate_with_vel`, and `get_vel` are never used [INFO] [stdout] --> src/game_and_scene/ball.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Ball { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 28 | /// The constructor. [INFO] [stdout] 29 | pub fn new(pos: Vec2, vel: Vec2, radius: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn generate_with_vel(vel: Vec2) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_vel(&self) -> &Vec2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_right` are never used [INFO] [stdout] --> src/game_and_scene/paddle.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Paddle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 36 | /// The constructor of a paddle. [INFO] [stdout] 37 | pub fn new(pos: Vec2, width: u32, height: u32, side: Sides) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_right(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/game_and_scene/scene.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Edges { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | /// The right edge. [INFO] [stdout] 27 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/game_and_scene/scene.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 52 | /// Add balls into the scene. [INFO] [stdout] 53 | pub fn add_balls(&mut self, balls: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn clear_balls(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn reset_balls(&mut self, balls: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn add_left_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn add_right_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn clear_left_paddles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn clear_right_paddles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn reset_left_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn reset_right_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn clear_paddles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stay` is never constructed [INFO] [stdout] --> src/game_and_scene/operation.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum OperationTypes { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Stay, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OperationTypes` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_state`, `set_scene`, `set_scores`, `get_left_paddle_count`, `get_right_paddle_count`, and `reset` are never used [INFO] [stdout] --> src/game_and_scene/game.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn set_state(&mut self, state: GameState) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_scene(&mut self, scene: Scene) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn set_scores(&mut self, scores: (u32, u32)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_left_paddle_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn get_right_paddle_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_game` is never used [INFO] [stdout] --> src/render/game_renderer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl GameRenderer { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn reset_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `generate_with_vel`, and `get_vel` are never used [INFO] [stdout] --> src/game_and_scene/ball.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 27 | impl Ball { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 28 | /// The constructor. [INFO] [stdout] 29 | pub fn new(pos: Vec2, vel: Vec2, radius: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn generate_with_vel(vel: Vec2) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn get_vel(&self) -> &Vec2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `is_right` are never used [INFO] [stdout] --> src/game_and_scene/paddle.rs:37:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl Paddle { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 36 | /// The constructor of a paddle. [INFO] [stdout] 37 | pub fn new(pos: Vec2, width: u32, height: u32, side: Sides) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 88 | pub fn is_right(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Left` and `Right` are never constructed [INFO] [stdout] --> src/game_and_scene/scene.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 19 | pub enum Edges { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Left, [INFO] [stdout] | ^^^^ [INFO] [stdout] 26 | /// The right edge. [INFO] [stdout] 27 | Right, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/game_and_scene/scene.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 51 | impl Scene { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 52 | /// Add balls into the scene. [INFO] [stdout] 53 | pub fn add_balls(&mut self, balls: Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn clear_balls(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn reset_balls(&mut self, balls: Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 69 | pub fn add_left_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 74 | pub fn add_right_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn clear_left_paddles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub fn clear_right_paddles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn reset_left_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn reset_right_paddles(&mut self, paddles: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | pub fn clear_paddles(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stay` is never constructed [INFO] [stdout] --> src/game_and_scene/operation.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub enum OperationTypes { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Stay, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `OperationTypes` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_state`, `set_scene`, `set_scores`, `get_left_paddle_count`, `get_right_paddle_count`, and `reset` are never used [INFO] [stdout] --> src/game_and_scene/game.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl Game { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn set_state(&mut self, state: GameState) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn set_scene(&mut self, scene: Scene) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 52 | pub fn set_scores(&mut self, scores: (u32, u32)) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn get_left_paddle_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 100 | pub fn get_right_paddle_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset_game` is never used [INFO] [stdout] --> src/render/game_renderer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl GameRenderer { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 110 | pub fn reset_game(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.25s [INFO] running `Command { std: "docker" "inspect" "5871c334576c5c6f6550cc430cd3cc2b83570714fa851b41e968cb5851b67eff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5871c334576c5c6f6550cc430cd3cc2b83570714fa851b41e968cb5851b67eff", kill_on_drop: false }` [INFO] [stdout] 5871c334576c5c6f6550cc430cd3cc2b83570714fa851b41e968cb5851b67eff