[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] testing victorgiuliano2162/tetris against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvictorgiuliano2162%2Ftetris" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[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-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/victorgiuliano2162/tetris on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded lazy_static v0.2.11
[INFO] [stderr]   Downloaded bitflags v0.7.0
[INFO] [stderr]   Downloaded num v0.1.42
[INFO] [stderr]   Downloaded rand v0.3.23
[INFO] [stderr]   Downloaded sdl2-sys v0.30.0
[INFO] [stderr]   Downloaded sdl2 v0.30.0
[INFO] [stderr]   Downloaded libc v0.2.155
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6fb8d634e2232b38da16247fe4c47276a3dd122ba6c1dc26a994f0da413fd944
[INFO] running `Command { std: "docker" "start" "-a" "6fb8d634e2232b38da16247fe4c47276a3dd122ba6c1dc26a994f0da413fd944", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6fb8d634e2232b38da16247fe4c47276a3dd122ba6c1dc26a994f0da413fd944", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6fb8d634e2232b38da16247fe4c47276a3dd122ba6c1dc26a994f0da413fd944", kill_on_drop: false }`
[INFO] [stdout] 6fb8d634e2232b38da16247fe4c47276a3dd122ba6c1dc26a994f0da413fd944
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc0121d7ac1c977c3a4e69c058b955f2b1e28fc961193cce5707ef2f77630e0c
[INFO] running `Command { std: "docker" "start" "-a" "cc0121d7ac1c977c3a4e69c058b955f2b1e28fc961193cce5707ef2f77630e0c", 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]    Compiling lazy_static v0.2.11
[INFO] [stderr]    Compiling bitflags v0.7.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-iter v0.1.45
[INFO] [stderr]    Compiling num v0.1.42
[INFO] [stderr]    Compiling sdl2 v0.30.0
[INFO] [stderr]    Compiling 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(unused)]`) 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<String> {
[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<u32> {
[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<u32>, Vec<u32>)> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Piece` is never used
[INFO] [stdout]  --> src/tetrimino.rs:1:6
[INFO] [stdout]   |
[INFO] [stdout] 1 | type Piece = Vec<Vec<u8>>;
[INFO] [stdout]   |      ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `States` is never used
[INFO] [stdout]  --> src/tetrimino.rs:2:6
[INFO] [stdout]   |
[INFO] [stdout] 2 | type States = Vec<Piece>;
[INFO] [stdout]   |      ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Tetrimino` is never constructed
[INFO] [stdout]  --> src/tetrimino.rs:4:12
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Tetrimino {
[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<u8>]) {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 34 |     fn test_position(&self, game_map: &[Vec<u8>], tmp_state: usize, x: isize, y: usize) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     fn change_position(&mut self, game_map: &[Vec<u8>], new_x: isize, new_y: usize) -> bool {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 61 |     fn test_current_position(&self, game_map: &[Vec<u8>]) -> 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)]` (part of `#[warn(unused)]`) 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] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/tmp/rustcgAy2a6/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libsdl2-985d8a181d5a3539,libsdl2_sys-f58548d40755a26e,libbitflags-ed87549ac517e209,liblazy_static-d8dece1d67af894f,libnum-890bcf92aaaf3f45,libnum_iter-cea21ac6a5887f60,libnum_integer-a6a1cbb9bf032514,libnum_traits-0dc368860bb68f9d,librand-626ba2bad1b27cea,librand-76a5296ed0f6d179,liblibc-87ba8c2d9747b2c7}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lSDL2_image" "-lSDL2" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcgAy2a6/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/tetris-193810c855aed056" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: rust-lld: error: unable to find library -lSDL2_image
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `tetris` (bin "tetris") due to 1 previous error; 25 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "cc0121d7ac1c977c3a4e69c058b955f2b1e28fc961193cce5707ef2f77630e0c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc0121d7ac1c977c3a4e69c058b955f2b1e28fc961193cce5707ef2f77630e0c", kill_on_drop: false }`
[INFO] [stdout] cc0121d7ac1c977c3a4e69c058b955f2b1e28fc961193cce5707ef2f77630e0c
