[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 beta-2019-07-23 for beta-1.37-6
[INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-3/beta-2019-07-23:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/beta-2019-07-23/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" "+beta-2019-07-23" "build" "--frozen"`
[INFO] [stdout] 566c039dba90f0cdf952fc981e940e43dfb4df2fb2e5a31ca380e6c75dbaeb65
[INFO] running `"docker" "start" "-a" "566c039dba90f0cdf952fc981e940e43dfb4df2fb2e5a31ca380e6c75dbaeb65"`
[INFO] [stderr]    Compiling sdl2-sys v0.31.0
[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/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.10.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.11.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.12.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.13.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.14.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.15.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.6.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.7.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.8.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.rust_tetris.3yzyyjlx-cgu.9.rcgu.o" "-o" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a" "/opt/crater/target/debug/deps/rust_tetris-d2043b815b9faf4a.ftxmo0r3rvu2jlg.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/crater/target/debug/deps" "-L" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/libsdl2-63dbcb90ad110682.rlib" "/opt/crater/target/debug/deps/librand-7b4ac3f3b42a2ef7.rlib" "/opt/crater/target/debug/deps/librand-ba0f7e3caa5ae6fa.rlib" "/opt/crater/target/debug/deps/libsdl2_sys-f78e32c5ecbb8139.rlib" "/opt/crater/target/debug/deps/libbitflags-e424d0a7dda42873.rlib" "/opt/crater/target/debug/deps/liblazy_static-0e1e36676eed3924.rlib" "/opt/crater/target/debug/deps/liblibc-7ef0ecc5d6f9b1d0.rlib" "/opt/crater/target/debug/deps/libnum-6d1c41becdc658de.rlib" "/opt/crater/target/debug/deps/libnum_iter-6a53ebaecf43d64b.rlib" "/opt/crater/target/debug/deps/libnum_integer-3e4b662ece72588f.rlib" "/opt/crater/target/debug/deps/libnum_traits-b0613bcbd790bfdc.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-a80a1e8e09cafef8.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-e0e6351da805c468.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-e04f54bafc95e331.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-67901d3322495bd5.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bd390b1abaceaec1.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-312dd37fdc7bedfc.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-8ed0e51d58d644a3.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-8a423c320a6c707f.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-d6a95598e2238263.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-d231614b153016eb.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3821619027f463e4.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-1cfd794d18771a44.rlib" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-dcf33cf10c2452ef.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/beta-2019-07-23-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-c258fea34bf64bce.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" "566c039dba90f0cdf952fc981e940e43dfb4df2fb2e5a31ca380e6c75dbaeb65"`
[INFO] running `"docker" "rm" "-f" "566c039dba90f0cdf952fc981e940e43dfb4df2fb2e5a31ca380e6c75dbaeb65"`
[INFO] [stdout] 566c039dba90f0cdf952fc981e940e43dfb4df2fb2e5a31ca380e6c75dbaeb65
