[INFO] cloning repository droidkid/rust-tetris [INFO] running `"git" "clone" "--bare" "git://github.com/droidkid/rust-tetris.git" "work/cache/sources/gh/droidkid/rust-tetris"` [INFO] [stderr] Cloning into bare repository 'work/cache/sources/gh/droidkid/rust-tetris'... [INFO] running `"git" "clone" "work/cache/sources/gh/droidkid/rust-tetris" "work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/droidkid/rust-tetris"` [INFO] [stderr] Cloning into 'work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/droidkid/rust-tetris'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/droidkid/rust-tetris" "work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/droidkid/rust-tetris"` [INFO] [stderr] Cloning into 'work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/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 master#c8865d8e195813ade6b84434ac9f8850e7112d1a [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of droidkid/rust-tetris on toolchain try#e212b7d492c96d3837691ba29d32d5f468933fb8 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "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/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/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/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/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" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing droidkid/rust-tetris against try#e212b7d492c96d3837691ba29d32d5f468933fb8 for pr-61629 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-5/try#e212b7d492c96d3837691ba29d32d5f468933fb8:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/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=forbid" "-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" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "build" "--frozen"` [INFO] [stdout] e4ed0bde375e806423942459e624d49b73b430422745bca6cd5cff45536cc82c [INFO] running `"docker" "start" "-a" "e4ed0bde375e806423942459e624d49b73b430422745bca6cd5cff45536cc82c"` [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/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.0.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.1.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.10.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.11.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.12.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.13.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.14.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.15.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.2.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.3.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.4.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.5.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.6.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.7.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.8.rcgu.o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.rust_tetris.ejtneasx-cgu.9.rcgu.o" "-o" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17" "/opt/crater/target/debug/deps/rust_tetris-16280c76188c7a17.42fxwr8qfcuvfdj1.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/crater/target/debug/deps" "-L" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/crater/target/debug/deps/libsdl2-45c8dc5401836d51.rlib" "/opt/crater/target/debug/deps/librand-61806f9eace30a56.rlib" "/opt/crater/target/debug/deps/librand-448223397806760a.rlib" "/opt/crater/target/debug/deps/libsdl2_sys-8f1783b200ceec5b.rlib" "/opt/crater/target/debug/deps/libbitflags-cb0300d7373a08e3.rlib" "/opt/crater/target/debug/deps/liblazy_static-9b17a9645fc94ad9.rlib" "/opt/crater/target/debug/deps/liblibc-91bbfc7bb2170b01.rlib" "/opt/crater/target/debug/deps/libnum-49e206f4ab46d7c6.rlib" "/opt/crater/target/debug/deps/libnum_iter-4c2592bdcf755dee.rlib" "/opt/crater/target/debug/deps/libnum_integer-9488503a36788878.rlib" "/opt/crater/target/debug/deps/libnum_traits-863ec76389318891.rlib" "-Wl,--start-group" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-196d0eff8e603c0a.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-1c597f5941591e04.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-a20af2d3380aa511.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-f989f9e071798586.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-52fb60b932b5ef90.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-90a3fdc679697856.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-06d10270cfa51644.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-8abb913fca550f79.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-31fd2baab47b156c.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-0862cc65189bd4af.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-8010b8629f5aa3e5.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-2d032fe7d4e1e163.rlib" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-622fdce0dc084cba.rlib" "-Wl,--end-group" "/opt/crater/rustup-home/toolchains/e212b7d492c96d3837691ba29d32d5f468933fb8-alt/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-a17fdd0a687135a8.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" "e4ed0bde375e806423942459e624d49b73b430422745bca6cd5cff45536cc82c"` [INFO] running `"docker" "rm" "-f" "e4ed0bde375e806423942459e624d49b73b430422745bca6cd5cff45536cc82c"` [INFO] [stdout] e4ed0bde375e806423942459e624d49b73b430422745bca6cd5cff45536cc82c