[INFO] cloning repository https://github.com/Sk3pz/micro_golf [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Sk3pz/micro_golf" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSk3pz%2Fmicro_golf", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSk3pz%2Fmicro_golf'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d72927a252fbe71506469f5a4d3abd251c6ced5f [INFO] building Sk3pz/micro_golf against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSk3pz%2Fmicro_golf" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Sk3pz/micro_golf [INFO] finished tweaking git repo https://github.com/Sk3pz/micro_golf [INFO] tweaked toml for git repo https://github.com/Sk3pz/micro_golf written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Sk3pz/micro_golf on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Sk3pz/micro_golf 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a6789611097b81223192d0fbeaa9fae7a583835eb216435447453d7c00b7531 [INFO] running `Command { std: "docker" "start" "-a" "8a6789611097b81223192d0fbeaa9fae7a583835eb216435447453d7c00b7531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a6789611097b81223192d0fbeaa9fae7a583835eb216435447453d7c00b7531", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a6789611097b81223192d0fbeaa9fae7a583835eb216435447453d7c00b7531", kill_on_drop: false }` [INFO] [stdout] 8a6789611097b81223192d0fbeaa9fae7a583835eb216435447453d7c00b7531 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7cfce194ebfc42eeabae7d7f89133b966873e697ad43e74e39b643626216652 [INFO] running `Command { std: "docker" "start" "-a" "b7cfce194ebfc42eeabae7d7f89133b966873e697ad43e74e39b643626216652", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling proc-macro2 v1.0.28 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling syn v1.0.75 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling smallvec v1.6.1 [INFO] [stderr] Compiling memoffset v0.6.4 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling wayland-sys v0.28.6 [INFO] [stderr] Compiling libloading v0.7.0 [INFO] [stderr] Compiling serde_derive v1.0.128 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling serde v1.0.128 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling once_cell v1.8.0 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling instant v0.1.10 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling crossbeam-epoch v0.9.5 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling wayland-scanner v0.28.6 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling lock_api v0.4.4 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling rayon-core v1.9.1 [INFO] [stderr] Compiling serde_json v1.0.66 [INFO] [stderr] Compiling euclid v0.22.6 [INFO] [stderr] Compiling nix v0.20.1 [INFO] [stderr] Compiling jobserver v0.1.24 [INFO] [stderr] Compiling getrandom v0.2.3 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling parking_lot_core v0.8.3 [INFO] [stderr] Compiling cc v1.0.69 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling wayland-client v0.28.6 [INFO] [stderr] Compiling rand v0.8.4 [INFO] [stderr] Compiling wayland-protocols v0.28.6 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling xcursor v0.3.3 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling nix v0.18.0 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling ttf-parser v0.12.3 [INFO] [stderr] Compiling xdg v2.2.0 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling itoa v0.4.8 [INFO] [stderr] Compiling slab v0.4.4 [INFO] [stderr] Compiling lyon_geom v0.17.5 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.1 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling owned_ttf_parser v0.12.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.1 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Compiling wayland-commons v0.28.6 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling rayon v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling draw_state v0.8.0 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Compiling gfx_core v0.9.2 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling thiserror-impl v1.0.26 [INFO] [stderr] Compiling wayland-cursor v0.28.6 [INFO] [stderr] Compiling ab_glyph v0.2.11 [INFO] [stderr] Compiling lyon_path v0.17.6 [INFO] [stderr] Compiling thiserror v1.0.26 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling sid v0.6.1 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling glob v0.3.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling weezl v0.1.5 [INFO] [stderr] Compiling cpal v0.13.4 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling either v1.6.1 [INFO] [stderr] Compiling tinyvec v1.3.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling alsa v0.5.0 [INFO] [stderr] Compiling wayland-egl v0.28.6 [INFO] [stderr] Compiling slice-deque v0.3.0 [INFO] [stderr] Compiling float_next_after v0.1.5 [INFO] [stderr] Compiling approx v0.5.0 [INFO] [stderr] Compiling ogg v0.8.0 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling linked-hash-map v0.5.4 [INFO] [stderr] Compiling xi-unicode v0.3.0 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling glyph_brush_layout v0.2.3 [INFO] [stderr] Compiling gilrs-core v0.3.1 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling gif v0.11.2 [INFO] [stderr] Compiling lewton v0.10.2 [INFO] [stderr] Compiling twox-hash v1.6.1 [INFO] [stderr] Compiling minimp3 v0.5.1 [INFO] [stderr] Compiling gfx_device_gl v0.16.2 [INFO] [stderr] Compiling lyon_tessellation v0.17.8 [INFO] [stderr] Compiling glyph_brush_draw_cache v0.1.4 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling lyon_algorithms v0.17.4 [INFO] [stderr] Compiling dirs-sys v0.3.6 [INFO] [stderr] Compiling ordered-float v2.7.0 [INFO] [stderr] Compiling hound v3.4.0 [INFO] [stderr] Compiling claxon v0.4.3 [INFO] [stderr] Compiling mint v0.5.6 [INFO] [stderr] Compiling bytemuck v1.7.2 [INFO] [stderr] Compiling glyph_brush v0.7.2 [INFO] [stderr] Compiling gilrs v0.8.1 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling directories v3.0.2 [INFO] [stderr] Compiling rodio v0.14.0 [INFO] [stderr] Compiling lyon v0.17.5 [INFO] [stderr] Compiling gfx v0.18.2 [INFO] [stderr] Compiling glam v0.15.2 [INFO] [stderr] Compiling smart-default v0.6.0 [INFO] [stderr] Compiling cargo-platform v0.1.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.3 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling winit v0.24.0 [INFO] [stderr] Compiling bzip2 v0.4.3 [INFO] [stderr] Compiling ggez v0.6.0 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling glutin v0.26.0 [INFO] [stderr] Compiling old_school_gfx_glutin_ext v0.26.0 [INFO] [stderr] Compiling micro_golf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/game.rs:2:43 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::{Context, GameResult, graphics, GameError, timer}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Axis`, `Button`, `ErrorOrigin`, and `GamepadId` [INFO] [stdout] --> src/game.rs:3:55 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::event::{EventHandler, MouseButton, KeyMods, Button, GamepadId, Axis, ErrorOrigin, KeyCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/game.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::mint::Vector2` [INFO] [stdout] --> src/velocity.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::mint::Vector2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::mint::Point2` [INFO] [stdout] --> src/velocity/ball.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::mint::Point2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WINDOW_HEIGHT` and `WINDOW_WIDTH` [INFO] [stdout] --> src/velocity/ball.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{WINDOW_WIDTH, WINDOW_HEIGHT}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::window` [INFO] [stdout] --> src/velocity/ball.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ggez::graphics::window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/velocity/ball.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | self.pos.x += (self.velocity.direction.sin() * speed); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - self.pos.x += (self.velocity.direction.sin() * speed); [INFO] [stdout] 35 + self.pos.x += self.velocity.direction.sin() * speed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/velocity/ball.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | self.pos.y += (self.velocity.direction.cos() * speed); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - self.pos.y += (self.velocity.direction.cos() * speed); [INFO] [stdout] 36 + self.pos.y += self.velocity.direction.cos() * speed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obstacle(&mut self, ctx: &mut Context, b: Box) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/game.rs:85:51 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obstacle(&mut self, ctx: &mut Context, b: Box) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn handle_collisions(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:272:34 [INFO] [stdout] | [INFO] [stdout] 272 | fn key_down_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods, repeat: bool) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymods` [INFO] [stdout] --> src/game.rs:272:71 [INFO] [stdout] | [INFO] [stdout] 272 | fn key_down_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods, repeat: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repeat` [INFO] [stdout] --> src/game.rs:272:89 [INFO] [stdout] | [INFO] [stdout] 272 | fn key_down_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods, repeat: bool) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:278:32 [INFO] [stdout] | [INFO] [stdout] 278 | fn key_up_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut delta_x = self.mouse_pos.x - self.ball_center().x; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let mut delta_y = self.mouse_pos.y - self.ball_center().y; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:247:43 [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game.rs:247:83 [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, _x: f32, y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 247 - fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 247 + fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, MAX_POWER: f32, y: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game.rs:247:91 [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, _y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 247 - fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 247 + fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, MAX_POWER: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:256:41 [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game.rs:256:81 [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, _x: f32, y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 256 - fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 256 + fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, MAX_POWER: f32, y: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game.rs:256:89 [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, _y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 256 - fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 256 + fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, MAX_POWER: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:268:38 [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dx` [INFO] [stdout] --> src/game.rs:268:73 [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, _dx: f32, dy: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 268 - fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] 268 + fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, MAX_POWER: f32, dy: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dy` [INFO] [stdout] --> src/game.rs:268:82 [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, _dy: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 268 - fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] 268 + fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, MAX_POWER: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow_length` [INFO] [stdout] --> src/game.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let arrow_length = self.current_power().max(3.0); // TODO [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 236 | let _arrow_length = self.current_power().max(3.0); // TODO [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 236 - let arrow_length = self.current_power().max(3.0); // TODO [INFO] [stdout] 236 + let MAX_POWER = self.current_power().max(3.0); // TODO [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 189 | let mut m; [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/game.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | let mut mesh_error; [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/game.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut error_pos; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `barriers` is never read [INFO] [stdout] --> src/game.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MicroGolf { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | barriers: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_collisions` and `obstacle` are never used [INFO] [stdout] --> src/game.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl MicroGolf { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn handle_collisions(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn obstacle(&mut self, ctx: &mut Context, b: Box) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | graphics::draw(ctx, &self.assets.ball, drawparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 78 | let _ = graphics::draw(ctx, &self.assets.ball, drawparams); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | graphics::draw(ctx, &self.assets.hole, drawparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 82 | let _ = graphics::draw(ctx, &self.assets.hole, drawparams); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | graphics::draw(ctx, &distance_display, (Vec2::new(10.0, self.window_height - 20.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 167 | let _ = graphics::draw(ctx, &distance_display, (Vec2::new(10.0, self.window_height - 20.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | graphics::draw(ctx, &pos_display, (Vec2::new(10.0, self.window_height - 40.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 171 | let _ = graphics::draw(ctx, &pos_display, (Vec2::new(10.0, self.window_height - 40.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | graphics::draw(ctx, &ball_pos_display, (Vec2::new(10.0, self.window_height - 60.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = graphics::draw(ctx, &ball_pos_display, (Vec2::new(10.0, self.window_height - 60.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | graphics::draw(ctx, &ball_angle_display, (Vec2::new(10.0, self.window_height - 80.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 179 | let _ = graphics::draw(ctx, &ball_angle_display, (Vec2::new(10.0, self.window_height - 80.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | graphics::draw(ctx, &vel_display, (Vec2::new(10.0, self.window_height - 100.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 183 | let _ = graphics::draw(ctx, &vel_display, (Vec2::new(10.0, self.window_height - 100.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | graphics::draw(ctx, &avel_display, (Vec2::new(10.0, self.window_height - 120.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 187 | let _ = graphics::draw(ctx, &avel_display, (Vec2::new(10.0, self.window_height - 120.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | / mesh.line(&[ [INFO] [stdout] 197 | | self.mouse_pos, [INFO] [stdout] 198 | | self.ball_center() [INFO] [stdout] 199 | | ], 4.0, Color::new(0.2, 0.2, 0.2, 1.0)); [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 196 | let _ = mesh.line(&[ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | / mesh.line(&[ [INFO] [stdout] 212 | | future_pos, [INFO] [stdout] 213 | | self.ball_center() [INFO] [stdout] 214 | | ], 4.0, Color::new(0.2, 0.2, 0.2, 1.0)); [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 211 | let _ = mesh.line(&[ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | graphics::draw(ctx, &m.unwrap(), DrawParam::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 221 | let _ = graphics::draw(ctx, &m.unwrap(), DrawParam::new()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | graphics::draw(ctx, &mesh_error, (error_pos, 0.0, Color::WHITE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 223 | let _ = graphics::draw(ctx, &mesh_error, (error_pos, 0.0, Color::WHITE)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | graphics::draw(ctx, &strokes_display, (strokes_dest, 0.0, Color::WHITE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 238 | let _ = graphics::draw(ctx, &strokes_display, (strokes_dest, 0.0, Color::WHITE)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | graphics::draw(ctx, &hole_display, (hole_dest, 0.0, Color::WHITE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 239 | let _ = graphics::draw(ctx, &hole_display, (hole_dest, 0.0, Color::WHITE)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 40s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "b7cfce194ebfc42eeabae7d7f89133b966873e697ad43e74e39b643626216652", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7cfce194ebfc42eeabae7d7f89133b966873e697ad43e74e39b643626216652", kill_on_drop: false }` [INFO] [stdout] b7cfce194ebfc42eeabae7d7f89133b966873e697ad43e74e39b643626216652 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0374df62f5a288e481ef1024dccef1a13727a882b2086142b8c27882cfcf588a [INFO] running `Command { std: "docker" "start" "-a" "0374df62f5a288e481ef1024dccef1a13727a882b2086142b8c27882cfcf588a", kill_on_drop: false }` [INFO] [stderr] Compiling micro_golf v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `GameError` [INFO] [stdout] --> src/game.rs:2:43 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::{Context, GameResult, graphics, GameError, timer}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Axis`, `Button`, `ErrorOrigin`, and `GamepadId` [INFO] [stdout] --> src/game.rs:3:55 [INFO] [stdout] | [INFO] [stdout] 3 | use ggez::event::{EventHandler, MouseButton, KeyMods, Button, GamepadId, Axis, ErrorOrigin, KeyCode}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/game.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Display` and `Formatter` [INFO] [stdout] --> src/game.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::{Display, Formatter}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::f32::consts::PI` [INFO] [stdout] --> src/game.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use std::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::mint::Vector2` [INFO] [stdout] --> src/velocity.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ggez::mint::Vector2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::mint::Point2` [INFO] [stdout] --> src/velocity/ball.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ggez::mint::Point2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WINDOW_HEIGHT` and `WINDOW_WIDTH` [INFO] [stdout] --> src/velocity/ball.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{WINDOW_WIDTH, WINDOW_HEIGHT}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::graphics::window` [INFO] [stdout] --> src/velocity/ball.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use ggez::graphics::window; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/velocity/ball.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 35 | self.pos.x += (self.velocity.direction.sin() * speed); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 35 - self.pos.x += (self.velocity.direction.sin() * speed); [INFO] [stdout] 35 + self.pos.x += self.velocity.direction.sin() * speed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/velocity/ball.rs:36:23 [INFO] [stdout] | [INFO] [stdout] 36 | self.pos.y += (self.velocity.direction.cos() * speed); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 36 - self.pos.y += (self.velocity.direction.cos() * speed); [INFO] [stdout] 36 + self.pos.y += self.velocity.direction.cos() * speed; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:85:32 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obstacle(&mut self, ctx: &mut Context, b: Box) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/game.rs:85:51 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn obstacle(&mut self, ctx: &mut Context, b: Box) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn handle_collisions(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:272:34 [INFO] [stdout] | [INFO] [stdout] 272 | fn key_down_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods, repeat: bool) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `keymods` [INFO] [stdout] --> src/game.rs:272:71 [INFO] [stdout] | [INFO] [stdout] 272 | fn key_down_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods, repeat: bool) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_keymods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `repeat` [INFO] [stdout] --> src/game.rs:272:89 [INFO] [stdout] | [INFO] [stdout] 272 | fn key_down_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods, repeat: bool) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_repeat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:278:32 [INFO] [stdout] | [INFO] [stdout] 278 | fn key_up_event(&mut self, ctx: &mut Context, keycode: KeyCode, keymods: KeyMods) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:247:43 [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game.rs:247:83 [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, _x: f32, y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 247 - fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 247 + fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, MAX_POWER: f32, y: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game.rs:247:91 [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 247 | fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, _y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 247 - fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 247 + fn mouse_button_down_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, MAX_POWER: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:256:41 [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/game.rs:256:81 [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, _x: f32, y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 256 - fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 256 + fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, MAX_POWER: f32, y: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/game.rs:256:89 [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 256 | fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, _y: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 256 - fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, y: f32) { [INFO] [stdout] 256 + fn mouse_button_up_event(&mut self, ctx: &mut Context, button: MouseButton, x: f32, MAX_POWER: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/game.rs:268:38 [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dx` [INFO] [stdout] --> src/game.rs:268:73 [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, _dx: f32, dy: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 268 - fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] 268 + fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, MAX_POWER: f32, dy: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dy` [INFO] [stdout] --> src/game.rs:268:82 [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 268 | fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, _dy: f32) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 268 - fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, dy: f32) { [INFO] [stdout] 268 + fn mouse_motion_event(&mut self, ctx: &mut Context, x: f32, y: f32, dx: f32, MAX_POWER: f32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut delta_x = self.mouse_pos.x - self.ball_center().x; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | let mut delta_y = self.mouse_pos.y - self.ball_center().y; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arrow_length` [INFO] [stdout] --> src/game.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let arrow_length = self.current_power().max(3.0); // TODO [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 236 | let _arrow_length = self.current_power().max(3.0); // TODO [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `MAX_POWER` [INFO] [stdout] | [INFO] [stdout] 236 - let arrow_length = self.current_power().max(3.0); // TODO [INFO] [stdout] 236 + let MAX_POWER = self.current_power().max(3.0); // TODO [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/game.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 189 | let mut m; [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/game.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | let mut mesh_error; [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/game.rs:191:17 [INFO] [stdout] | [INFO] [stdout] 191 | let mut error_pos; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `barriers` is never read [INFO] [stdout] --> src/game.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct MicroGolf { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 27 | barriers: Vec>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `handle_collisions` and `obstacle` are never used [INFO] [stdout] --> src/game.rs:71:12 [INFO] [stdout] | [INFO] [stdout] 36 | impl MicroGolf { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn handle_collisions(&mut self, ctx: &Context) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | pub fn obstacle(&mut self, ctx: &mut Context, b: Box) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | graphics::draw(ctx, &self.assets.ball, drawparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 78 | let _ = graphics::draw(ctx, &self.assets.ball, drawparams); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | graphics::draw(ctx, &self.assets.hole, drawparams); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 82 | let _ = graphics::draw(ctx, &self.assets.hole, drawparams); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | graphics::draw(ctx, &distance_display, (Vec2::new(10.0, self.window_height - 20.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 167 | let _ = graphics::draw(ctx, &distance_display, (Vec2::new(10.0, self.window_height - 20.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | graphics::draw(ctx, &pos_display, (Vec2::new(10.0, self.window_height - 40.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 171 | let _ = graphics::draw(ctx, &pos_display, (Vec2::new(10.0, self.window_height - 40.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | graphics::draw(ctx, &ball_pos_display, (Vec2::new(10.0, self.window_height - 60.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 175 | let _ = graphics::draw(ctx, &ball_pos_display, (Vec2::new(10.0, self.window_height - 60.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:179:13 [INFO] [stdout] | [INFO] [stdout] 179 | graphics::draw(ctx, &ball_angle_display, (Vec2::new(10.0, self.window_height - 80.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 179 | let _ = graphics::draw(ctx, &ball_angle_display, (Vec2::new(10.0, self.window_height - 80.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:183:13 [INFO] [stdout] | [INFO] [stdout] 183 | graphics::draw(ctx, &vel_display, (Vec2::new(10.0, self.window_height - 100.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 183 | let _ = graphics::draw(ctx, &vel_display, (Vec2::new(10.0, self.window_height - 100.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:187:13 [INFO] [stdout] | [INFO] [stdout] 187 | graphics::draw(ctx, &avel_display, (Vec2::new(10.0, self.window_height - 120.0), 0.0, debug_text_color)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 187 | let _ = graphics::draw(ctx, &avel_display, (Vec2::new(10.0, self.window_height - 120.0), 0.0, debug_text_color)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:196:17 [INFO] [stdout] | [INFO] [stdout] 196 | / mesh.line(&[ [INFO] [stdout] 197 | | self.mouse_pos, [INFO] [stdout] 198 | | self.ball_center() [INFO] [stdout] 199 | | ], 4.0, Color::new(0.2, 0.2, 0.2, 1.0)); [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 196 | let _ = mesh.line(&[ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:211:17 [INFO] [stdout] | [INFO] [stdout] 211 | / mesh.line(&[ [INFO] [stdout] 212 | | future_pos, [INFO] [stdout] 213 | | self.ball_center() [INFO] [stdout] 214 | | ], 4.0, Color::new(0.2, 0.2, 0.2, 1.0)); [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 211 | let _ = mesh.line(&[ [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:221:17 [INFO] [stdout] | [INFO] [stdout] 221 | graphics::draw(ctx, &m.unwrap(), DrawParam::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 221 | let _ = graphics::draw(ctx, &m.unwrap(), DrawParam::new()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:223:17 [INFO] [stdout] | [INFO] [stdout] 223 | graphics::draw(ctx, &mesh_error, (error_pos, 0.0, Color::WHITE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 223 | let _ = graphics::draw(ctx, &mesh_error, (error_pos, 0.0, Color::WHITE)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | graphics::draw(ctx, &strokes_display, (strokes_dest, 0.0, Color::WHITE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 238 | let _ = graphics::draw(ctx, &strokes_display, (strokes_dest, 0.0, Color::WHITE)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/game.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | graphics::draw(ctx, &hole_display, (hole_dest, 0.0, Color::WHITE)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 239 | let _ = graphics::draw(ctx, &hole_display, (hole_dest, 0.0, Color::WHITE)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.38s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v6.1.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` [INFO] running `Command { std: "docker" "inspect" "0374df62f5a288e481ef1024dccef1a13727a882b2086142b8c27882cfcf588a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0374df62f5a288e481ef1024dccef1a13727a882b2086142b8c27882cfcf588a", kill_on_drop: false }` [INFO] [stdout] 0374df62f5a288e481ef1024dccef1a13727a882b2086142b8c27882cfcf588a