[INFO] cloning repository https://github.com/Nyanguy/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/Nyanguy/rust.tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.tetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.tetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4b94fdfe31a31d33ebd4511a2b1b854eb6a5f986 [INFO] checking Nyanguy/rust.tetris against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.tetris" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nyanguy/rust.tetris on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Nyanguy/rust.tetris [INFO] finished tweaking git repo https://github.com/Nyanguy/rust.tetris [INFO] tweaked toml for git repo https://github.com/Nyanguy/rust.tetris written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/Nyanguy/rust.tetris already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b769436e8c10310866b9d18cf8e99d292dc6069108dfe7f231a26128336fdd36 [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" "b769436e8c10310866b9d18cf8e99d292dc6069108dfe7f231a26128336fdd36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b769436e8c10310866b9d18cf8e99d292dc6069108dfe7f231a26128336fdd36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b769436e8c10310866b9d18cf8e99d292dc6069108dfe7f231a26128336fdd36", kill_on_drop: false }` [INFO] [stdout] b769436e8c10310866b9d18cf8e99d292dc6069108dfe7f231a26128336fdd36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 75f54eff5a3cbad292938249eed48039991d2e5aacd637b05536a6f5613cc9cb [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" "75f54eff5a3cbad292938249eed48039991d2e5aacd637b05536a6f5613cc9cb", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling sdl2 v0.33.0 [INFO] [stderr] Compiling sdl2-sys v0.33.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rust_tetris v0.2.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/runtime_logic/menu.rs (4 fixes) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/engine/text.rs (1 fix) [INFO] [stderr] Fixed src/runtime_logic/field.rs (6 fixes) [INFO] [stderr] Fixed src/runtime_logic/tetris.rs (4 fixes) [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/runtime_logic/menu.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / macro_rules! rect( [INFO] [stdout] 20 | | ($x:expr, $y:expr, $w:expr, $h:expr) => ( [INFO] [stdout] 21 | | Rect::new($x as i32, $y as i32, $w as u32, $h as u32) [INFO] [stdout] 22 | | ) [INFO] [stdout] 23 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/runtime_logic/menu.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / macro_rules! rect( [INFO] [stdout] 20 | | ($x:expr, $y:expr, $w:expr, $h:expr) => ( [INFO] [stdout] 21 | | Rect::new($x as i32, $y as i32, $w as u32, $h as u32) [INFO] [stdout] 22 | | ) [INFO] [stdout] 23 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contents` [INFO] [stdout] --> src/engine/text.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn contents(&self) -> &str { [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: `get_color` [INFO] [stdout] --> src/engine/text.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hinting` [INFO] [stdout] --> src/engine/text.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_font` [INFO] [stdout] --> src/engine/text.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_font(&mut self, font: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_size` [INFO] [stdout] --> src/engine/text.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn set_size(&mut self, size: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `img_ctx` [INFO] [stdout] --> src/engine/render.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | img_ctx: sdl2::image::Sdl2ImageContext [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/engine/render.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_color(&mut self, clr: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_context` [INFO] [stdout] --> src/engine/render.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn get_context(&self) -> &sdl2::Sdl { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_to_buffer` [INFO] [stdout] --> src/engine/render.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option, dst: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/engine/render.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_name` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(_text: &str, _pos_x: u32, _pos_y: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn id(&self) -> &Shape { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_tile` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn delete_tile(&mut self, t_pos: (u32,u32)) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/runtime_logic/field.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/runtime_logic/field.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc_score` [INFO] [stdout] --> src/runtime_logic/field.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn inc_score(&mut self, n: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_lvl` [INFO] [stdout] --> src/runtime_logic/field.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_lvl(&mut self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_lines` [INFO] [stdout] --> src/runtime_logic/field.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, _n: u16, _lb: u32, _rb: u32, _f: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | menu::run(); [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/runtime_logic/tetris.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | window.draw_line(WHITE, (0, H_UI), (window.width as i32, H_UI)); [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/runtime_logic/tetris.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | window.draw_line(WHITE, (145, 0), (145, H_UI)); [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/runtime_logic/tetris.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | window.draw_line(WHITE, (border_left as i32, ui_bottom_offset), (border_left as i32, H_UI)); [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/runtime_logic/tetris.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | window.draw_line(WHITE, (border_right as i32, ui_bottom_offset), (border_right as i32, H_UI)); [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/runtime_logic/tetris.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | window.draw_line(WHITE, (120, ui_bottom_offset), (120, window.height as i32)); [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/runtime_logic/tetris.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | window.draw_line(WHITE, (170, ui_bottom_offset), (170, window.height as i32)); [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/runtime_logic/tetris.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | window.draw_line(WHITE, (0, ui_bottom_offset), (window.width as i32, ui_bottom_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/runtime_logic/field.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | draw_fn(window, *kv.0, *kv.1, 18); [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: associated function is never used: `contents` [INFO] [stdout] --> src/engine/text.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn contents(&self) -> &str { [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: `get_color` [INFO] [stdout] --> src/engine/text.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hinting` [INFO] [stdout] --> src/engine/text.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_font` [INFO] [stdout] --> src/engine/text.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_font(&mut self, font: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_size` [INFO] [stdout] --> src/engine/text.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn set_size(&mut self, size: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `img_ctx` [INFO] [stdout] --> src/engine/render.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | img_ctx: sdl2::image::Sdl2ImageContext [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/engine/render.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_color(&mut self, clr: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_context` [INFO] [stdout] --> src/engine/render.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn get_context(&self) -> &sdl2::Sdl { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_to_buffer` [INFO] [stdout] --> src/engine/render.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option, dst: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/engine/render.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_name` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(_text: &str, _pos_x: u32, _pos_y: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn id(&self) -> &Shape { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_tile` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn delete_tile(&mut self, t_pos: (u32,u32)) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/runtime_logic/field.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/runtime_logic/field.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc_score` [INFO] [stdout] --> src/runtime_logic/field.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn inc_score(&mut self, n: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_lvl` [INFO] [stdout] --> src/runtime_logic/field.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_lvl(&mut self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_lines` [INFO] [stdout] --> src/runtime_logic/field.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, _n: u16, _lb: u32, _rb: u32, _f: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | menu::run(); [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/runtime_logic/tetris.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | window.draw_line(WHITE, (0, H_UI), (window.width as i32, H_UI)); [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/runtime_logic/tetris.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | window.draw_line(WHITE, (145, 0), (145, H_UI)); [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/runtime_logic/tetris.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | window.draw_line(WHITE, (border_left as i32, ui_bottom_offset), (border_left as i32, H_UI)); [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/runtime_logic/tetris.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | window.draw_line(WHITE, (border_right as i32, ui_bottom_offset), (border_right as i32, H_UI)); [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/runtime_logic/tetris.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | window.draw_line(WHITE, (120, ui_bottom_offset), (120, window.height as i32)); [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/runtime_logic/tetris.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | window.draw_line(WHITE, (170, ui_bottom_offset), (170, window.height as i32)); [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/runtime_logic/tetris.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | window.draw_line(WHITE, (0, ui_bottom_offset), (window.width as i32, ui_bottom_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/runtime_logic/field.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | draw_fn(window, *kv.0, *kv.1, 18); [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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.47s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking rust_tetris v0.2.0 (/tmp/fixit) [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/runtime_logic/menu.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / macro_rules! rect( [INFO] [stdout] 20 | | ($x:expr, $y:expr, $w:expr, $h:expr) => ( [INFO] [stdout] 21 | | Rect::new($x as i32, $y as i32, $w as u32, $h as u32) [INFO] [stdout] 22 | | ) [INFO] [stdout] 23 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/runtime_logic/menu.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / macro_rules! rect( [INFO] [stdout] 20 | | ($x:expr, $y:expr, $w:expr, $h:expr) => ( [INFO] [stdout] 21 | | Rect::new($x as i32, $y as i32, $w as u32, $h as u32) [INFO] [stdout] 22 | | ) [INFO] [stdout] 23 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `contents` [INFO] [stdout] --> src/engine/text.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn contents(&self) -> &str { [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: `get_color` [INFO] [stdout] --> src/engine/text.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hinting` [INFO] [stdout] --> src/engine/text.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_font` [INFO] [stdout] --> src/engine/text.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_font(&mut self, font: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_size` [INFO] [stdout] --> src/engine/text.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn set_size(&mut self, size: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `img_ctx` [INFO] [stdout] --> src/engine/render.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | img_ctx: sdl2::image::Sdl2ImageContext [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/engine/render.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_color(&mut self, clr: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_context` [INFO] [stdout] --> src/engine/render.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn get_context(&self) -> &sdl2::Sdl { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_to_buffer` [INFO] [stdout] --> src/engine/render.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option, dst: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/engine/render.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_name` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(_text: &str, _pos_x: u32, _pos_y: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn id(&self) -> &Shape { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_tile` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn delete_tile(&mut self, t_pos: (u32,u32)) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/runtime_logic/field.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/runtime_logic/field.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc_score` [INFO] [stdout] --> src/runtime_logic/field.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn inc_score(&mut self, n: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_lvl` [INFO] [stdout] --> src/runtime_logic/field.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_lvl(&mut self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_lines` [INFO] [stdout] --> src/runtime_logic/field.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, _n: u16, _lb: u32, _rb: u32, _f: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | menu::run(); [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/runtime_logic/tetris.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | window.draw_line(WHITE, (0, H_UI), (window.width as i32, H_UI)); [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/runtime_logic/tetris.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | window.draw_line(WHITE, (145, 0), (145, H_UI)); [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/runtime_logic/tetris.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | window.draw_line(WHITE, (border_left as i32, ui_bottom_offset), (border_left as i32, H_UI)); [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/runtime_logic/tetris.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | window.draw_line(WHITE, (border_right as i32, ui_bottom_offset), (border_right as i32, H_UI)); [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/runtime_logic/tetris.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | window.draw_line(WHITE, (120, ui_bottom_offset), (120, window.height as i32)); [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/runtime_logic/tetris.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | window.draw_line(WHITE, (170, ui_bottom_offset), (170, window.height as i32)); [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/runtime_logic/tetris.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | window.draw_line(WHITE, (0, ui_bottom_offset), (window.width as i32, ui_bottom_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/runtime_logic/field.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | draw_fn(window, *kv.0, *kv.1, 18); [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: associated function is never used: `contents` [INFO] [stdout] --> src/engine/text.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn contents(&self) -> &str { [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: `get_color` [INFO] [stdout] --> src/engine/text.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn get_color(&self) -> sdl2::pixels::Color { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_hinting` [INFO] [stdout] --> src/engine/text.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn set_hinting(&mut self, hint: sdl2::ttf::Hinting) { self.hint = hint } [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_font` [INFO] [stdout] --> src/engine/text.rs:55:12 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn set_font(&mut self, font: &str) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_size` [INFO] [stdout] --> src/engine/text.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub fn set_size(&mut self, size: u16) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `img_ctx` [INFO] [stdout] --> src/engine/render.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | img_ctx: sdl2::image::Sdl2ImageContext [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_color` [INFO] [stdout] --> src/engine/render.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn set_color(&mut self, clr: Color) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_context` [INFO] [stdout] --> src/engine/render.rs:115:12 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn get_context(&self) -> &sdl2::Sdl { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `texture_to_buffer` [INFO] [stdout] --> src/engine/render.rs:134:12 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn texture_to_buffer(&mut self, texture: &sdl2::render::Texture, src: Option, dst: Option) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `run` [INFO] [stdout] --> src/engine/render.rs:138:12 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn run(&mut self) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_name` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(_text: &str, _pos_x: u32, _pos_y: u32) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `id` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn id(&self) -> &Shape { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `delete_tile` [INFO] [stdout] --> src/runtime_logic/tetromino.rs:221:12 [INFO] [stdout] | [INFO] [stdout] 221 | pub fn delete_tile(&mut self, t_pos: (u32,u32)) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `width` [INFO] [stdout] --> src/runtime_logic/field.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | width: usize, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `height` [INFO] [stdout] --> src/runtime_logic/field.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | height: usize, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `inc_score` [INFO] [stdout] --> src/runtime_logic/field.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn inc_score(&mut self, n: u16) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `next_lvl` [INFO] [stdout] --> src/runtime_logic/field.rs:58:12 [INFO] [stdout] | [INFO] [stdout] 58 | pub fn next_lvl(&mut self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `check_lines` [INFO] [stdout] --> src/runtime_logic/field.rs:76:12 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, _n: u16, _lb: u32, _rb: u32, _f: u32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | menu::run(); [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/runtime_logic/tetris.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 104 | window.draw_line(WHITE, (0, H_UI), (window.width as i32, H_UI)); [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/runtime_logic/tetris.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | window.draw_line(WHITE, (145, 0), (145, H_UI)); [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/runtime_logic/tetris.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | window.draw_line(WHITE, (border_left as i32, ui_bottom_offset), (border_left as i32, H_UI)); [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/runtime_logic/tetris.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | window.draw_line(WHITE, (border_right as i32, ui_bottom_offset), (border_right as i32, H_UI)); [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/runtime_logic/tetris.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | window.draw_line(WHITE, (120, ui_bottom_offset), (120, window.height as i32)); [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/runtime_logic/tetris.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | window.draw_line(WHITE, (170, ui_bottom_offset), (170, window.height as i32)); [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/runtime_logic/tetris.rs:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | window.draw_line(WHITE, (0, ui_bottom_offset), (window.width as i32, ui_bottom_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/runtime_logic/field.rs:148:13 [INFO] [stdout] | [INFO] [stdout] 148 | draw_fn(window, *kv.0, *kv.1, 18); [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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.52s [INFO] running `Command { std: "docker" "inspect" "75f54eff5a3cbad292938249eed48039991d2e5aacd637b05536a6f5613cc9cb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75f54eff5a3cbad292938249eed48039991d2e5aacd637b05536a6f5613cc9cb", kill_on_drop: false }` [INFO] [stdout] 75f54eff5a3cbad292938249eed48039991d2e5aacd637b05536a6f5613cc9cb