[INFO] cloning repository https://github.com/kstigelman/RustTetris
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kstigelman/RustTetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkstigelman%2FRustTetris", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkstigelman%2FRustTetris'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a0d16c308c4972943bf6f02d0c19512d2808563a
[INFO] checking kstigelman/RustTetris against try#3fada14ee01d755dc8076e611f11bf65b28ffd21 for pr-154971
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkstigelman%2FRustTetris" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/kstigelman/RustTetris
[INFO] finished tweaking git repo https://github.com/kstigelman/RustTetris
[INFO] tweaked toml for git repo https://github.com/kstigelman/RustTetris written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/kstigelman/RustTetris on toolchain 3fada14ee01d755dc8076e611f11bf65b28ffd21
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/kstigelman/RustTetris 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" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded piston-graphics_api_version v1.0.1
[INFO] [stderr]   Downloaded pistoncore-window v0.47.1
[INFO] [stderr]   Downloaded shader_version v0.7.0
[INFO] [stderr]   Downloaded piston_window v0.120.0
[INFO] [stderr]   Downloaded interpolation v0.3.0
[INFO] [stderr]   Downloaded piston v1.0.0
[INFO] [stderr]   Downloaded pistoncore-event_loop v1.0.0
[INFO] [stderr]   Downloaded gl v0.13.0
[INFO] [stderr]   Downloaded pistoncore-window v1.0.0
[INFO] [stderr]   Downloaded piston-shaders_graphics2d v0.4.0
[INFO] [stderr]   Downloaded gfx v0.18.3
[INFO] [stderr]   Downloaded piston2d-gfx_graphics v0.73.0
[INFO] [stderr]   Downloaded piston2d-graphics v0.40.0
[INFO] [stderr]   Downloaded piston-texture v0.9.0
[INFO] [stderr]   Downloaded piston2d-graphics v0.45.0
[INFO] [stderr]   Downloaded gfx_device_gl v0.16.2
[INFO] [stderr]   Downloaded pistoncore-event_loop v0.53.1
[INFO] [stderr]   Downloaded gfx_gl v0.6.1
[INFO] [stderr]   Downloaded spin_sleep v1.3.1
[INFO] [stderr]   Downloaded piston v0.53.2
[INFO] [stderr]   Downloaded piston-gfx_texture v0.41.0
[INFO] [stderr]   Downloaded xdg v2.5.2
[INFO] [stderr]   Downloaded gfx_core v0.9.2
[INFO] [stderr]   Downloaded pistoncore-glutin_window v0.69.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 79a36ff33af355ac61d36e0970c849a802114430836c0be125c3247b0c568ba5
[INFO] running `Command { std: "docker" "start" "-a" "79a36ff33af355ac61d36e0970c849a802114430836c0be125c3247b0c568ba5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "79a36ff33af355ac61d36e0970c849a802114430836c0be125c3247b0c568ba5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "79a36ff33af355ac61d36e0970c849a802114430836c0be125c3247b0c568ba5", kill_on_drop: false }`
[INFO] [stdout] 79a36ff33af355ac61d36e0970c849a802114430836c0be125c3247b0c568ba5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+3fada14ee01d755dc8076e611f11bf65b28ffd21" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ca8faec4bb681d25671eb51f5b52fdc599a35ccc006a82edf6aaf0a5010165de
[INFO] running `Command { std: "docker" "start" "-a" "ca8faec4bb681d25671eb51f5b52fdc599a35ccc006a82edf6aaf0a5010165de", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.172
[INFO] [stderr]    Compiling xml-rs v0.8.26
[INFO] [stderr]    Compiling khronos_api v3.1.0
[INFO] [stderr]    Compiling log v0.4.27
[INFO] [stderr]     Checking piston-float v1.0.1
[INFO] [stderr]    Compiling wayland-sys v0.28.6
[INFO] [stderr]     Checking libloading v0.8.7
[INFO] [stderr]     Checking smallvec v1.15.0
[INFO] [stderr]     Checking piston-viewport v1.0.2
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking dlib v0.5.2
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]     Checking piston-graphics_api_version v1.0.1
[INFO] [stderr]     Checking ttf-parser v0.15.2
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking ab_glyph_rasterizer v0.1.8
[INFO] [stderr]    Compiling nix v0.18.0
[INFO] [stderr]    Compiling miniz_oxide v0.4.4
[INFO] [stderr]    Compiling parking_lot_core v0.8.6
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking libloading v0.6.7
[INFO] [stderr]     Checking draw_state v0.8.0
[INFO] [stderr]     Checking weezl v0.1.8
[INFO] [stderr]    Compiling gl_generator v0.14.0
[INFO] [stderr]    Compiling wayland-scanner v0.28.6
[INFO] [stderr]     Checking xdg v2.5.2
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking xcursor v0.3.8
[INFO] [stderr]     Checking cty v0.2.2
[INFO] [stderr]     Checking raw-window-handle v0.4.3
[INFO] [stderr]    Compiling gl_generator v0.13.1
[INFO] [stderr]    Compiling glutin_glx_sys v0.1.8
[INFO] [stderr]     Checking nix v0.20.0
[INFO] [stderr]     Checking net2 v0.2.39
[INFO] [stderr]     Checking iovec v0.1.4
[INFO] [stderr]     Checking x11-dl v2.21.0
[INFO] [stderr]     Checking mio v0.6.23
[INFO] [stderr]     Checking owned_ttf_parser v0.15.2
[INFO] [stderr]     Checking rusttype v0.9.3
[INFO] [stderr]     Checking andrew v0.3.1
[INFO] [stderr]    Compiling wayland-client v0.28.6
[INFO] [stderr]    Compiling wayland-protocols v0.28.6
[INFO] [stderr]     Checking memmap2 v0.1.0
[INFO] [stderr]    Compiling glutin_egl_sys v0.1.6
[INFO] [stderr]     Checking gfx_core v0.9.2
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]     Checking dlib v0.4.2
[INFO] [stderr]     Checking jpeg-decoder v0.1.22
[INFO] [stderr]     Checking spin_sleep v1.3.1
[INFO] [stderr]     Checking lazycell v1.3.0
[INFO] [stderr]     Checking gif v0.11.4
[INFO] [stderr]     Checking mio-extras v2.0.6
[INFO] [stderr]     Checking tiff v0.6.1
[INFO] [stderr]     Checking png v0.16.8
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]    Compiling gl v0.13.0
[INFO] [stderr]     Checking wayland-commons v0.28.6
[INFO] [stderr]     Checking raw-window-handle v0.3.4
[INFO] [stderr]     Checking shared_library v0.1.9
[INFO] [stderr]    Compiling gfx_gl v0.6.1
[INFO] [stderr]     Checking num-iter v0.1.45
[INFO] [stderr]     Checking vecmath v1.0.0
[INFO] [stderr]     Checking calloop v0.6.5
[INFO] [stderr]     Checking piston-texture v0.8.0
[INFO] [stderr]     Checking read_color v1.0.0
[INFO] [stderr]     Checking bytemuck v1.23.0
[INFO] [stderr]     Checking osmesa-sys v0.1.2
[INFO] [stderr]     Checking image v0.23.14
[INFO] [stderr]     Checking gfx v0.18.3
[INFO] [stderr]     Checking getrandom v0.1.16
[INFO] [stderr]     Checking shader_version v0.7.0
[INFO] [stderr]     Checking interpolation v0.2.0
[INFO] [stderr]     Checking wayland-cursor v0.28.6
[INFO] [stderr]     Checking wayland-egl v0.28.6
[INFO] [stderr]     Checking piston2d-graphics v0.40.0
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking piston-shaders_graphics2d v0.4.0
[INFO] [stderr]     Checking interpolation v0.3.0
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking piston-texture v0.9.0
[INFO] [stderr]     Checking piston2d-graphics v0.45.0
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking pistoncore-input v1.0.1
[INFO] [stderr]     Checking gfx_device_gl v0.16.2
[INFO] [stderr]     Checking piston-gfx_texture v0.41.0
[INFO] [stderr]     Checking pistoncore-window v0.47.1
[INFO] [stderr]     Checking pistoncore-window v1.0.0
[INFO] [stderr]     Checking pistoncore-event_loop v0.53.1
[INFO] [stderr]     Checking piston2d-gfx_graphics v0.73.0
[INFO] [stderr]     Checking piston v0.53.2
[INFO] [stderr]     Checking pistoncore-event_loop v1.0.0
[INFO] [stderr]     Checking piston v1.0.0
[INFO] [stderr]     Checking smithay-client-toolkit v0.12.3
[INFO] [stderr]     Checking winit v0.24.0
[INFO] [stderr]     Checking glutin v0.26.0
[INFO] [stderr]     Checking pistoncore-glutin_window v0.69.0
[INFO] [stderr]     Checking piston_window v0.120.0
[INFO] [stderr]     Checking tetris v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `draw_rectangle`
[INFO] [stdout]  --> src/game.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::draw::{draw_rectangle, to_coord_u32};
[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 import: `self`
[INFO] [stdout]  --> src/game.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::tetromino::{self, Direction, Tetromino};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::game::Game`
[INFO] [stdout]  --> src/tetromino.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::game::Game;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::board::Board`
[INFO] [stdout]  --> src/tetromino.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::board::Board;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout]  --> src/board.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::thread::current;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `draw_rectangle`
[INFO] [stdout]  --> src/board.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::draw::{draw_rectangle, draw_block, to_coord_u32};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `draw_rectangle`
[INFO] [stdout]  --> src/game.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::draw::{draw_rectangle, to_coord_u32};
[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 import: `self`
[INFO] [stdout]  --> src/game.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::tetromino::{self, Direction, Tetromino};
[INFO] [stdout]   |                        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::game::Game`
[INFO] [stdout]  --> src/tetromino.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::game::Game;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::board::Board`
[INFO] [stdout]  --> src/tetromino.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::board::Board;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::thread::current`
[INFO] [stdout]  --> src/board.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::thread::current;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `draw_rectangle`
[INFO] [stdout]  --> src/board.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 | use crate::draw::{draw_rectangle, draw_block, to_coord_u32};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/game.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut sz: usize =  (w * h) as usize;
[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: unused variable: `sz`
[INFO] [stdout]   --> src/game.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut sz: usize =  (w * h) as usize;
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sz`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]   --> src/game.rs:47:13
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let dir = match key {
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]    --> src/game.rs:113:29
[INFO] [stdout]     |
[INFO] [stdout] 113 |                 let mut x = 0;
[INFO] [stdout]     |                             ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 118 |                     x = 0;
[INFO] [stdout]     |                     ----- `x` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/tetromino.rs:39:13
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut color: Color;
[INFO] [stdout]    |             ----^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_positions`
[INFO] [stdout]   --> src/tetromino.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let mut block_positions: [(i32, i32); 4];
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_positions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `height`
[INFO] [stdout]    --> src/tetromino.rs:148:69
[INFO] [stdout]     |
[INFO] [stdout] 148 |     pub fn can_rotate (&mut self, direction: Direction, width: i32, height: i32, board: &mut Vec<Color>) -> bool {
[INFO] [stdout]     |                                                                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `i` is assigned to, but never used
[INFO] [stdout]    --> src/tetromino.rs:150:13
[INFO] [stdout]     |
[INFO] [stdout] 150 |         let mut i = 0;
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_i` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `i` is never read
[INFO] [stdout]    --> src/tetromino.rs:152:13
[INFO] [stdout]     |
[INFO] [stdout] 152 |             i += 1;
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout]     |
[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/tetromino.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn get_new_block_pos (&mut self, mut block: Block, direction: Direction) -> (i32, i32) {
[INFO] [stdout]     |                                          ----^^^^^
[INFO] [stdout]     |                                          |
[INFO] [stdout]     |                                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_position` is never read
[INFO] [stdout]    --> src/tetromino.rs:248:32
[INFO] [stdout]     |
[INFO] [stdout] 248 |         let mut new_position = (0, 0);
[INFO] [stdout]     |                                ^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 251 |                 new_position = (block.x, block.y + 1);
[INFO] [stdout]     |                 ------------------------------------- `new_position` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tetromino.rs:291:25
[INFO] [stdout]     |
[INFO] [stdout] 291 |                     let mut temp = block.y;
[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:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut sz: usize =  (w * h) as usize;
[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/tetromino.rs:297:25
[INFO] [stdout]     |
[INFO] [stdout] 297 |                     let mut temp = block.x;
[INFO] [stdout]     |                         ----^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sz`
[INFO] [stdout]   --> src/game.rs:34:13
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let mut sz: usize =  (w * h) as usize;
[INFO] [stdout]    |             ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sz`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/board.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |         let mut sz: usize =  (w * h) as usize;
[INFO] [stdout]    |             ----^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/board.rs:33:21
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut x = 0;
[INFO] [stdout]    |                     ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 36 |             x = 0;
[INFO] [stdout]    |             ----- `x` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `delta_time`
[INFO] [stdout]   --> src/board.rs:48:30
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn update(&mut self, delta_time: f64, tetromino: &mut Tetromino) {
[INFO] [stdout]    |                              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dir`
[INFO] [stdout]   --> src/game.rs:47:13
[INFO] [stdout]    |
[INFO] [stdout] 47 |         let dir = match key {
[INFO] [stdout]    |             ^^^ help: if this is intentional, prefix it with an underscore: `_dir`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `col` is never read
[INFO] [stdout]   --> src/board.rs:92:23
[INFO] [stdout]    |
[INFO] [stdout] 92 |         let mut col = 0;
[INFO] [stdout]    |                       ^ this value is reassigned later and never used
[INFO] [stdout] 93 |         while current_row >= 0 {
[INFO] [stdout] 94 |             col = 0;
[INFO] [stdout]    |             ------- `col` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]    --> src/game.rs:113:29
[INFO] [stdout]     |
[INFO] [stdout] 113 |                 let mut x = 0;
[INFO] [stdout]     |                             ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 118 |                     x = 0;
[INFO] [stdout]     |                     ----- `x` is overwritten here before the previous value is read
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/tetromino.rs:39:13
[INFO] [stdout]    |
[INFO] [stdout] 39 |         let mut color: Color;
[INFO] [stdout]    |             ----^^^^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `block_positions`
[INFO] [stdout]   --> src/tetromino.rs:38:13
[INFO] [stdout]    |
[INFO] [stdout] 38 |         let mut block_positions: [(i32, i32); 4];
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_positions`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `height`
[INFO] [stdout]    --> src/tetromino.rs:148:69
[INFO] [stdout]     |
[INFO] [stdout] 148 |     pub fn can_rotate (&mut self, direction: Direction, width: i32, height: i32, board: &mut Vec<Color>) -> bool {
[INFO] [stdout]     |                                                                     ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `i` is assigned to, but never used
[INFO] [stdout]    --> src/tetromino.rs:150:13
[INFO] [stdout]     |
[INFO] [stdout] 150 |         let mut i = 0;
[INFO] [stdout]     |             ^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: consider using `_i` instead
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `i` is never read
[INFO] [stdout]    --> src/tetromino.rs:152:13
[INFO] [stdout]     |
[INFO] [stdout] 152 |             i += 1;
[INFO] [stdout]     |             ^^^^^^
[INFO] [stdout]     |
[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/tetromino.rs:247:42
[INFO] [stdout]     |
[INFO] [stdout] 247 |     pub fn get_new_block_pos (&mut self, mut block: Block, direction: Direction) -> (i32, i32) {
[INFO] [stdout]     |                                          ----^^^^^
[INFO] [stdout]     |                                          |
[INFO] [stdout]     |                                          help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_position` is never read
[INFO] [stdout]    --> src/tetromino.rs:248:32
[INFO] [stdout]     |
[INFO] [stdout] 248 |         let mut new_position = (0, 0);
[INFO] [stdout]     |                                ^^^^^^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 251 |                 new_position = (block.x, block.y + 1);
[INFO] [stdout]     |                 ------------------------------------- `new_position` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/tetromino.rs:291:25
[INFO] [stdout]     |
[INFO] [stdout] 291 |                     let mut temp = block.y;
[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/tetromino.rs:297:25
[INFO] [stdout]     |
[INFO] [stdout] 297 |                     let mut temp = block.x;
[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/board.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |         let mut sz: usize =  (w * h) as usize;
[INFO] [stdout]    |             ----^^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `x` is never read
[INFO] [stdout]   --> src/board.rs:33:21
[INFO] [stdout]    |
[INFO] [stdout] 33 |         let mut x = 0;
[INFO] [stdout]    |                     ^ this value is reassigned later and never used
[INFO] [stdout] ...
[INFO] [stdout] 36 |             x = 0;
[INFO] [stdout]    |             ----- `x` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `delta_time`
[INFO] [stdout]   --> src/board.rs:48:30
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub fn update(&mut self, delta_time: f64, tetromino: &mut Tetromino) {
[INFO] [stdout]    |                              ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `col` is never read
[INFO] [stdout]   --> src/board.rs:92:23
[INFO] [stdout]    |
[INFO] [stdout] 92 |         let mut col = 0;
[INFO] [stdout]    |                       ^ this value is reassigned later and never used
[INFO] [stdout] 93 |         while current_row >= 0 {
[INFO] [stdout] 94 |             col = 0;
[INFO] [stdout]    |             ------- `col` is overwritten here before the previous value is read
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `draw_rectangle` is never used
[INFO] [stdout]   --> src/draw.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn draw_rectangle(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BORDER_COLOR` is never used
[INFO] [stdout]  --> src/game.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const BORDER_COLOR: Color = [0.0, 0.0, 0.0, 1.0];
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `RESTART_TIME` is never used
[INFO] [stdout]   --> src/game.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const RESTART_TIME: f64 = 1.0;
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `score` is never read
[INFO] [stdout]   --> src/game.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct Game {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub score: f64,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `restart` is never used
[INFO] [stdout]    --> src/game.rs:147:8
[INFO] [stdout]     |
[INFO] [stdout]  30 | impl Game {
[INFO] [stdout]     | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 147 |     fn restart (&mut self) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `direction` is never read
[INFO] [stdout]   --> src/tetromino.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub struct Tetromino {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub direction: Direction,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Tetromino` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `create_tetromino`, `draw`, and `get_blocks` are never used
[INFO] [stdout]    --> src/tetromino.rs:115:12
[INFO] [stdout]     |
[INFO] [stdout]  35 | impl Tetromino {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn create_tetromino (&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn draw(&self, con: &Context, g: &mut G2d) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 308 |     pub fn get_blocks (&mut self) -> [Block; 4] {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PIECE_COLOR` is never used
[INFO] [stdout]  --> src/board.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const PIECE_COLOR: Color = [1.0, 0.0, 0.0, 1.0];
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `draw_rectangle` is never used
[INFO] [stdout]   --> src/draw.rs:25:8
[INFO] [stdout]    |
[INFO] [stdout] 25 | pub fn draw_rectangle(
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `BORDER_COLOR` is never used
[INFO] [stdout]  --> src/game.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const BORDER_COLOR: Color = [0.0, 0.0, 0.0, 1.0];
[INFO] [stdout]   |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `RESTART_TIME` is never used
[INFO] [stdout]   --> src/game.rs:12:7
[INFO] [stdout]    |
[INFO] [stdout] 12 | const RESTART_TIME: f64 = 1.0;
[INFO] [stdout]    |       ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `score` is never read
[INFO] [stdout]   --> src/game.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 15 | pub struct Game {
[INFO] [stdout]    |            ---- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub score: f64,
[INFO] [stdout]    |         ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `restart` is never used
[INFO] [stdout]    --> src/game.rs:147:8
[INFO] [stdout]     |
[INFO] [stdout]  30 | impl Game {
[INFO] [stdout]     | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 147 |     fn restart (&mut self) {
[INFO] [stdout]     |        ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `direction` is never read
[INFO] [stdout]   --> src/tetromino.rs:32:9
[INFO] [stdout]    |
[INFO] [stdout] 27 | pub struct Tetromino {
[INFO] [stdout]    |            --------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 32 |     pub direction: Direction,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Tetromino` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `create_tetromino`, `draw`, and `get_blocks` are never used
[INFO] [stdout]    --> src/tetromino.rs:115:12
[INFO] [stdout]     |
[INFO] [stdout]  35 | impl Tetromino {
[INFO] [stdout]     | -------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 115 |     pub fn create_tetromino (&mut self) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 118 |     pub fn draw(&self, con: &Context, g: &mut G2d) {
[INFO] [stdout]     |            ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 308 |     pub fn get_blocks (&mut self) -> [Block; 4] {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: constant `PIECE_COLOR` is never used
[INFO] [stdout]  --> src/board.rs:9:7
[INFO] [stdout]   |
[INFO] [stdout] 9 | const PIECE_COLOR: Color = [1.0, 0.0, 0.0, 1.0];
[INFO] [stdout]   |       ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 59.26s
[INFO] running `Command { std: "docker" "inspect" "ca8faec4bb681d25671eb51f5b52fdc599a35ccc006a82edf6aaf0a5010165de", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ca8faec4bb681d25671eb51f5b52fdc599a35ccc006a82edf6aaf0a5010165de", kill_on_drop: false }`
[INFO] [stdout] ca8faec4bb681d25671eb51f5b52fdc599a35ccc006a82edf6aaf0a5010165de
