[INFO] cloning repository https://github.com/lislis/workshop-rust-games [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lislis/workshop-rust-games" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flislis%2Fworkshop-rust-games", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flislis%2Fworkshop-rust-games'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6a850e60f6ef0436ec45cebec97e06e13bc294ce [INFO] checking lislis/workshop-rust-games against beta for pr-78714 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flislis%2Fworkshop-rust-games" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lislis/workshop-rust-games on toolchain beta [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lislis/workshop-rust-games [INFO] finished tweaking git repo https://github.com/lislis/workshop-rust-games [INFO] tweaked toml for git repo https://github.com/lislis/workshop-rust-games written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/lislis/workshop-rust-games already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 703a13b32689f66f24804f7422da0b5de8145b99368223883ed712e70104d69b [INFO] running `Command { std: "docker" "start" "-a" "703a13b32689f66f24804f7422da0b5de8145b99368223883ed712e70104d69b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "703a13b32689f66f24804f7422da0b5de8145b99368223883ed712e70104d69b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "703a13b32689f66f24804f7422da0b5de8145b99368223883ed712e70104d69b", kill_on_drop: false }` [INFO] [stdout] 703a13b32689f66f24804f7422da0b5de8145b99368223883ed712e70104d69b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+beta" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] e45e39c0fe61a569a324f7e72ca19ad907bb4dce31aae9e5e9a3a3ff5cef4c12 [INFO] running `Command { std: "docker" "start" "-a" "e45e39c0fe61a569a324f7e72ca19ad907bb4dce31aae9e5e9a3a3ff5cef4c12", kill_on_drop: false }` [INFO] [stderr] Checking arrayvec v0.5.0 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling bzip2-sys v0.1.7 [INFO] [stderr] Compiling minimp3-sys v0.3.1 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Checking getrandom v0.1.12 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking nix v0.11.1 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Checking x11-dl v2.18.4 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Checking png v0.15.0 [INFO] [stderr] Checking sid v0.5.2 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Compiling backtrace v0.3.38 [INFO] [stderr] Checking toml v0.5.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Checking image v0.22.2 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking minimp3 v0.3.3 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking alga v0.9.1 [INFO] [stderr] Checking zip v0.5.3 [INFO] [stderr] Checking lyon_geom v0.12.7 [INFO] [stderr] Checking twox-hash v1.5.0 [INFO] [stderr] Checking lyon_path v0.13.2 [INFO] [stderr] Checking glutin_glx_sys v0.1.5 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Checking lyon_algorithms v0.13.4 [INFO] [stderr] Checking lyon_tessellation v0.13.5 [INFO] [stderr] Checking lyon v0.13.5 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking gilrs-core v0.2.4 [INFO] [stderr] Checking wayland-client v0.21.13 [INFO] [stderr] Checking gilrs v0.7.2 [INFO] [stderr] Checking wayland-protocols v0.21.13 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking rusttype v0.8.1 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking glyph_brush_layout v0.1.8 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking glyph_brush v0.6.0 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking glyph_brush v0.5.4 [INFO] [stderr] Checking winit v0.19.3 [INFO] [stderr] Checking glutin v0.20.1 [INFO] [stderr] Compiling cargo_metadata v0.6.4 [INFO] [stderr] Checking gfx_window_glutin v0.30.0 [INFO] [stderr] Compiling skeptic v0.13.4 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Checking rodio v0.9.0 [INFO] [stderr] Checking crab v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ggez::audio::SoundSource` [INFO] [stdout] --> src/game/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::audio::SoundSource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::audio::SoundSource` [INFO] [stdout] --> src/game/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::audio::SoundSource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Directions` [INFO] [stdout] --> src/game/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::game::claw::{Directions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::audio::SoundSource` [INFO] [stdout] --> src/game/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::audio::SoundSource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::audio::SoundSource` [INFO] [stdout] --> src/game/state.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::audio::SoundSource; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Directions` [INFO] [stdout] --> src/game/mod.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::game::claw::{Directions}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keycode` [INFO] [stdout] --> src/game/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | keycode: KeyCode, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keycode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score_1` [INFO] [stdout] --> src/game/state.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let score_1 = graphics::Text::new((format!("Player 1: #{}", [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_score_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score_2` [INFO] [stdout] --> src/game/state.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let score_2 = graphics::Text::new((format!("Player 2: #{}", [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_score_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/state.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn render_ui(&self, ctx: &mut Context) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/game/state.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let c1 = self.player1.claw.get_origin(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/game/state.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let c2 = self.player2.claw.get_origin(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_screen` [INFO] [stdout] --> src/game/crab.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn update(&mut self, max_screen: f32) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/crab.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/crab.rs:36:43 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_loc` [INFO] [stdout] --> src/game/player.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn update(&mut self, new_loc: Point2) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/player.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | ctx: &mut Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/player.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/game/player.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn movedir(&mut self, dir: Directions) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_loc` [INFO] [stdout] --> src/game/claw.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update(&mut self, parent_loc: Point2) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/claw.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/claw.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/game/claw.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn movedir(&mut self, dir:Directions) -> Vector2 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/game/snacks.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn spawn_snacks(num: usize) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/snacks.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/snacks.rs:41:43 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/game/snacks.rs:49:37 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn collides_with(&mut self, other: Point2) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SNACK_W` [INFO] [stdout] --> src/game/config.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub const SNACK_W: f32 = 40.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/crab.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | velocity: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/game/crab.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | w: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `s` [INFO] [stdout] --> src/game/crab.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | s: f32 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increase_score` [INFO] [stdout] --> src/game/player.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn increase_score(&mut self) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `movedir` [INFO] [stdout] --> src/game/player.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn movedir(&mut self, dir: Directions) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Directions` [INFO] [stdout] --> src/game/claw.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Directions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `body_anchor` [INFO] [stdout] --> src/game/claw.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | body_anchor: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joint_anchor` [INFO] [stdout] --> src/game/claw.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | joint_anchor: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/game/claw.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | w: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `h` [INFO] [stdout] --> src/game/claw.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | h: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `s` [INFO] [stdout] --> src/game/claw.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | s: f32 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/game/claw.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update(&mut self, parent_loc: Point2) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw` [INFO] [stdout] --> src/game/claw.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `movedir` [INFO] [stdout] --> src/game/claw.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn movedir(&mut self, dir:Directions) -> Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/game/snacks.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | location: Point2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/snacks.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | velocity: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/game/snacks.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | w: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/game/snacks.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | active: bool [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/game/snacks.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn new () -> GameResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `collides_with` [INFO] [stdout] --> src/game/snacks.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn collides_with(&mut self, other: Point2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Point2` [INFO] [stdout] --> src/game/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | type Point2 = na::Point2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keycode` [INFO] [stdout] --> src/game/mod.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | keycode: KeyCode, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keycode` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score_1` [INFO] [stdout] --> src/game/state.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let score_1 = graphics::Text::new((format!("Player 1: #{}", [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_score_1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `score_2` [INFO] [stdout] --> src/game/state.rs:55:13 [INFO] [stdout] | [INFO] [stdout] 55 | let score_2 = graphics::Text::new((format!("Player 2: #{}", [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_score_2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/state.rs:51:29 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn render_ui(&self, ctx: &mut Context) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c1` [INFO] [stdout] --> src/game/state.rs:66:13 [INFO] [stdout] | [INFO] [stdout] 66 | let c1 = self.player1.claw.get_origin(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c2` [INFO] [stdout] --> src/game/state.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let c2 = self.player2.claw.get_origin(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_c2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_screen` [INFO] [stdout] --> src/game/crab.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn update(&mut self, max_screen: f32) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_screen` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/crab.rs:36:24 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/crab.rs:36:43 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_loc` [INFO] [stdout] --> src/game/player.rs:29:30 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn update(&mut self, new_loc: Point2) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/player.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | ctx: &mut Context, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/player.rs:38:17 [INFO] [stdout] | [INFO] [stdout] 38 | img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/game/player.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn movedir(&mut self, dir: Directions) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parent_loc` [INFO] [stdout] --> src/game/claw.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update(&mut self, parent_loc: Point2) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_parent_loc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/claw.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/claw.rs:48:43 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dir` [INFO] [stdout] --> src/game/claw.rs:64:31 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn movedir(&mut self, dir:Directions) -> Vector2 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_dir` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/game/snacks.rs:59:21 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn spawn_snacks(num: usize) -> Vec { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game/snacks.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `img` [INFO] [stdout] --> src/game/snacks.rs:41:43 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_img` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `other` [INFO] [stdout] --> src/game/snacks.rs:49:37 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn collides_with(&mut self, other: Point2) -> bool { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_other` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SNACK_W` [INFO] [stdout] --> src/game/config.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | pub const SNACK_W: f32 = 40.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/crab.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | velocity: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/game/crab.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | w: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `s` [INFO] [stdout] --> src/game/crab.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | s: f32 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `increase_score` [INFO] [stdout] --> src/game/player.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn increase_score(&mut self) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `movedir` [INFO] [stdout] --> src/game/player.rs:52:12 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn movedir(&mut self, dir: Directions) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Directions` [INFO] [stdout] --> src/game/claw.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Directions { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `body_anchor` [INFO] [stdout] --> src/game/claw.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | body_anchor: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `joint_anchor` [INFO] [stdout] --> src/game/claw.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | joint_anchor: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/game/claw.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | w: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `h` [INFO] [stdout] --> src/game/claw.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | h: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `s` [INFO] [stdout] --> src/game/claw.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | s: f32 [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/game/claw.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn update(&mut self, parent_loc: Point2) -> GameResult<&Self> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `draw` [INFO] [stdout] --> src/game/claw.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn draw(&self, ctx: &mut Context, img: &graphics::Image) -> GameResult<&Self> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `movedir` [INFO] [stdout] --> src/game/claw.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub fn movedir(&mut self, dir:Directions) -> Vector2 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `location` [INFO] [stdout] --> src/game/snacks.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | location: Point2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `velocity` [INFO] [stdout] --> src/game/snacks.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | velocity: Vector2, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `w` [INFO] [stdout] --> src/game/snacks.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | w: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `active` [INFO] [stdout] --> src/game/snacks.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | active: bool [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/game/snacks.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn new () -> GameResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `collides_with` [INFO] [stdout] --> src/game/snacks.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn collides_with(&mut self, other: Point2) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Point2` [INFO] [stdout] --> src/game/mod.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | type Point2 = na::Point2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 46 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 47s [INFO] running `Command { std: "docker" "inspect" "e45e39c0fe61a569a324f7e72ca19ad907bb4dce31aae9e5e9a3a3ff5cef4c12", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e45e39c0fe61a569a324f7e72ca19ad907bb4dce31aae9e5e9a3a3ff5cef4c12", kill_on_drop: false }` [INFO] [stdout] e45e39c0fe61a569a324f7e72ca19ad907bb4dce31aae9e5e9a3a3ff5cef4c12