[INFO] updating cached repository droidkid/rust-tetris
[INFO] running `"git" "fetch" "--all"`
[INFO] [stdout] Fetching origin
[INFO] [stderr] From git://github.com/droidkid/rust-tetris
[INFO] [stderr]  * branch            HEAD       -> FETCH_HEAD
[INFO] running `"git" "clone" "work/cache/sources/gh/droidkid/rust-tetris" "work/ex/beta-1.37-6/sources/1.36.0/gh/droidkid/rust-tetris"`
[INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/1.36.0/gh/droidkid/rust-tetris'...
[INFO] [stderr] done.
[INFO] running `"git" "clone" "work/cache/sources/gh/droidkid/rust-tetris" "work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/droidkid/rust-tetris"`
[INFO] [stderr] Cloning into 'work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/droidkid/rust-tetris'...
[INFO] [stderr] done.
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] d7739277f8489ba9f6b2ba7f772f909813828b03
[INFO] sha for GitHub repo droidkid/rust-tetris: d7739277f8489ba9f6b2ba7f772f909813828b03
[INFO] validating manifest of droidkid/rust-tetris on toolchain 1.36.0
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] validating manifest of droidkid/rust-tetris on toolchain beta-2019-07-23
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started frobbing droidkid/rust-tetris
[INFO] finished frobbing droidkid/rust-tetris
[INFO] frobbed toml for droidkid/rust-tetris written to work/ex/beta-1.37-6/sources/1.36.0/gh/droidkid/rust-tetris/Cargo.toml
[INFO] started frobbing droidkid/rust-tetris
[INFO] finished frobbing droidkid/rust-tetris
[INFO] frobbed toml for droidkid/rust-tetris written to work/ex/beta-1.37-6/sources/beta-2019-07-23/gh/droidkid/rust-tetris/Cargo.toml
[INFO] crate droidkid/rust-tetris already has a lockfile, it will not be regenerated
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]     Blocking waiting for file lock on package cache lock
[INFO] [stderr]     Blocking waiting for file lock on package cache lock
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] testing droidkid/rust-tetris against 1.36.0 for beta-1.37-6
[INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-7/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/gh/droidkid/rust-tetris:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "build" "--frozen"`
[INFO] [stdout] f3f0fa41c926dcfe2af8493c6353edcd608d7ea18b71f48b1bac36a174f1a0c8
[INFO] running `"docker" "start" "-a" "f3f0fa41c926dcfe2af8493c6353edcd608d7ea18b71f48b1bac36a174f1a0c8"`
[INFO] [stderr]    Compiling sdl2 v0.31.0
[INFO] [stderr]    Compiling rust-tetris v0.1.0 (/opt/crater/workdir)
[INFO] [stderr] warning: unused import: `std::thread`
[INFO] [stderr]   --> src/main.rs:17:5
[INFO] [stderr]    |
[INFO] [stderr] 17 | use std::thread;
[INFO] [stderr]    |     ^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: #[warn(unused_imports)] on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `for` head expression
[INFO] [stderr]    --> src/main.rs:422:22
[INFO] [stderr]     |
[INFO] [stderr] 422 |             for j in (1..self.width-1) {
[INFO] [stderr]     |                      ^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr]     = note: #[warn(unused_parens)] on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:473:16
[INFO] [stderr]     |
[INFO] [stderr] 473 |             if (self.game_over_countdown > 0) {
[INFO] [stderr]     |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:483:12
[INFO] [stderr]     |
[INFO] [stderr] 483 |         if (input.left_key_pressed) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:486:12
[INFO] [stderr]     |
[INFO] [stderr] 486 |         if (input.right_key_pressed) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:489:12
[INFO] [stderr]     |
[INFO] [stderr] 489 |         if (input.up_key_pressed) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:493:12
[INFO] [stderr]     |
[INFO] [stderr] 493 |         if (input.down_key_pressed) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:500:12
[INFO] [stderr]     |
[INFO] [stderr] 500 |         if (self.gravity_countdown > 0) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:503:12
[INFO] [stderr]     |
[INFO] [stderr] 503 |         if (self.lock_delay_countdown > 0 && self.locking_state) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:539:12
[INFO] [stderr]     |
[INFO] [stderr] 539 |         if (self.level >= 10) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around `if` condition
[INFO] [stderr]    --> src/main.rs:646:12
[INFO] [stderr]     |
[INFO] [stderr] 646 |         if (event_pump.keyboard_state().is_scancode_pressed(Scancode::Down)) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `move_down_success` is never read
[INFO] [stderr]    --> src/main.rs:508:17
[INFO] [stderr]     |
[INFO] [stderr] 508 |         let mut move_down_success = true;
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: #[warn(unused_assignments)] on by default
[INFO] [stderr]     = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/main.rs:613:9
[INFO] [stderr]     |
[INFO] [stderr] 613 |     let mut font = ttf_context.load_font(font_path, 28).unwrap();
[INFO] [stderr]     |         ----^^^^
[INFO] [stderr]     |         |
[INFO] [stderr]     |         help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: #[warn(unused_mut)] on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method is never used: `is_row_empty`
[INFO] [stderr]    --> src/main.rs:411:5
[INFO] [stderr]     |
[INFO] [stderr] 411 |     fn is_row_empty(&self, row:usize) -> bool {
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: #[warn(dead_code)] on by default
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `start_pos` should have an upper case name
[INFO] [stderr]   --> src/main.rs:20:8
[INFO] [stderr]    |
[INFO] [stderr] 20 | static start_pos: Pos2D = Pos2D {
[INFO] [stderr]    |        ^^^^^^^^^ help: convert the identifier to upper case: `START_POS`
[INFO] [stderr]    |
[INFO] [stderr]    = note: #[warn(non_upper_case_globals)] on by default
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `tetris_board_width` should have an upper case name
[INFO] [stderr]   --> src/main.rs:24:8
[INFO] [stderr]    |
[INFO] [stderr] 24 | static tetris_board_width : usize = 12;
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TETRIS_BOARD_WIDTH`
[INFO] [stderr] 
[INFO] [stderr] warning: static variable `tetris_board_height` should have an upper case name
[INFO] [stderr]   --> src/main.rs:25:8
[INFO] [stderr]    |
[INFO] [stderr] 25 | static tetris_board_height : usize = 24;
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TETRIS_BOARD_HEIGHT`
[INFO] [stderr] 
[INFO] [stderr] warning: unused `std::result::Result` that must be used
[INFO] [stderr]    --> src/main.rs:273:13
[INFO] [stderr]     |
[INFO] [stderr] 273 |             canvas.fill_rect(rect);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: #[warn(unused_must_use)] on by default
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] 
[INFO] [stderr] warning: variable `randomTetrisPieceGenerator` should have a snake case name
[INFO] [stderr]    --> src/main.rs:342:17
[INFO] [stderr]     |
[INFO] [stderr] 342 |         let mut randomTetrisPieceGenerator = RandomTetrisPieceGenerator::new();
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `random_tetris_piece_generator`
[INFO] [stderr]     |
[INFO] [stderr]     = note: #[warn(non_snake_case)] on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused `std::result::Result` that must be used
[INFO] [stderr]    --> src/main.rs:556:9
[INFO] [stderr]     |
[INFO] [stderr] 556 |         canvas.fill_rect(rect);
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] 
[INFO] [stderr] warning: unused `std::result::Result` that must be used
[INFO] [stderr]    --> src/main.rs:661:13
[INFO] [stderr]     |
[INFO] [stderr] 661 |             canvas.fill_rect(Rect::new(0,0,width,height));
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stderr] 
[INFO] [stderr] error: linking with `cc` failed: exit code: 1
[INFO] [stderr]   |
[INFO] [stderr]   = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.10.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.11.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.12.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.13.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.14.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.15.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.6.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.7.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.8.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.rust_tetris.1bjfd8pq-cgu.9.rcgu.o" "-o" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b" "/opt/crater/target/debug/deps/rust_tetris-50731775e039e15b.4pwp1y0wocu2g2md.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/crater/target/debug/deps" "-L" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/libsdl2-59fa0f73d22f855d.rlib" "/opt/crater/target/debug/deps/librand-fe888f8daad0c945.rlib" "/opt/crater/target/debug/deps/librand-5b4846b2df01bb6e.rlib" "/opt/crater/target/debug/deps/libsdl2_sys-1da59a18e3958b9e.rlib" "/opt/crater/target/debug/deps/libbitflags-df219a1ec24cdf3b.rlib" "/opt/crater/target/debug/deps/liblazy_static-318544a807a94655.rlib" "/opt/crater/target/debug/deps/liblibc-dd1adeeac4690585.rlib" "/opt/crater/target/debug/deps/libnum-558d8b228c2ea06c.rlib" "/opt/crater/target/debug/deps/libnum_iter-a7210c4b115aa645.rlib" "/opt/crater/target/debug/deps/libnum_integer-b313e99b23f6e865.rlib" "/opt/crater/target/debug/deps/libnum_traits-cd98387e0f6e90f9.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-9895e8982b0a79e7.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-57306b8ed3378a0e.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-54463ae5adae3649.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-d99667b199a9875a.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-51f4300e102199f5.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-b3ccf1f7737a6a91.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-157c37a3ceb78853.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-505bcee45aafb736.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-c29abd529ba4452b.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-895383a3232f6572.rlib" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-5594cb4f559bc761.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/1.36.0-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-38e90baf978bc428.rlib" "-Wl,-Bdynamic" "-lSDL2_ttf" "-lSDL2_image" "-lSDL2" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
[INFO] [stderr]   = note: /usr/bin/ld: cannot find -lSDL2_ttf
[INFO] [stderr]           /usr/bin/ld: cannot find -lSDL2_image
[INFO] [stderr]           collect2: error: ld returned 1 exit status
[INFO] [stderr]           
[INFO] [stderr] 
[INFO] [stderr] error: aborting due to previous error
[INFO] [stderr] 
[INFO] [stderr] error: Could not compile `rust-tetris`.
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "f3f0fa41c926dcfe2af8493c6353edcd608d7ea18b71f48b1bac36a174f1a0c8"`
[INFO] running `"docker" "rm" "-f" "f3f0fa41c926dcfe2af8493c6353edcd608d7ea18b71f48b1bac36a174f1a0c8"`
[INFO] [stdout] f3f0fa41c926dcfe2af8493c6353edcd608d7ea18b71f48b1bac36a174f1a0c8
