[INFO] cloning repository https://github.com/MetalElitist/rust-tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MetalElitist/rust-tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMetalElitist%2Frust-tetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMetalElitist%2Frust-tetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] aa42f83c7287a24c7ef56118f263056f9aef135e [INFO] checking MetalElitist/rust-tetris against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMetalElitist%2Frust-tetris" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MetalElitist/rust-tetris on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MetalElitist/rust-tetris [INFO] finished tweaking git repo https://github.com/MetalElitist/rust-tetris [INFO] tweaked toml for git repo https://github.com/MetalElitist/rust-tetris written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/MetalElitist/rust-tetris already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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] 643bb4bea4f7616e6a586cfb350f48e86e38ada173119f0dc1b268cb5c82e931 [INFO] running `Command { std: "docker" "start" "-a" "643bb4bea4f7616e6a586cfb350f48e86e38ada173119f0dc1b268cb5c82e931", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "643bb4bea4f7616e6a586cfb350f48e86e38ada173119f0dc1b268cb5c82e931", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "643bb4bea4f7616e6a586cfb350f48e86e38ada173119f0dc1b268cb5c82e931", kill_on_drop: false }` [INFO] [stdout] 643bb4bea4f7616e6a586cfb350f48e86e38ada173119f0dc1b268cb5c82e931 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] db7cd5a4342d1620130d0f0c68649833dcdd08b668292699413ea807eb35a9e6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "db7cd5a4342d1620130d0f0c68649833dcdd08b668292699413ea807eb35a9e6", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.50 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Checking lock_api v0.3.3 [INFO] [stderr] Checking walkdir v2.3.1 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Checking num_cpus v1.12.0 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking dirs-sys v0.3.4 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking toml v0.5.6 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Compiling serde_json v1.0.44 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking nix v0.15.0 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling x11-dl v2.18.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking lewton v0.9.4 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.32 [INFO] [stderr] Compiling minimp3-sys v0.3.1 [INFO] [stderr] Compiling bzip2-sys v0.1.7 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking num-integer v0.1.42 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling gfx_gl v0.6.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Checking sid v0.5.2 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Checking alga v0.9.2 [INFO] [stderr] Checking twox-hash v1.5.0 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking minimp3 v0.3.3 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Compiling backtrace v0.3.42 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking zip v0.5.4 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Checking rusttype v0.8.2 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking gilrs-core v0.2.5 [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 gilrs v0.7.3 [INFO] [stderr] Checking glyph_brush v0.6.1 [INFO] [stderr] Checking glyph_brush v0.5.4 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Compiling serde_derive v1.0.104 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking lyon_geom v0.12.7 [INFO] [stderr] Checking image v0.22.4 [INFO] [stderr] Checking lyon_path v0.13.2 [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 smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking winit v0.19.5 [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 tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Point2` [INFO] [stdout] --> src/main.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::mint::{Point2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::input::keyboard` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ggez::input::keyboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `DAS_DEBUG` should have an upper camel case name [INFO] [stdout] --> src/das.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct DAS_DEBUG { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `DasDebug` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | if (self.lines/2 >= self.level && self.lines % 2 == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Point2` [INFO] [stdout] --> src/main.rs:4:18 [INFO] [stdout] | [INFO] [stdout] 4 | use ggez::mint::{Point2}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ggez::input::keyboard` [INFO] [stdout] --> src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use ggez::input::keyboard; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::time` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `DAS_DEBUG` should have an upper camel case name [INFO] [stdout] --> src/das.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct DAS_DEBUG { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `DasDebug` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:135:6 [INFO] [stdout] | [INFO] [stdout] 135 | if (self.lines/2 >= self.level && self.lines % 2 == 0) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:263:31 [INFO] [stdout] | [INFO] [stdout] 263 | fn key_down_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods, _: bool) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mods` [INFO] [stdout] --> src/main.rs:263:64 [INFO] [stdout] | [INFO] [stdout] 263 | fn key_down_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods, _: bool) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:296:29 [INFO] [stdout] | [INFO] [stdout] 296 | fn key_up_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mods` [INFO] [stdout] --> src/main.rs:296:62 [INFO] [stdout] | [INFO] [stdout] 296 | fn key_up_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/tetromino.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | x => [[[1; crate::tetromino_width]; crate::tetromino_height]; 4], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `red` is never read [INFO] [stdout] --> src/das.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | let mut red = 355 - das.ticks_left_to_activate as i32; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:7 [INFO] [stdout] | [INFO] [stdout] 242 | let mut tetromino_mesh = &self.block_mesh; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/das.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | let mut blue = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DAS_DEBUG` [INFO] [stdout] --> src/das.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct DAS_DEBUG { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `debug_mesh` [INFO] [stdout] --> src/das.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn debug_mesh(ctx: &mut ggez::Context, das: &DAS, cellsize: f32) -> ggez::graphics::Mesh { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `font` [INFO] [stdout] --> src/hud.rs:5:2 [INFO] [stdout] | [INFO] [stdout] 5 | font: graphics::Font, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tetromino_normal_fall_delay` [INFO] [stdout] --> src/main.rs:48:2 [INFO] [stdout] | [INFO] [stdout] 48 | tetromino_normal_fall_delay: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `grid_cols` should have an upper case name [INFO] [stdout] --> src/main.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub const grid_cols : usize = 12; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `GRID_COLS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `grid_rows` should have an upper case name [INFO] [stdout] --> src/main.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const grid_rows : usize = 30; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `GRID_ROWS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cellsize` should have an upper case name [INFO] [stdout] --> src/main.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const cellsize : f32 = 25f32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `CELLSIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `tetromino_width` should have an upper case name [INFO] [stdout] --> src/main.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const tetromino_width : usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TETROMINO_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `tetromino_height` should have an upper case name [INFO] [stdout] --> src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const tetromino_height : usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TETROMINO_HEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `next_tetromino_frame_width` should have an upper case name [INFO] [stdout] --> src/main.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const next_tetromino_frame_width : f32 = cellsize * 6.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `NEXT_TETROMINO_FRAME_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `next_tetromino_x_offset` should have an upper case name [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub const next_tetromino_x_offset : f32 = cellsize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `NEXT_TETROMINO_X_OFFSET` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `next_tetromino_y_offset` should have an upper case name [INFO] [stdout] --> src/main.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub const next_tetromino_y_offset : f32 = cellsize*5.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `NEXT_TETROMINO_Y_OFFSET` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `window_width` should have an upper case name [INFO] [stdout] --> src/main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const window_width : f32 = grid_cols as f32*cellsize + next_tetromino_frame_width; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `WINDOW_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `window_height` should have an upper case name [INFO] [stdout] --> src/main.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const window_height : f32 = grid_rows as f32*cellsize; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `WINDOW_HEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | graphics::draw(ctx, &next_tetr_frame_mesh, (na::Point2::::new(grid_cols as f32 *cellsize, 0.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:205:4 [INFO] [stdout] | [INFO] [stdout] 205 | graphics::draw(ctx, &next_tetr_frame_mesh2, (na::Point2::::new(grid_cols as f32 *cellsize, 0.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockX` should have a snake case name [INFO] [stdout] --> src/main.rs:212:11 [INFO] [stdout] | [INFO] [stdout] 212 | let blockX = x as f32 * cellsize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockY` should have a snake case name [INFO] [stdout] --> src/main.rs:213:11 [INFO] [stdout] | [INFO] [stdout] 213 | let blockY = y as f32 * cellsize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:214:7 [INFO] [stdout] | [INFO] [stdout] 214 | ... graphics::draw(ctx, &self.block_mesh, (na::Point2::::new(blockX + grid_cols as f32*cellsize + next_tetromino_x_offset, blockY + next_tetromino_y_offset),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:215:7 [INFO] [stdout] | [INFO] [stdout] 215 | ... graphics::draw(ctx, &self.block_mesh2, (na::Point2::::new(blockX + grid_cols as f32*cellsize + next_tetromino_x_offset, blockY + next_tetromino_y_offset),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:234:6 [INFO] [stdout] | [INFO] [stdout] 234 | graphics::draw(ctx, &self.block_mesh, (na::Point2::::new(x as f32 * cellsize as f32, y as f32 * ce... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:235:6 [INFO] [stdout] | [INFO] [stdout] 235 | graphics::draw(ctx, &self.block_mesh2,(na::Point2::::new(x as f32 * cellsize as f32, y as f32 * ce... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:237:6 [INFO] [stdout] | [INFO] [stdout] 237 | graphics::draw(ctx, &self.clear_mesh, (na::Point2::::new(x as f32 * cellsize as f32, y as f32 * ce... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockX` should have a snake case name [INFO] [stdout] --> src/main.rs:249:10 [INFO] [stdout] | [INFO] [stdout] 249 | let blockX = (self.tetr.pos.x + x as i32) as f32 * cellsize as f32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockY` should have a snake case name [INFO] [stdout] --> src/main.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | let blockY = (self.tetr.pos.y + y as i32) as f32 * cellsize as f32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:251:6 [INFO] [stdout] | [INFO] [stdout] 251 | graphics::draw(ctx, tetromino_mesh, (na::Point2::::new(blockX, blockY),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:252:6 [INFO] [stdout] | [INFO] [stdout] 252 | graphics::draw(ctx, &self.block_mesh2, (na::Point2::::new(blockX, blockY),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:257:3 [INFO] [stdout] | [INFO] [stdout] 257 | graphics::present(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_L1` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn create_L1() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `create_l1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_L2` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn create_L2() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `create_l2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_T` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn create_T() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `create_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_Z1` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn create_Z1() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `create_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_Z2` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn create_Z2() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `create_z2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_I` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn create_I() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `create_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/hud.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 33 | graphics::draw(ctx, &self.level_label, (na::Point2::::new(pos.x + 10.0, pos.y + 0.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:263:31 [INFO] [stdout] | [INFO] [stdout] 263 | fn key_down_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods, _: bool) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mods` [INFO] [stdout] --> src/main.rs:263:64 [INFO] [stdout] | [INFO] [stdout] 263 | fn key_down_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods, _: bool) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/main.rs:296:29 [INFO] [stdout] | [INFO] [stdout] 296 | fn key_up_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `mods` [INFO] [stdout] --> src/main.rs:296:62 [INFO] [stdout] | [INFO] [stdout] 296 | fn key_up_event(&mut self, ctx: &mut Context, key: KeyCode, mods: KeyMods) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_mods` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/tetromino.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | x => [[[1; crate::tetromino_width]; crate::tetromino_height]; 4], [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `red` is never read [INFO] [stdout] --> src/das.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 119 | let mut red = 355 - das.ticks_left_to_activate as i32; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/hud.rs:37:3 [INFO] [stdout] | [INFO] [stdout] 37 | graphics::draw(ctx, &self.lines_label, (na::Point2::::new(pos.x + 10.0, pos.y + 500.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:242:7 [INFO] [stdout] | [INFO] [stdout] 242 | let mut tetromino_mesh = &self.block_mesh; [INFO] [stdout] | ----^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/das.rs:128:7 [INFO] [stdout] | [INFO] [stdout] 128 | let mut blue = 0; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `DAS_DEBUG` [INFO] [stdout] --> src/das.rs:113:12 [INFO] [stdout] | [INFO] [stdout] 113 | pub struct DAS_DEBUG { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `debug_mesh` [INFO] [stdout] --> src/das.rs:118:9 [INFO] [stdout] | [INFO] [stdout] 118 | pub fn debug_mesh(ctx: &mut ggez::Context, das: &DAS, cellsize: f32) -> ggez::graphics::Mesh { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `font` [INFO] [stdout] --> src/hud.rs:5:2 [INFO] [stdout] | [INFO] [stdout] 5 | font: graphics::Font, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `tetromino_normal_fall_delay` [INFO] [stdout] --> src/main.rs:48:2 [INFO] [stdout] | [INFO] [stdout] 48 | tetromino_normal_fall_delay: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `grid_cols` should have an upper case name [INFO] [stdout] --> src/main.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | pub const grid_cols : usize = 12; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `GRID_COLS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `grid_rows` should have an upper case name [INFO] [stdout] --> src/main.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub const grid_rows : usize = 30; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `GRID_ROWS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `cellsize` should have an upper case name [INFO] [stdout] --> src/main.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub const cellsize : f32 = 25f32; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper case: `CELLSIZE` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `tetromino_width` should have an upper case name [INFO] [stdout] --> src/main.rs:24:11 [INFO] [stdout] | [INFO] [stdout] 24 | pub const tetromino_width : usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TETROMINO_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `tetromino_height` should have an upper case name [INFO] [stdout] --> src/main.rs:25:11 [INFO] [stdout] | [INFO] [stdout] 25 | pub const tetromino_height : usize = 4; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TETROMINO_HEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `next_tetromino_frame_width` should have an upper case name [INFO] [stdout] --> src/main.rs:27:11 [INFO] [stdout] | [INFO] [stdout] 27 | pub const next_tetromino_frame_width : f32 = cellsize * 6.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `NEXT_TETROMINO_FRAME_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `next_tetromino_x_offset` should have an upper case name [INFO] [stdout] --> src/main.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub const next_tetromino_x_offset : f32 = cellsize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `NEXT_TETROMINO_X_OFFSET` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `next_tetromino_y_offset` should have an upper case name [INFO] [stdout] --> src/main.rs:29:11 [INFO] [stdout] | [INFO] [stdout] 29 | pub const next_tetromino_y_offset : f32 = cellsize*5.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `NEXT_TETROMINO_Y_OFFSET` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `window_width` should have an upper case name [INFO] [stdout] --> src/main.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 30 | pub const window_width : f32 = grid_cols as f32*cellsize + next_tetromino_frame_width; [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to upper case: `WINDOW_WIDTH` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `window_height` should have an upper case name [INFO] [stdout] --> src/main.rs:31:11 [INFO] [stdout] | [INFO] [stdout] 31 | pub const window_height : f32 = grid_rows as f32*cellsize; [INFO] [stdout] | ^^^^^^^^^^^^^ help: convert the identifier to upper case: `WINDOW_HEIGHT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:204:4 [INFO] [stdout] | [INFO] [stdout] 204 | graphics::draw(ctx, &next_tetr_frame_mesh, (na::Point2::::new(grid_cols as f32 *cellsize, 0.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:205:4 [INFO] [stdout] | [INFO] [stdout] 205 | graphics::draw(ctx, &next_tetr_frame_mesh2, (na::Point2::::new(grid_cols as f32 *cellsize, 0.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockX` should have a snake case name [INFO] [stdout] --> src/main.rs:212:11 [INFO] [stdout] | [INFO] [stdout] 212 | let blockX = x as f32 * cellsize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockY` should have a snake case name [INFO] [stdout] --> src/main.rs:213:11 [INFO] [stdout] | [INFO] [stdout] 213 | let blockY = y as f32 * cellsize; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:214:7 [INFO] [stdout] | [INFO] [stdout] 214 | ... graphics::draw(ctx, &self.block_mesh, (na::Point2::::new(blockX + grid_cols as f32*cellsize + next_tetromino_x_offset, blockY + next_tetromino_y_offset),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:215:7 [INFO] [stdout] | [INFO] [stdout] 215 | ... graphics::draw(ctx, &self.block_mesh2, (na::Point2::::new(blockX + grid_cols as f32*cellsize + next_tetromino_x_offset, blockY + next_tetromino_y_offset),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:234:6 [INFO] [stdout] | [INFO] [stdout] 234 | graphics::draw(ctx, &self.block_mesh, (na::Point2::::new(x as f32 * cellsize as f32, y as f32 * ce... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:235:6 [INFO] [stdout] | [INFO] [stdout] 235 | graphics::draw(ctx, &self.block_mesh2,(na::Point2::::new(x as f32 * cellsize as f32, y as f32 * ce... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:237:6 [INFO] [stdout] | [INFO] [stdout] 237 | graphics::draw(ctx, &self.clear_mesh, (na::Point2::::new(x as f32 * cellsize as f32, y as f32 * ce... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockX` should have a snake case name [INFO] [stdout] --> src/main.rs:249:10 [INFO] [stdout] | [INFO] [stdout] 249 | let blockX = (self.tetr.pos.x + x as i32) as f32 * cellsize as f32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `blockY` should have a snake case name [INFO] [stdout] --> src/main.rs:250:10 [INFO] [stdout] | [INFO] [stdout] 250 | let blockY = (self.tetr.pos.y + y as i32) as f32 * cellsize as f32; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `block_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:251:6 [INFO] [stdout] | [INFO] [stdout] 251 | graphics::draw(ctx, tetromino_mesh, (na::Point2::::new(blockX, blockY),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:252:6 [INFO] [stdout] | [INFO] [stdout] 252 | graphics::draw(ctx, &self.block_mesh2, (na::Point2::::new(blockX, blockY),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:257:3 [INFO] [stdout] | [INFO] [stdout] 257 | graphics::present(ctx); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_L1` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:120:9 [INFO] [stdout] | [INFO] [stdout] 120 | pub fn create_L1() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `create_l1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_L2` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn create_L2() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `create_l2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_T` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn create_T() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `create_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_Z1` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | pub fn create_Z1() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `create_z1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_Z2` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:236:9 [INFO] [stdout] | [INFO] [stdout] 236 | pub fn create_Z2() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `create_z2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `create_I` should have a snake case name [INFO] [stdout] --> src/tetromino.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn create_I() -> [[[i32; crate::tetromino_width]; crate::tetromino_height]; 4] { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `create_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/hud.rs:33:3 [INFO] [stdout] | [INFO] [stdout] 33 | graphics::draw(ctx, &self.level_label, (na::Point2::::new(pos.x + 10.0, pos.y + 0.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/hud.rs:37:3 [INFO] [stdout] | [INFO] [stdout] 37 | graphics::draw(ctx, &self.lines_label, (na::Point2::::new(pos.x + 10.0, pos.y + 500.0),)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 49 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 06s [INFO] running `Command { std: "docker" "inspect" "db7cd5a4342d1620130d0f0c68649833dcdd08b668292699413ea807eb35a9e6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db7cd5a4342d1620130d0f0c68649833dcdd08b668292699413ea807eb35a9e6", kill_on_drop: false }` [INFO] [stdout] db7cd5a4342d1620130d0f0c68649833dcdd08b668292699413ea807eb35a9e6