[INFO] cloning repository https://github.com/victorgiuliano2162/tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/victorgiuliano2162/tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorgiuliano2162%2Ftetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorgiuliano2162%2Ftetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9cfda3c6649600de10da343179b35cbfd32017ba [INFO] checking victorgiuliano2162/tetris against master#03eb45452305f2d52348279d0caa5fc1f12c438d for pr-138176 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorgiuliano2162%2Ftetris" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/victorgiuliano2162/tetris on toolchain 03eb45452305f2d52348279d0caa5fc1f12c438d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/victorgiuliano2162/tetris [INFO] finished tweaking git repo https://github.com/victorgiuliano2162/tetris [INFO] tweaked toml for git repo https://github.com/victorgiuliano2162/tetris written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/victorgiuliano2162/tetris 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" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa5acbe9ea95f53d00229d1afb41447410725499bb93857b833ad91338432af6 [INFO] running `Command { std: "docker" "start" "-a" "fa5acbe9ea95f53d00229d1afb41447410725499bb93857b833ad91338432af6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa5acbe9ea95f53d00229d1afb41447410725499bb93857b833ad91338432af6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa5acbe9ea95f53d00229d1afb41447410725499bb93857b833ad91338432af6", kill_on_drop: false }` [INFO] [stdout] fa5acbe9ea95f53d00229d1afb41447410725499bb93857b833ad91338432af6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+03eb45452305f2d52348279d0caa5fc1f12c438d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab90cffc346a5e75b9f42b6466d0ac8392688a6ebdc09fb5c1357d88b67a894c [INFO] running `Command { std: "docker" "start" "-a" "ab90cffc346a5e75b9f42b6466d0ac8392688a6ebdc09fb5c1357d88b67a894c", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling sdl2-sys v0.30.0 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-iter v0.1.45 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking sdl2 v0.30.0 [INFO] [stderr] Checking tetris v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut blue_square = create_texture_rect( [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut green_square = create_texture_rect( [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_new_tetrimino` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_new_tetrimino() -> Tetrimino { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_into_file` is never used [INFO] [stdout] --> src/main.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn write_into_file(content: &str, file_name: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_file` is never used [INFO] [stdout] --> src/main.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn read_from_file(file_name: &str) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_to_string` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn slice_to_string(slice: &[u32]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_highscores_and_lines` is never used [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn save_highscores_and_lines(highscores: &[u32], number_of_lines: &[u32]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_slice` is never used [INFO] [stdout] --> src/main.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn line_to_slice(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_highscores_and_lines` is never used [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn load_highscores_and_lines() -> Option<(Vec, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `states`, `x`, `y`, and `current_state` are never read [INFO] [stdout] --> src/tetrimino.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Tetrimino { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 5 | pub states: States, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | pub x: isize, [INFO] [stdout] | ^ [INFO] [stdout] 7 | pub y: usize, [INFO] [stdout] | ^ [INFO] [stdout] 8 | pub current_state: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TetriminoGenerator` is never used [INFO] [stdout] --> src/tetrimino.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait TetriminoGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rotate`, `test_position`, `change_position`, and `test_current_position` are never used [INFO] [stdout] --> src/tetrimino.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Tetrimino { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 17 | fn rotate(&mut self, game_map: &[Vec]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn test_position(&self, game_map: &[Vec], tmp_state: usize, x: isize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn change_position(&mut self, game_map: &[Vec], new_x: isize, new_y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn test_current_position(&self, game_map: &[Vec]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoI` is never constructed [INFO] [stdout] --> src/tetrimino.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct TetriminoI; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoJ` is never constructed [INFO] [stdout] --> src/tetrimino.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct TetriminoJ; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoL` is never constructed [INFO] [stdout] --> src/tetrimino.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct TetriminoL; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoO` is never constructed [INFO] [stdout] --> src/tetrimino.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct TetriminoO; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoS` is never constructed [INFO] [stdout] --> src/tetrimino.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct TetriminoS; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoZ` is never constructed [INFO] [stdout] --> src/tetrimino.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub struct TetriminoZ; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoT` is never constructed [INFO] [stdout] --> src/tetrimino.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 237 | pub struct TetriminoT; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tetris` is never constructed [INFO] [stdout] --> src/tetris.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Tetris { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_new_tetrimino`, `check_lines`, and `make_permanent` are never used [INFO] [stdout] --> src/tetris.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Tetris { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn new() -> Tetris { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn create_new_tetrimino(&self) -> Tetrimino { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn check_lines(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn make_permanent(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | / canvas.with_texture_canvas(&mut square_texture, |texture| { [INFO] [stdout] 162 | | texture.set_draw_color(Color::RGB(0, 255, 0)); [INFO] [stdout] 163 | | texture.clear(); [INFO] [stdout] 164 | | }); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = canvas.with_texture_canvas(&mut square_texture, |texture| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/tetris.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | PREV == rand_nb; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = PREV == rand_nb; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:170:9 [INFO] [stdout] | [INFO] [stdout] 170 | let mut blue_square = create_texture_rect( [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | let mut green_square = create_texture_rect( [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_new_tetrimino` is never used [INFO] [stdout] --> src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn create_new_tetrimino() -> Tetrimino { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_into_file` is never used [INFO] [stdout] --> src/main.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn write_into_file(content: &str, file_name: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_from_file` is never used [INFO] [stdout] --> src/main.rs:82:4 [INFO] [stdout] | [INFO] [stdout] 82 | fn read_from_file(file_name: &str) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice_to_string` is never used [INFO] [stdout] --> src/main.rs:89:4 [INFO] [stdout] | [INFO] [stdout] 89 | fn slice_to_string(slice: &[u32]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_highscores_and_lines` is never used [INFO] [stdout] --> src/main.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn save_highscores_and_lines(highscores: &[u32], number_of_lines: &[u32]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `line_to_slice` is never used [INFO] [stdout] --> src/main.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn line_to_slice(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `load_highscores_and_lines` is never used [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn load_highscores_and_lines() -> Option<(Vec, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `states`, `x`, `y`, and `current_state` are never read [INFO] [stdout] --> src/tetrimino.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Tetrimino { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 5 | pub states: States, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | pub x: isize, [INFO] [stdout] | ^ [INFO] [stdout] 7 | pub y: usize, [INFO] [stdout] | ^ [INFO] [stdout] 8 | pub current_state: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `TetriminoGenerator` is never used [INFO] [stdout] --> src/tetrimino.rs:11:11 [INFO] [stdout] | [INFO] [stdout] 11 | pub trait TetriminoGenerator { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rotate`, `test_position`, `change_position`, and `test_current_position` are never used [INFO] [stdout] --> src/tetrimino.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 16 | impl Tetrimino { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 17 | fn rotate(&mut self, game_map: &[Vec]) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn test_position(&self, game_map: &[Vec], tmp_state: usize, x: isize, y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn change_position(&mut self, game_map: &[Vec], new_x: isize, new_y: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 61 | fn test_current_position(&self, game_map: &[Vec]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoI` is never constructed [INFO] [stdout] --> src/tetrimino.rs:66:12 [INFO] [stdout] | [INFO] [stdout] 66 | pub struct TetriminoI; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoJ` is never constructed [INFO] [stdout] --> src/tetrimino.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub struct TetriminoJ; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoL` is never constructed [INFO] [stdout] --> src/tetrimino.rs:130:12 [INFO] [stdout] | [INFO] [stdout] 130 | pub struct TetriminoL; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoO` is never constructed [INFO] [stdout] --> src/tetrimino.rs:168:12 [INFO] [stdout] | [INFO] [stdout] 168 | pub struct TetriminoO; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoS` is never constructed [INFO] [stdout] --> src/tetrimino.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub struct TetriminoS; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoZ` is never constructed [INFO] [stdout] --> src/tetrimino.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub struct TetriminoZ; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TetriminoT` is never constructed [INFO] [stdout] --> src/tetrimino.rs:237:12 [INFO] [stdout] | [INFO] [stdout] 237 | pub struct TetriminoT; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tetris` is never constructed [INFO] [stdout] --> src/tetris.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct Tetris { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `create_new_tetrimino`, `check_lines`, and `make_permanent` are never used [INFO] [stdout] --> src/tetris.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Tetris { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 16 | pub fn new() -> Tetris { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn create_new_tetrimino(&self) -> Tetrimino { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn check_lines(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | fn make_permanent(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 161 | / canvas.with_texture_canvas(&mut square_texture, |texture| { [INFO] [stdout] 162 | | texture.set_draw_color(Color::RGB(0, 255, 0)); [INFO] [stdout] 163 | | texture.clear(); [INFO] [stdout] 164 | | }); [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)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 161 | let _ = canvas.with_texture_canvas(&mut square_texture, |texture| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused comparison that must be used [INFO] [stdout] --> src/tetris.rs:39:13 [INFO] [stdout] | [INFO] [stdout] 39 | PREV == rand_nb; [INFO] [stdout] | ^^^^^^^^^^^^^^^ the comparison produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 39 | let _ = PREV == rand_nb; [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.55s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: bitflags v0.7.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "ab90cffc346a5e75b9f42b6466d0ac8392688a6ebdc09fb5c1357d88b67a894c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab90cffc346a5e75b9f42b6466d0ac8392688a6ebdc09fb5c1357d88b67a894c", kill_on_drop: false }` [INFO] [stdout] ab90cffc346a5e75b9f42b6466d0ac8392688a6ebdc09fb5c1357d88b67a894c