[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] testing Nyanguy/rust.tetris against beta-2021-09-08 for beta-1.56-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FNyanguy%2Frust.tetris" "/workspace/builds/worker-35/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-35/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Nyanguy/rust.tetris on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "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-35/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" "+beta-2021-09-08" "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-35/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e65c8f9904a4aa12979eabca77f51eedcec20b119a80b7b56110ff931e722f3b [INFO] running `Command { std: "docker" "start" "-a" "e65c8f9904a4aa12979eabca77f51eedcec20b119a80b7b56110ff931e722f3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e65c8f9904a4aa12979eabca77f51eedcec20b119a80b7b56110ff931e722f3b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e65c8f9904a4aa12979eabca77f51eedcec20b119a80b7b56110ff931e722f3b", kill_on_drop: false }` [INFO] [stdout] e65c8f9904a4aa12979eabca77f51eedcec20b119a80b7b56110ff931e722f3b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-35/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=warn" "-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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51c96c2951ff49c660e44f8650514d12311801db6c2396bf91cfdf3d22558c89 [INFO] running `Command { std: "docker" "start" "-a" "51c96c2951ff49c660e44f8650514d12311801db6c2396bf91cfdf3d22558c89", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling libc v0.2.68 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling sdl2 v0.33.0 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling sdl2-sys v0.33.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling rust_tetris v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sdl2::pixels::Color` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use sdl2::pixels::Color; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/engine/text.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::rect::Rect` [INFO] [stdout] --> src/runtime_logic/menu.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [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: unused import: `std::time::Duration` [INFO] [stdout] --> src/runtime_logic/tetris.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Distribution`, `Rng`, `Standard` [INFO] [stdout] --> src/runtime_logic/tetris.rs:3:28 [INFO] [stdout] | [INFO] [stdout] 3 | use rand::{distributions::{Distribution, Standard}, Rng}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rect::Rect` [INFO] [stdout] --> src/runtime_logic/tetris.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | rect::Rect, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/runtime_logic/field.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::Path` [INFO] [stdout] --> src/runtime_logic/field.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::Path; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(text: &str, pos_x: u32, pos_y: u32) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_x` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:30 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(text: &str, pos_x: u32, pos_y: u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pos_y` [INFO] [stdout] --> src/runtime_logic/menu.rs:25:42 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn save_name(text: &str, pos_x: u32, pos_y: u32) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_pos_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/runtime_logic/field.rs:76:35 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, n: u16, lb: u32, rb: u32, f: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lb` [INFO] [stdout] --> src/runtime_logic/field.rs:76:43 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, n: u16, lb: u32, rb: u32, f: u32) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_lb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rb` [INFO] [stdout] --> src/runtime_logic/field.rs:76:52 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, n: u16, lb: u32, rb: u32, f: u32) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_rb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/runtime_logic/field.rs:76:61 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn check_lines(&mut self, n: u16, lb: u32, rb: u32, f: u32) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/runtime_logic/tetris.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let mut lines = 0; [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: 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:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | 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:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | 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:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | 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:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | 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:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | 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:110:9 [INFO] [stdout] | [INFO] [stdout] 110 | 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:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | 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] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.rust_tetris.0a0c3b29-cgu.9.rcgu.o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2.2ymp94tpz588ale3.rcgu.o" "-Wl,--as-needed" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/librand-31eb9fdbc3a4a284.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-23f02b4f7d8a933c.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-6f374a1e839b3a4a.rlib" "/opt/rustwide/target/debug/deps/librand_core-6ede72b2482082d2.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-f94d4fc5169a7a66.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-b22544e46cbb7baa.rlib" "/opt/rustwide/target/debug/deps/libsdl2-cf1927d0c5865043.rlib" "/opt/rustwide/target/debug/deps/libsdl2_sys-6f3973bf3ad42c58.rlib" "/opt/rustwide/target/debug/deps/libbitflags-6063cd2c96572b53.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-86422d76b8bd90ed.rlib" "/opt/rustwide/target/debug/deps/liblibc-003d9e6ccd1cb451.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9a950938f3668a37.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-3b1b529ec96b3df7.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-ac333df4e6839cea.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-22a9ff9d2be6d427.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-5decbb94c7d60860.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-29a9663b62a1cd00.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-6f0cee0dbab2d3f8.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-f5dc7d1d28c5c249.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-d19bda9ef557e755.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-82a955fd13db2399.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-44f3e7c1b7cc17ef.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-3ee6f750c5f3c2cf.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-ae5e1795dcba83e8.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-8d545d8592f2b534.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-c4c222675f83fd37.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c1e9c53e75e301ed.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-beea7d9617fe25c5.rlib" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-8ef7dd43fc671f88.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-80a2b295510dd038.rlib" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2_image" "-lSDL2_ttf" "-lutil" "-ldl" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/beta-2021-09-08-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/rust_tetris-9d5119e2d1c1b8d2" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lSDL2_image [INFO] [stdout] /usr/bin/ld: cannot find -lSDL2_ttf [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 44 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_tetris` due to 2 previous errors; 44 warnings emitted [INFO] running `Command { std: "docker" "inspect" "51c96c2951ff49c660e44f8650514d12311801db6c2396bf91cfdf3d22558c89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51c96c2951ff49c660e44f8650514d12311801db6c2396bf91cfdf3d22558c89", kill_on_drop: false }` [INFO] [stdout] 51c96c2951ff49c660e44f8650514d12311801db6c2396bf91cfdf3d22558c89