[INFO] cloning repository https://github.com/Ansh1902396/tetris
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Ansh1902396/tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnsh1902396%2Ftetris", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnsh1902396%2Ftetris'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 17089d3c26a9770a768b451c981582dacfb55625
[INFO] testing Ansh1902396/tetris against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAnsh1902396%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] started tweaking git repo https://github.com/Ansh1902396/tetris
[INFO] finished tweaking git repo https://github.com/Ansh1902396/tetris
[INFO] tweaked toml for git repo https://github.com/Ansh1902396/tetris written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Ansh1902396/tetris on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Ansh1902396/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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating git repository `https://github.com/Rust-SDL2/rust-sdl2`
[INFO] [stderr]     Updating git submodule `https://github.com/libsdl-org/SDL`
[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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] aa03f1b4cdd4344746f79c09cc9e2f5ba02963207c2424e8c0d6ede6a7f91987
[INFO] running `Command { std: "docker" "start" "-a" "aa03f1b4cdd4344746f79c09cc9e2f5ba02963207c2424e8c0d6ede6a7f91987", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aa03f1b4cdd4344746f79c09cc9e2f5ba02963207c2424e8c0d6ede6a7f91987", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aa03f1b4cdd4344746f79c09cc9e2f5ba02963207c2424e8c0d6ede6a7f91987", kill_on_drop: false }`
[INFO] [stdout] aa03f1b4cdd4344746f79c09cc9e2f5ba02963207c2424e8c0d6ede6a7f91987
[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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 581e263ac8942297e64f58453509fa95c81fd4b6fd5639fa92938c5137c69924
[INFO] running `Command { std: "docker" "start" "-a" "581e263ac8942297e64f58453509fa95c81fd4b6fd5639fa92938c5137c69924", kill_on_drop: false }`
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling version-compare v0.1.1
[INFO] [stderr]    Compiling sdl2 v0.36.0 (https://github.com/Rust-SDL2/rust-sdl2#146cff67)
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling sdl2-sys v0.36.0 (https://github.com/Rust-SDL2/rust-sdl2#146cff67)
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling tetris v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `core::num`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use core::num;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt::format`
[INFO] [stdout]  --> src/main.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::fmt::format;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::libc::YESEXPR`
[INFO] [stdout]  --> src/main.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 | use sdl2::libc::YESEXPR;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `surface` and `timer`
[INFO] [stdout]  --> src/main.rs:9:12
[INFO] [stdout]   |
[INFO] [stdout] 9 | use sdl2::{surface, timer};
[INFO] [stdout]   |            ^^^^^^^  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64::consts::E`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use std::f64::consts::E;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `self`
[INFO] [stdout]   --> src/main.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::time::{self, Duration, SystemTime};
[INFO] [stdout]    |                 ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_highest_highscore` is never read
[INFO] [stdout]    --> src/main.rs:614:13
[INFO] [stdout]     |
[INFO] [stdout] 614 |     let mut new_highest_highscore = true;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout]     = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `new_highest_lines_sent` is never read
[INFO] [stdout]    --> src/main.rs:615:13
[INFO] [stdout]     |
[INFO] [stdout] 615 |     let mut new_highest_lines_sent = true;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `grid`
[INFO] [stdout]    --> src/main.rs:772:9
[INFO] [stdout]     |
[INFO] [stdout] 772 |     let grid = create_texture_rect(
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_grid`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `piece`
[INFO] [stdout]    --> src/main.rs:871:33
[INFO] [stdout]     |
[INFO] [stdout] 871 |             if let Some(ref mut piece) = tetris.current_piece {
[INFO] [stdout]     |                                 ^^^^^ help: if this is intentional, prefix it with an underscore: `_piece`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `TextureColor` is never used
[INFO] [stdout]   --> src/main.rs:29:6
[INFO] [stdout]    |
[INFO] [stdout] 29 | enum TextureColor {
[INFO] [stdout]    |      ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `create_new_tetrimino` is never used
[INFO] [stdout]    --> src/main.rs:266:4
[INFO] [stdout]     |
[INFO] [stdout] 266 | fn create_new_tetrimino() -> Tetrimino {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_rect_from_text` is never used
[INFO] [stdout]    --> src/main.rs:702:4
[INFO] [stdout]     |
[INFO] [stdout] 702 | fn get_rect_from_text(text : &str , x : i32 , y : i32) -> Option<Rect> {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `display_game_information` is never used
[INFO] [stdout]    --> src/main.rs:706:4
[INFO] [stdout]     |
[INFO] [stdout] 706 | fn display_game_information<'a>(tetris: &Tetris , 
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused comparison that must be used
[INFO] [stdout]    --> src/main.rs:327:13
[INFO] [stdout]     |
[INFO] [stdout] 327 |             self.x == new_x as isize;
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^^^^^^^^^^ the comparison produces a value
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 327 |             let _ = self.x == new_x as isize;
[INFO] [stdout]     |             +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/tmp/rustcjgu5DF/symbols.o" "<7 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/{libsdl2-db93e7b76b6758b6.rlib,libsdl2_sys-34c93652895c16b3.rlib,libbitflags-ed512472f018a953.rlib,liblazy_static-4a3eb30d8f892632.rlib,librand-b1d3314f70b92445.rlib,librand-3d139d0f47155a9d.rlib,liblibc-4e941f3c786d1baf.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2_ttf" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcjgu5DF/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/tetris-02f83953d774e5aa" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-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_ttf
[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; 15 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "581e263ac8942297e64f58453509fa95c81fd4b6fd5639fa92938c5137c69924", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "581e263ac8942297e64f58453509fa95c81fd4b6fd5639fa92938c5137c69924", kill_on_drop: false }`
[INFO] [stdout] 581e263ac8942297e64f58453509fa95c81fd4b6fd5639fa92938c5137c69924
