[INFO] cloning repository https://github.com/trangmaiq/tetris [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/trangmaiq/tetris" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrangmaiq%2Ftetris", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrangmaiq%2Ftetris'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0c7524c4866e1462dedd88afdb82b70f8d428acd [INFO] testing trangmaiq/tetris against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftrangmaiq%2Ftetris" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/trangmaiq/tetris on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/trangmaiq/tetris [INFO] finished tweaking git repo https://github.com/trangmaiq/tetris [INFO] tweaked toml for git repo https://github.com/trangmaiq/tetris written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/trangmaiq/tetris already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cc889b124213af241254d4a8207e598d63d915f1a40cb642ee6a35618d7a6614 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cc889b124213af241254d4a8207e598d63d915f1a40cb642ee6a35618d7a6614", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cc889b124213af241254d4a8207e598d63d915f1a40cb642ee6a35618d7a6614", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc889b124213af241254d4a8207e598d63d915f1a40cb642ee6a35618d7a6614", kill_on_drop: false }` [INFO] [stdout] cc889b124213af241254d4a8207e598d63d915f1a40cb642ee6a35618d7a6614 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9aad7543b163d2c4998e46a7c35ae2d51b324b24a0abd64396d069e3d11cce1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e9aad7543b163d2c4998e46a7c35ae2d51b324b24a0abd64396d069e3d11cce1", kill_on_drop: false }` [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.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling sdl2 v0.30.0 [INFO] [stderr] Compiling tetris v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `sdl2::rect::Rect` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sdl2::version::version` [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | use sdl2::version::version; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `blue_square_texture` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let blue_square_texture: Texture = create_square_texture_rect( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_blue_square_texture` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `green_square_texture` [INFO] [stdout] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let green_square_texture: Texture = create_square_texture_rect( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_green_square_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `timer` [INFO] [stdout] --> src/main.rs:72:9 [INFO] [stdout] | [INFO] [stdout] 72 | let timer = SystemTime::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_timer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `states` [INFO] [stdout] --> src/tetrimino.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | states: Vec>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/tetrimino.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | x: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/tetrimino.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | y: isize, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `current_state` [INFO] [stdout] --> src/tetrimino.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | current_state: u8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoI` [INFO] [stdout] --> src/tetrimino.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct TetriminoI; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoJ` [INFO] [stdout] --> src/tetrimino.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct TetriminoJ; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoL` [INFO] [stdout] --> src/tetrimino.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | struct TetriminoL; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoO` [INFO] [stdout] --> src/tetrimino.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct TetriminoO; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoS` [INFO] [stdout] --> src/tetrimino.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | struct TetriminoS; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoZ` [INFO] [stdout] --> src/tetrimino.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct TetriminoZ; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `TetriminoT` [INFO] [stdout] --> src/tetrimino.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | struct TetriminoT; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_new_tetrimino` [INFO] [stdout] --> src/tetrimino.rs:209:4 [INFO] [stdout] | [INFO] [stdout] 209 | fn create_new_tetrimino() -> Tetrimino { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `slice_to_string` [INFO] [stdout] --> src/main.rs:144:4 [INFO] [stdout] | [INFO] [stdout] 144 | fn slice_to_string(slice: &[u32]) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `save_highscores_and_lines` [INFO] [stdout] --> src/main.rs:168:4 [INFO] [stdout] | [INFO] [stdout] 168 | fn save_highscores_and_lines(highscores: &[u32], number_of_lines: &[u32]) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_into_file` [INFO] [stdout] --> src/main.rs:178:4 [INFO] [stdout] | [INFO] [stdout] 178 | fn write_into_file(content: &str, filename: &str) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `line_to_slice` [INFO] [stdout] --> src/main.rs:184:4 [INFO] [stdout] | [INFO] [stdout] 184 | fn line_to_slice(line: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `load_highscores_and_lines` [INFO] [stdout] --> src/main.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 188 | fn load_highscores_and_lines() -> Option<(Vec, Vec)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_from_file` [INFO] [stdout] --> src/main.rs:206:4 [INFO] [stdout] | [INFO] [stdout] 206 | fn read_from_file(filename: &str) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit code: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.tetris.7toiwtak-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c" "/opt/rustwide/target/debug/deps/tetris-7add892e603c345c.3hh535vuoyxi0wkx.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libsdl2-86751b6fb9c1e691.rlib" "/opt/rustwide/target/debug/deps/librand-7e289c4fed867ea8.rlib" "/opt/rustwide/target/debug/deps/librand-497ee7149b648ce4.rlib" "/opt/rustwide/target/debug/deps/libsdl2_sys-7bbe9f485891791c.rlib" "/opt/rustwide/target/debug/deps/libbitflags-12fb577444bcad11.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-cbf4e74d25b393ff.rlib" "/opt/rustwide/target/debug/deps/liblibc-4f80335c1c505af7.rlib" "/opt/rustwide/target/debug/deps/libnum-e3679838df648afd.rlib" "/opt/rustwide/target/debug/deps/libnum_iter-f733c6b77dc722ee.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-f84db87ac40dfc9a.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-dab92e4a7c3b6ca2.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8bb11f807a7b6b4c.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-ca8087507780d964.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-259c92b387c1c166.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-16e0a2fbbb8e14b3.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-8a1651b8e23d2aaf.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-23bdd98b0574083e.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-855a92055ec33e2e.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-24c70dd44fbacdfb.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-b326273841bae587.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-ac3c1f0e16507051.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-a5729542b65954aa.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-09bd1119ab1cad7d.rlib" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-9a787681bfbeaf61.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/1.45.2-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-5a0398ee67f74664.rlib" "-Wl,-Bdynamic" "-lSDL2_image" "-lSDL2" "-lutil" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lSDL2_image [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 23 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `tetris`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "e9aad7543b163d2c4998e46a7c35ae2d51b324b24a0abd64396d069e3d11cce1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9aad7543b163d2c4998e46a7c35ae2d51b324b24a0abd64396d069e3d11cce1", kill_on_drop: false }` [INFO] [stdout] e9aad7543b163d2c4998e46a7c35ae2d51b324b24a0abd64396d069e3d11cce1