[INFO] cloning repository https://github.com/tmahmood/super_dodge_ball [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tmahmood/super_dodge_ball" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmahmood%2Fsuper_dodge_ball", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmahmood%2Fsuper_dodge_ball'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7bea0b74f0a21f2d20dc02d03ee22b2e52eeefbd [INFO] testing tmahmood/super_dodge_ball against master#1ddedbaa5919b7b3e70d984660e21e844c615c97 for pr-128400 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmahmood%2Fsuper_dodge_ball" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tmahmood/super_dodge_ball on toolchain 1ddedbaa5919b7b3e70d984660e21e844c615c97 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tmahmood/super_dodge_ball [INFO] finished tweaking git repo https://github.com/tmahmood/super_dodge_ball [INFO] tweaked toml for git repo https://github.com/tmahmood/super_dodge_ball written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/tmahmood/super_dodge_ball 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" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded nanoserde v0.1.29 [INFO] [stderr] Downloaded macroquad-tiled v0.1.1 [INFO] [stderr] Downloaded macroquad-platformer v0.1.2 [INFO] [stderr] Downloaded macroquad-particles v0.1.1 [INFO] [stderr] Downloaded sapp-android v0.1.14 [INFO] [stderr] Downloaded miniquad v0.3.0-alpha.42 [INFO] [stderr] Downloaded sapp-darwin v0.1.6 [INFO] [stderr] Downloaded sapp-linux v0.1.13 [INFO] [stderr] Downloaded macroquad v0.3.13 [INFO] [stderr] Downloaded nanoserde-derive v0.1.18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 681ba461f77a674d18cb53ae28aae4e43a1388cacf5006c46aa3e57abd2955b3 [INFO] running `Command { std: "docker" "start" "-a" "681ba461f77a674d18cb53ae28aae4e43a1388cacf5006c46aa3e57abd2955b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "681ba461f77a674d18cb53ae28aae4e43a1388cacf5006c46aa3e57abd2955b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "681ba461f77a674d18cb53ae28aae4e43a1388cacf5006c46aa3e57abd2955b3", kill_on_drop: false }` [INFO] [stdout] 681ba461f77a674d18cb53ae28aae4e43a1388cacf5006c46aa3e57abd2955b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b4551956f33657043b392231f8b0241b7be397702c0eef53b7583fa1384b834c [INFO] running `Command { std: "docker" "start" "-a" "b4551956f33657043b392231f8b0241b7be397702c0eef53b7583fa1384b834c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling quad-alsa-sys v0.3.2 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling sapp-linux v0.1.13 [INFO] [stderr] Compiling ogg v0.7.1 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling dasp_frame v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling quad-snd v0.2.3 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling quad-rand v0.2.1 [INFO] [stderr] Compiling macroquad_macro v0.1.7 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling glam v0.14.0 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling miniquad v0.3.0-alpha.42 [INFO] [stderr] Compiling fontdue v0.5.2 [INFO] [stderr] Compiling audrey v0.3.0 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling nanoserde-derive v0.1.18 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling nanoserde v0.1.29 [INFO] [stderr] Compiling macroquad v0.3.13 [INFO] [stderr] Compiling macroquad-platformer v0.1.2 [INFO] [stderr] Compiling macroquad-particles v0.1.1 [INFO] [stderr] Compiling macroquad-tiled v0.1.1 [INFO] [stderr] Compiling super_dodge_ball v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stdout] --> src/main.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::experimental::animation::{Animation, AnimatedSprite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::telemetry::frame` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use macroquad::telemetry::frame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::has_direction` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use game::has_direction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::ball::animations::BallAnimations` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::game::ball::animations::BallAnimations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::game::character::PlayerCharacterParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::json::is_false` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::json::is_false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stdout] --> src/game/mod.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::prelude::animation::{Animation, AnimatedSprite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::ui::Drag::No` [INFO] [stdout] --> src/game/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::ui::Drag::No; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `_x` and `_y` [INFO] [stdout] --> src/game/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{_x, _y, AnimationPlayer, BallState, colliding_with, DEFAULT_ZOOM, FacingTo, KeyCode, Player, PLAYER_HEIGHT, PLAYER_WIDTH, Pla... [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::ball::animations::BallAnimationParams` [INFO] [stdout] --> src/game/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game::ball::animations::BallAnimationParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimationPlayer` and `Player` [INFO] [stdout] --> src/game/ball/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{AnimationPlayer, FacingTo, Player, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/game/player.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad_platformer::Actor` [INFO] [stdout] --> src/game/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad_platformer::Actor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode`, `PlayerAction`, `calculate_movement`, and `valid_position` [INFO] [stdout] --> src/game/player.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{AnimationPlayer, calculate_movement, FacingTo, HasDirection, KeyCode, PlayerAction, valid_position, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stdout] --> src/game/player.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game::character::PlayerCharacterParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::player::PlayerState::Walking` [INFO] [stdout] --> src/game/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::game::player::PlayerState::Walking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::texture` [INFO] [stdout] --> src/game/resources.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use macroquad::texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/game/resources.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::error::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut animation_params: AnimationParams = resources.player_characters[0].animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:453:13 [INFO] [stdout] | [INFO] [stdout] 453 | let mut animation_params: AnimationParams = resources.balls[0].animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut animation_params: AnimationParams = player_character.animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let mut animation_params: AnimationParams = ball.animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_or_right_edge` [INFO] [stdout] --> src/game/ball/mod.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_or_right_edge` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_or_bottom_edge` [INFO] [stdout] --> src/game/ball/mod.rs:26:87 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_or_bottom_edge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing_to` [INFO] [stdout] --> src/game/mod.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | BallState::OnAir(facing_to) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_index` [INFO] [stdout] --> src/game/mod.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 69 | BallState::OnPlayersHand(player_index) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collided` [INFO] [stdout] --> src/main.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collided` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `change_x` [INFO] [stdout] --> src/main.rs:244:20 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `change_y` [INFO] [stdout] --> src/main.rs:244:30 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_ONE_PLAYER` is never used [INFO] [stdout] --> src/main.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const TEAM_ONE_PLAYER: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_TWO_PLAYER` is never used [INFO] [stdout] --> src/main.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const TEAM_TWO_PLAYER: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_ONE_PLAYER_READY` is never used [INFO] [stdout] --> src/main.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const TEAM_ONE_PLAYER_READY: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_TWO_PLAYER_READY` is never used [INFO] [stdout] --> src/main.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const TEAM_TWO_PLAYER_READY: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAYER_ANIMATED_TEXTURES` is never used [INFO] [stdout] --> src/main.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const PLAYER_ANIMATED_TEXTURES: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MovingStates` is never used [INFO] [stdout] --> src/main.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum MovingStates { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `throw_ball` is never used [INFO] [stdout] --> src/main.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn throw_ball(game: &mut Game, player_index: usize, team_with_ball: &Team) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_for_collision` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn check_for_collision(player: &mut Player, ball: &Ball) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `player_animation_demo` is never used [INFO] [stdout] --> src/main.rs:342:10 [INFO] [stdout] | [INFO] [stdout] 342 | async fn player_animation_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `team_with_ball`, `keys_pressed`, `textures`, and `world` are never read [INFO] [stdout] --> src/game/mod.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub(crate) team_with_ball: Team, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) keys_pressed: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub(crate) textures: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) world: World, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/game/ball/mod.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ball { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub(crate) color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ball` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stopping` is never constructed [INFO] [stdout] --> src/game/ball/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub enum BallState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 165 | Stopping, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BallState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `player_outside_field` is never used [INFO] [stdout] --> src/game/field.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Field { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn player_outside_field(&self, player: &Player) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game/player.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 25 | pub(crate) id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) ducking: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 33 | pub(crate) jumping: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub(crate) has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | pub(crate) life: i32, [INFO] [stdout] 36 | pub(crate) running: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub(crate) ready_to_catch: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) is_hit: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub(crate) catch_grace_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.49s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nanoserde-derive v0.1.18 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "b4551956f33657043b392231f8b0241b7be397702c0eef53b7583fa1384b834c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b4551956f33657043b392231f8b0241b7be397702c0eef53b7583fa1384b834c", kill_on_drop: false }` [INFO] [stdout] b4551956f33657043b392231f8b0241b7be397702c0eef53b7583fa1384b834c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 610cc0ec1004a646b7e554d9a1c7adab2e551f94e874060ed5f0438d23baaee0 [INFO] running `Command { std: "docker" "start" "-a" "610cc0ec1004a646b7e554d9a1c7adab2e551f94e874060ed5f0438d23baaee0", kill_on_drop: false }` [INFO] [stderr] Compiling super_dodge_ball v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stdout] --> src/main.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::experimental::animation::{Animation, AnimatedSprite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::telemetry::frame` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use macroquad::telemetry::frame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::has_direction` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use game::has_direction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::ball::animations::BallAnimations` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::game::ball::animations::BallAnimations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::game::character::PlayerCharacterParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::json::is_false` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::json::is_false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stdout] --> src/game/mod.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::prelude::animation::{Animation, AnimatedSprite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::ui::Drag::No` [INFO] [stdout] --> src/game/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::ui::Drag::No; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `_x` and `_y` [INFO] [stdout] --> src/game/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{_x, _y, AnimationPlayer, BallState, colliding_with, DEFAULT_ZOOM, FacingTo, KeyCode, Player, PLAYER_HEIGHT, PLAYER_WIDTH, Pla... [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::ball::animations::BallAnimationParams` [INFO] [stdout] --> src/game/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game::ball::animations::BallAnimationParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimationPlayer` and `Player` [INFO] [stdout] --> src/game/ball/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{AnimationPlayer, FacingTo, Player, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/game/player.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad_platformer::Actor` [INFO] [stdout] --> src/game/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad_platformer::Actor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode`, `PlayerAction`, `calculate_movement`, and `valid_position` [INFO] [stdout] --> src/game/player.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{AnimationPlayer, calculate_movement, FacingTo, HasDirection, KeyCode, PlayerAction, valid_position, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stdout] --> src/game/player.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game::character::PlayerCharacterParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::player::PlayerState::Walking` [INFO] [stdout] --> src/game/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::game::player::PlayerState::Walking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::texture` [INFO] [stdout] --> src/game/resources.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use macroquad::texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/game/resources.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::error::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut animation_params: AnimationParams = resources.player_characters[0].animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:453:13 [INFO] [stdout] | [INFO] [stdout] 453 | let mut animation_params: AnimationParams = resources.balls[0].animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut animation_params: AnimationParams = player_character.animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let mut animation_params: AnimationParams = ball.animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_or_right_edge` [INFO] [stdout] --> src/game/ball/mod.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_or_right_edge` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_or_bottom_edge` [INFO] [stdout] --> src/game/ball/mod.rs:26:87 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_or_bottom_edge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing_to` [INFO] [stdout] --> src/game/mod.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | BallState::OnAir(facing_to) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_index` [INFO] [stdout] --> src/game/mod.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 69 | BallState::OnPlayersHand(player_index) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collided` [INFO] [stdout] --> src/main.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collided` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `change_x` [INFO] [stdout] --> src/main.rs:244:20 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `change_y` [INFO] [stdout] --> src/main.rs:244:30 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_ONE_PLAYER` is never used [INFO] [stdout] --> src/main.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const TEAM_ONE_PLAYER: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_TWO_PLAYER` is never used [INFO] [stdout] --> src/main.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const TEAM_TWO_PLAYER: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_ONE_PLAYER_READY` is never used [INFO] [stdout] --> src/main.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const TEAM_ONE_PLAYER_READY: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_TWO_PLAYER_READY` is never used [INFO] [stdout] --> src/main.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const TEAM_TWO_PLAYER_READY: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAYER_ANIMATED_TEXTURES` is never used [INFO] [stdout] --> src/main.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const PLAYER_ANIMATED_TEXTURES: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MovingStates` is never used [INFO] [stdout] --> src/main.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum MovingStates { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `throw_ball` is never used [INFO] [stdout] --> src/main.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn throw_ball(game: &mut Game, player_index: usize, team_with_ball: &Team) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_for_collision` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn check_for_collision(player: &mut Player, ball: &Ball) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `player_animation_demo` is never used [INFO] [stdout] --> src/main.rs:342:10 [INFO] [stdout] | [INFO] [stdout] 342 | async fn player_animation_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `team_with_ball`, `keys_pressed`, `textures`, and `world` are never read [INFO] [stdout] --> src/game/mod.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub(crate) team_with_ball: Team, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) keys_pressed: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub(crate) textures: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) world: World, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/game/ball/mod.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ball { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub(crate) color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ball` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stopping` is never constructed [INFO] [stdout] --> src/game/ball/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub enum BallState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 165 | Stopping, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BallState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `player_outside_field` is never used [INFO] [stdout] --> src/game/field.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Field { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn player_outside_field(&self, player: &Player) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game/player.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 25 | pub(crate) id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) ducking: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 33 | pub(crate) jumping: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub(crate) has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | pub(crate) life: i32, [INFO] [stdout] 36 | pub(crate) running: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub(crate) ready_to_catch: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) is_hit: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub(crate) catch_grace_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.70s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nanoserde-derive v0.1.18 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "610cc0ec1004a646b7e554d9a1c7adab2e551f94e874060ed5f0438d23baaee0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "610cc0ec1004a646b7e554d9a1c7adab2e551f94e874060ed5f0438d23baaee0", kill_on_drop: false }` [INFO] [stdout] 610cc0ec1004a646b7e554d9a1c7adab2e551f94e874060ed5f0438d23baaee0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1ddedbaa5919b7b3e70d984660e21e844c615c97" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] a0ace5c5296c0cec99542a88abb77c7171d8ffeadce3da5b34292f9cb1a64e09 [INFO] running `Command { std: "docker" "start" "-a" "a0ace5c5296c0cec99542a88abb77c7171d8ffeadce3da5b34292f9cb1a64e09", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::ops::Deref` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ops::Deref; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stderr] --> src/main.rs:4:42 [INFO] [stderr] | [INFO] [stderr] 4 | use macroquad::experimental::animation::{Animation, AnimatedSprite}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `macroquad::telemetry::frame` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use macroquad::telemetry::frame; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `game::has_direction` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use game::has_direction; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::game::ball::animations::BallAnimations` [INFO] [stderr] --> src/main.rs:13:5 [INFO] [stderr] | [INFO] [stderr] 13 | use crate::game::ball::animations::BallAnimations; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use crate::game::character::PlayerCharacterParams; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::json::is_false` [INFO] [stderr] --> src/main.rs:18:5 [INFO] [stderr] | [INFO] [stderr] 18 | use crate::json::is_false; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stderr] --> src/game/mod.rs:2:37 [INFO] [stderr] | [INFO] [stderr] 2 | use macroquad::prelude::animation::{Animation, AnimatedSprite}; [INFO] [stderr] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `macroquad::ui::Drag::No` [INFO] [stderr] --> src/game/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use macroquad::ui::Drag::No; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `_x` and `_y` [INFO] [stderr] --> src/game/mod.rs:6:13 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{_x, _y, AnimationPlayer, BallState, colliding_with, DEFAULT_ZOOM, FacingTo, KeyCode, Player, PLAYER_HEIGHT, PLAYER_WIDTH, Pla... [INFO] [stderr] | ^^ ^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::game::ball::animations::BallAnimationParams` [INFO] [stderr] --> src/game/mod.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::game::ball::animations::BallAnimationParams; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AnimationPlayer` and `Player` [INFO] [stderr] --> src/game/ball/mod.rs:3:13 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::{AnimationPlayer, FacingTo, Player, Vec2}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::HashMap` [INFO] [stderr] --> src/game/player.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::collections::HashMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `macroquad_platformer::Actor` [INFO] [stderr] --> src/game/player.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use macroquad_platformer::Actor; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `KeyCode`, `PlayerAction`, `calculate_movement`, and `valid_position` [INFO] [stderr] --> src/game/player.rs:5:30 [INFO] [stderr] | [INFO] [stderr] 5 | use crate::{AnimationPlayer, calculate_movement, FacingTo, HasDirection, KeyCode, PlayerAction, valid_position, Vec2}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stderr] --> src/game/player.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::game::character::PlayerCharacterParams; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::game::player::PlayerState::Walking` [INFO] [stderr] --> src/game/player.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use crate::game::player::PlayerState::Walking; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `macroquad::texture` [INFO] [stderr] --> src/game/resources.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use macroquad::texture; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Error` [INFO] [stderr] --> src/game/resources.rs:9:28 [INFO] [stderr] | [INFO] [stderr] 9 | use crate::error::{Result, Error}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:418:17 [INFO] [stderr] | [INFO] [stderr] 418 | let mut animation_params: AnimationParams = resources.player_characters[0].animation.clone().into(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:453:13 [INFO] [stderr] | [INFO] [stderr] 453 | let mut animation_params: AnimationParams = resources.balls[0].animation.clone().into(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:350:13 [INFO] [stderr] | [INFO] [stderr] 350 | let mut animation_params: AnimationParams = player_character.animation.clone().into(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:356:13 [INFO] [stderr] | [INFO] [stderr] 356 | let mut animation_params: AnimationParams = ball.animation.clone().into(); [INFO] [stderr] | ----^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `left_or_right_edge` [INFO] [stderr] --> src/game/ball/mod.rs:26:61 [INFO] [stderr] | [INFO] [stderr] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_or_right_edge` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `top_or_bottom_edge` [INFO] [stderr] --> src/game/ball/mod.rs:26:87 [INFO] [stderr] | [INFO] [stderr] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_or_bottom_edge` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `facing_to` [INFO] [stderr] --> src/game/mod.rs:65:30 [INFO] [stderr] | [INFO] [stderr] 65 | BallState::OnAir(facing_to) => { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing_to` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `player_index` [INFO] [stderr] --> src/game/mod.rs:69:38 [INFO] [stderr] | [INFO] [stderr] 69 | BallState::OnPlayersHand(player_index) => { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `collided` [INFO] [stderr] --> src/main.rs:244:10 [INFO] [stderr] | [INFO] [stderr] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collided` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `change_x` [INFO] [stderr] --> src/main.rs:244:20 [INFO] [stderr] | [INFO] [stderr] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_x` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `change_y` [INFO] [stderr] --> src/main.rs:244:30 [INFO] [stderr] | [INFO] [stderr] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_y` [INFO] [stderr] [INFO] [stderr] warning: constant `TEAM_ONE_PLAYER` is never used [INFO] [stderr] --> src/main.rs:31:7 [INFO] [stderr] | [INFO] [stderr] 31 | const TEAM_ONE_PLAYER: usize = 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: constant `TEAM_TWO_PLAYER` is never used [INFO] [stderr] --> src/main.rs:32:7 [INFO] [stderr] | [INFO] [stderr] 32 | const TEAM_TWO_PLAYER: usize = 2; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TEAM_ONE_PLAYER_READY` is never used [INFO] [stderr] --> src/main.rs:33:7 [INFO] [stderr] | [INFO] [stderr] 33 | const TEAM_ONE_PLAYER_READY: usize = 3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `TEAM_TWO_PLAYER_READY` is never used [INFO] [stderr] --> src/main.rs:34:7 [INFO] [stderr] | [INFO] [stderr] 34 | const TEAM_TWO_PLAYER_READY: usize = 3; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PLAYER_ANIMATED_TEXTURES` is never used [INFO] [stderr] --> src/main.rs:35:7 [INFO] [stderr] | [INFO] [stderr] 35 | const PLAYER_ANIMATED_TEXTURES: usize = 4; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: enum `MovingStates` is never used [INFO] [stderr] --> src/main.rs:56:6 [INFO] [stderr] | [INFO] [stderr] 56 | enum MovingStates { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `throw_ball` is never used [INFO] [stderr] --> src/main.rs:157:4 [INFO] [stderr] | [INFO] [stderr] 157 | fn throw_ball(game: &mut Game, player_index: usize, team_with_ball: &Team) -> Option { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `check_for_collision` is never used [INFO] [stderr] --> src/main.rs:243:4 [INFO] [stderr] | [INFO] [stderr] 243 | fn check_for_collision(player: &mut Player, ball: &Ball) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `player_animation_demo` is never used [INFO] [stderr] --> src/main.rs:342:10 [INFO] [stderr] | [INFO] [stderr] 342 | async fn player_animation_demo() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: fields `team_with_ball`, `keys_pressed`, `textures`, and `world` are never read [INFO] [stderr] --> src/game/mod.rs:46:16 [INFO] [stderr] | [INFO] [stderr] 42 | pub struct Game { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] ... [INFO] [stderr] 46 | pub(crate) team_with_ball: Team, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 50 | pub(crate) keys_pressed: Vec, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] 51 | pub(crate) textures: Vec, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 55 | pub(crate) world: World, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `color` is never read [INFO] [stderr] --> src/game/ball/mod.rs:13:16 [INFO] [stderr] | [INFO] [stderr] 9 | pub struct Ball { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 13 | pub(crate) color: Color, [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Ball` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: variant `Stopping` is never constructed [INFO] [stderr] --> src/game/ball/mod.rs:165:5 [INFO] [stderr] | [INFO] [stderr] 158 | pub enum BallState { [INFO] [stderr] | --------- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 165 | Stopping, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `BallState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: method `player_outside_field` is never used [INFO] [stderr] --> src/game/field.rs:55:19 [INFO] [stderr] | [INFO] [stderr] 18 | impl Field { [INFO] [stderr] | ---------- method in this implementation [INFO] [stderr] ... [INFO] [stderr] 55 | pub(crate) fn player_outside_field(&self, player: &Player) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: multiple fields are never read [INFO] [stderr] --> src/game/player.rs:25:16 [INFO] [stderr] | [INFO] [stderr] 24 | pub struct Player { [INFO] [stderr] | ------ fields in this struct [INFO] [stderr] 25 | pub(crate) id: u8, [INFO] [stderr] | ^^ [INFO] [stderr] ... [INFO] [stderr] 29 | pub(crate) color: Color, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 32 | pub(crate) ducking: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 33 | pub(crate) jumping: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 34 | pub(crate) has_ball: bool, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 35 | pub(crate) life: i32, [INFO] [stderr] 36 | pub(crate) running: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 37 | pub(crate) ready_to_catch: bool, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 40 | pub(crate) is_hit: bool, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] 41 | pub(crate) catch_grace_time: f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `super_dodge_ball` (bin "super_dodge_ball" test) generated 44 warnings (run `cargo fix --bin "super_dodge_ball" --tests` to apply 23 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nanoserde-derive v0.1.18 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/super_dodge_ball-f90e56d2728be8bc) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test math::tests::test_color_from_hex_string_hash ... ok [INFO] [stdout] test math::tests::test_color_from_hex_string_no_hash ... ok [INFO] [stdout] test math::tests::test_color_from_hex_string_alpha ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "a0ace5c5296c0cec99542a88abb77c7171d8ffeadce3da5b34292f9cb1a64e09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0ace5c5296c0cec99542a88abb77c7171d8ffeadce3da5b34292f9cb1a64e09", kill_on_drop: false }` [INFO] [stdout] a0ace5c5296c0cec99542a88abb77c7171d8ffeadce3da5b34292f9cb1a64e09 [INFO] testing tmahmood/super_dodge_ball against try#33f1d8bb92813a1bfc23c093c9f443ab09290307 for pr-128400 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftmahmood%2Fsuper_dodge_ball" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/tmahmood/super_dodge_ball on toolchain 33f1d8bb92813a1bfc23c093c9f443ab09290307 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/tmahmood/super_dodge_ball [INFO] finished tweaking git repo https://github.com/tmahmood/super_dodge_ball [INFO] tweaked toml for git repo https://github.com/tmahmood/super_dodge_ball written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/tmahmood/super_dodge_ball 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" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e04bd56ed26008afcdfbb85d56094f7da8d530bf97f1beb813e5d31a51aaec27 [INFO] running `Command { std: "docker" "start" "-a" "e04bd56ed26008afcdfbb85d56094f7da8d530bf97f1beb813e5d31a51aaec27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e04bd56ed26008afcdfbb85d56094f7da8d530bf97f1beb813e5d31a51aaec27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e04bd56ed26008afcdfbb85d56094f7da8d530bf97f1beb813e5d31a51aaec27", kill_on_drop: false }` [INFO] [stdout] e04bd56ed26008afcdfbb85d56094f7da8d530bf97f1beb813e5d31a51aaec27 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+33f1d8bb92813a1bfc23c093c9f443ab09290307" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07228ddcda3cbf2f9b4acb837a4ce3c1116aee9db2ce9982fd293a8967181bc8 [INFO] running `Command { std: "docker" "start" "-a" "07228ddcda3cbf2f9b4acb837a4ce3c1116aee9db2ce9982fd293a8967181bc8", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling libc v0.2.112 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling quad-alsa-sys v0.3.2 [INFO] [stderr] Compiling crc32fast v1.3.0 [INFO] [stderr] Compiling dasp_sample v0.11.0 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling sapp-linux v0.1.13 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling ogg v0.7.1 [INFO] [stderr] Compiling dasp_frame v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling lewton v0.9.4 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling quad-snd v0.2.3 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling ahash v0.4.7 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling bytemuck v1.7.3 [INFO] [stderr] Compiling miniquad v0.3.0-alpha.42 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling glam v0.14.0 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling quad-rand v0.2.1 [INFO] [stderr] Compiling bumpalo v3.9.1 [INFO] [stderr] Compiling macroquad_macro v0.1.7 [INFO] [stderr] Compiling audrey v0.3.0 [INFO] [stderr] Compiling fontdue v0.5.2 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling nanoserde-derive v0.1.18 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling nanoserde v0.1.29 [INFO] [stderr] Compiling macroquad v0.3.13 [INFO] [stderr] Compiling macroquad-platformer v0.1.2 [INFO] [stderr] Compiling macroquad-particles v0.1.1 [INFO] [stderr] Compiling macroquad-tiled v0.1.1 [INFO] [stderr] Compiling super_dodge_ball v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::ops::Deref` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::ops::Deref; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stdout] --> src/main.rs:4:42 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::experimental::animation::{Animation, AnimatedSprite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::telemetry::frame` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use macroquad::telemetry::frame; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `game::has_direction` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use game::has_direction; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::ball::animations::BallAnimations` [INFO] [stdout] --> src/main.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::game::ball::animations::BallAnimations; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::game::character::PlayerCharacterParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::json::is_false` [INFO] [stdout] --> src/main.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use crate::json::is_false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimatedSprite` and `Animation` [INFO] [stdout] --> src/game/mod.rs:2:37 [INFO] [stdout] | [INFO] [stdout] 2 | use macroquad::prelude::animation::{Animation, AnimatedSprite}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::ui::Drag::No` [INFO] [stdout] --> src/game/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad::ui::Drag::No; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `_x` and `_y` [INFO] [stdout] --> src/game/mod.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{_x, _y, AnimationPlayer, BallState, colliding_with, DEFAULT_ZOOM, FacingTo, KeyCode, Player, PLAYER_HEIGHT, PLAYER_WIDTH, Pla... [INFO] [stdout] | ^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::ball::animations::BallAnimationParams` [INFO] [stdout] --> src/game/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game::ball::animations::BallAnimationParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AnimationPlayer` and `Player` [INFO] [stdout] --> src/game/ball/mod.rs:3:13 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::{AnimationPlayer, FacingTo, Player, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/game/player.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad_platformer::Actor` [INFO] [stdout] --> src/game/player.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use macroquad_platformer::Actor; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `KeyCode`, `PlayerAction`, `calculate_movement`, and `valid_position` [INFO] [stdout] --> src/game/player.rs:5:30 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::{AnimationPlayer, calculate_movement, FacingTo, HasDirection, KeyCode, PlayerAction, valid_position, Vec2}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::character::PlayerCharacterParams` [INFO] [stdout] --> src/game/player.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::game::character::PlayerCharacterParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::game::player::PlayerState::Walking` [INFO] [stdout] --> src/game/player.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::game::player::PlayerState::Walking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `macroquad::texture` [INFO] [stdout] --> src/game/resources.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use macroquad::texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Error` [INFO] [stdout] --> src/game/resources.rs:9:28 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::error::{Result, Error}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | let mut animation_params: AnimationParams = resources.player_characters[0].animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:453:13 [INFO] [stdout] | [INFO] [stdout] 453 | let mut animation_params: AnimationParams = resources.balls[0].animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 350 | let mut animation_params: AnimationParams = player_character.animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:356:13 [INFO] [stdout] | [INFO] [stdout] 356 | let mut animation_params: AnimationParams = ball.animation.clone().into(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `left_or_right_edge` [INFO] [stdout] --> src/game/ball/mod.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_left_or_right_edge` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `top_or_bottom_edge` [INFO] [stdout] --> src/game/ball/mod.rs:26:87 [INFO] [stdout] | [INFO] [stdout] 26 | pub(crate) fn outside_edge(&mut self, time_passed: f64, left_or_right_edge: bool, top_or_bottom_edge: bool) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_top_or_bottom_edge` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `facing_to` [INFO] [stdout] --> src/game/mod.rs:65:30 [INFO] [stdout] | [INFO] [stdout] 65 | BallState::OnAir(facing_to) => { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_facing_to` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `player_index` [INFO] [stdout] --> src/game/mod.rs:69:38 [INFO] [stdout] | [INFO] [stdout] 69 | BallState::OnPlayersHand(player_index) => { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_player_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collided` [INFO] [stdout] --> src/main.rs:244:10 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_collided` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `change_x` [INFO] [stdout] --> src/main.rs:244:20 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `change_y` [INFO] [stdout] --> src/main.rs:244:30 [INFO] [stdout] | [INFO] [stdout] 244 | let (collided, change_x, change_y) = colliding_with(&ball.pos, ball.r, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_change_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_ONE_PLAYER` is never used [INFO] [stdout] --> src/main.rs:31:7 [INFO] [stdout] | [INFO] [stdout] 31 | const TEAM_ONE_PLAYER: usize = 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_TWO_PLAYER` is never used [INFO] [stdout] --> src/main.rs:32:7 [INFO] [stdout] | [INFO] [stdout] 32 | const TEAM_TWO_PLAYER: usize = 2; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_ONE_PLAYER_READY` is never used [INFO] [stdout] --> src/main.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | const TEAM_ONE_PLAYER_READY: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TEAM_TWO_PLAYER_READY` is never used [INFO] [stdout] --> src/main.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | const TEAM_TWO_PLAYER_READY: usize = 3; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLAYER_ANIMATED_TEXTURES` is never used [INFO] [stdout] --> src/main.rs:35:7 [INFO] [stdout] | [INFO] [stdout] 35 | const PLAYER_ANIMATED_TEXTURES: usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `MovingStates` is never used [INFO] [stdout] --> src/main.rs:56:6 [INFO] [stdout] | [INFO] [stdout] 56 | enum MovingStates { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `throw_ball` is never used [INFO] [stdout] --> src/main.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn throw_ball(game: &mut Game, player_index: usize, team_with_ball: &Team) -> Option { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_for_collision` is never used [INFO] [stdout] --> src/main.rs:243:4 [INFO] [stdout] | [INFO] [stdout] 243 | fn check_for_collision(player: &mut Player, ball: &Ball) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `player_animation_demo` is never used [INFO] [stdout] --> src/main.rs:342:10 [INFO] [stdout] | [INFO] [stdout] 342 | async fn player_animation_demo() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `team_with_ball`, `keys_pressed`, `textures`, and `world` are never read [INFO] [stdout] --> src/game/mod.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 42 | pub struct Game { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 46 | pub(crate) team_with_ball: Team, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 50 | pub(crate) keys_pressed: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 51 | pub(crate) textures: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) world: World, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `color` is never read [INFO] [stdout] --> src/game/ball/mod.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct Ball { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 13 | pub(crate) color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ball` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Stopping` is never constructed [INFO] [stdout] --> src/game/ball/mod.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 158 | pub enum BallState { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 165 | Stopping, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BallState` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `player_outside_field` is never used [INFO] [stdout] --> src/game/field.rs:55:19 [INFO] [stdout] | [INFO] [stdout] 18 | impl Field { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 55 | pub(crate) fn player_outside_field(&self, player: &Player) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple fields are never read [INFO] [stdout] --> src/game/player.rs:25:16 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Player { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 25 | pub(crate) id: u8, [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 29 | pub(crate) color: Color, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | pub(crate) ducking: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 33 | pub(crate) jumping: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 34 | pub(crate) has_ball: bool, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 35 | pub(crate) life: i32, [INFO] [stdout] 36 | pub(crate) running: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 37 | pub(crate) ready_to_catch: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | pub(crate) is_hit: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 41 | pub(crate) catch_grace_time: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcIHU8OL/symbols.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.00.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.01.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.02.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.03.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.04.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.05.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.06.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.07.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.08.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.09.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.super_dodge_ball.36414a11b06d43bf-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c.0bpdeui2noenryw5rkcwdmiei.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libserde_json-31bb2f03d5678118.rlib" "/opt/rustwide/target/debug/deps/libryu-e6a60e27eea7e1f3.rlib" "/opt/rustwide/target/debug/deps/libitoa-bd436f0e06c890b1.rlib" "/opt/rustwide/target/debug/deps/libmacroquad_platformer-fbc296458a6a3d53.rlib" "/opt/rustwide/target/debug/deps/libserde-141a0c1d76b7d25e.rlib" "/opt/rustwide/target/debug/deps/libmacroquad-3faeedccfe4f1f64.rlib" "/opt/rustwide/target/debug/deps/libbumpalo-ad6ab4514c42f9cc.rlib" "/opt/rustwide/target/debug/deps/libfontdue-656eea6a3eb5dbde.rlib" "/opt/rustwide/target/debug/deps/libttf_parser-008e17175fd066a5.rlib" "/opt/rustwide/target/debug/deps/libhashbrown-89ee347c7ecaaf82.rlib" "/opt/rustwide/target/debug/deps/libahash-58ae4c67045b5240.rlib" "/opt/rustwide/target/debug/deps/libimage-050164ff11eebfcf.rlib" "/opt/rustwide/target/debug/deps/libcolor_quant-069bd5753da0854f.rlib" "/opt/rustwide/target/debug/deps/libnum_iter-a06b492bced0509c.rlib" "/opt/rustwide/target/debug/deps/libbytemuck-4f12b756cfcc6b13.rlib" "/opt/rustwide/target/debug/deps/libpng-fc2e678430ea865a.rlib" "/opt/rustwide/target/debug/deps/libminiz_oxide-f77ea18dd3c8d41f.rlib" "/opt/rustwide/target/debug/deps/libcrc32fast-60e7c1feaef682f5.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-57bf25c23e31efdb.rlib" "/opt/rustwide/target/debug/deps/libdeflate-ce1276abb088ebf6.rlib" "/opt/rustwide/target/debug/deps/libadler32-99ddde7e6e69d6c1.rlib" "/opt/rustwide/target/debug/deps/libbitflags-560efdb99b117eef.rlib" "/opt/rustwide/target/debug/deps/libnum_rational-1b469b6902788c5d.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-c742d14cbc6d6526.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-558aaa602f4d9c27.rlib" "/opt/rustwide/target/debug/deps/libquad_rand-36bd15d6f30e592e.rlib" "/opt/rustwide/target/debug/deps/libglam-5bbd60bd63409648.rlib" "/opt/rustwide/target/debug/deps/libquad_snd-76b7e57658555fe9.rlib" "/opt/rustwide/target/debug/deps/libaudrey-60d313bd53eb8416.rlib" "/opt/rustwide/target/debug/deps/liblewton-f3efa67b8296e7b5.rlib" "/opt/rustwide/target/debug/deps/libogg-3e70dc06030695a9.rlib" "/opt/rustwide/target/debug/deps/libsmallvec-f511299774df26f4.rlib" "/opt/rustwide/target/debug/deps/libmaybe_uninit-a1b1ac97f2fc1404.rlib" "/opt/rustwide/target/debug/deps/libbyteorder-a1f9de351ee5c7d4.rlib" "/opt/rustwide/target/debug/deps/libhound-8d5a21a3bfa9d0ed.rlib" "/opt/rustwide/target/debug/deps/libdasp_frame-b335fbbc03b07730.rlib" "/opt/rustwide/target/debug/deps/libdasp_sample-e8d5e73975e29c14.rlib" "/opt/rustwide/target/debug/deps/libquad_alsa_sys-50eebd7027dcf9eb.rlib" "/opt/rustwide/target/debug/deps/libminiquad-7f7f382568ec2e74.rlib" "/opt/rustwide/target/debug/deps/libsapp_linux-302d4687ee9a87dd.rlib" "/opt/rustwide/target/debug/deps/liblibc-94fa9a692c4689a9.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9506e3738f23e7c7.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-0e87bdc388165b9b.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-28d2ee21ffecbcd0.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-4cd64c3d9fc2560b.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-a1fedeceba4cc892.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-0b8915cbc76cd410.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-fec2ce82fc5b17fa.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-fdb02324b55b2840.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-db981ef273c68b12.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-2c4968ed4cb29e9c.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-661cdd70a5b83118.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9cbb3bfdc8e63ca5.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-a4c5ad4392a26401.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-9409cd7d030362b9.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-7b90a2705bcf265b.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-80d2f129fb536a6f.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f72b956e24d1de70.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-632ae0f28c5e55ff.rlib" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-7586cb84705120bb.rlib" "-Wl,-Bdynamic" "-lasound" "-lGL" "-lX11" "-lXi" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-B/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-L" "/opt/rustwide/rustup-home/toolchains/33f1d8bb92813a1bfc23c093c9f443ab09290307/lib/rustlib/x86_64-unknown-linux-gnu/lib/self-contained" "-o" "/opt/rustwide/target/debug/deps/super_dodge_ball-7c575c9d35dae79c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: collect2: fatal error: ld terminated with signal 7 [Bus error], core dumped [INFO] [stdout] compilation terminated. [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `super_dodge_ball` (bin "super_dodge_ball") due to 1 previous error; 44 warnings emitted [INFO] running `Command { std: "docker" "inspect" "07228ddcda3cbf2f9b4acb837a4ce3c1116aee9db2ce9982fd293a8967181bc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07228ddcda3cbf2f9b4acb837a4ce3c1116aee9db2ce9982fd293a8967181bc8", kill_on_drop: false }` [INFO] [stdout] 07228ddcda3cbf2f9b4acb837a4ce3c1116aee9db2ce9982fd293a8967181bc8