[INFO] updating cached repository https://github.com/slier81/Tetris [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] b4e37baeb08d5e243ff4bd5acd333fe5c88461af [INFO] testing slier81/Tetris against try#41997647ba6a77908f6ef64401414feb00bccf16 for pr-71274 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fslier81%2FTetris" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/slier81/Tetris on toolchain 41997647ba6a77908f6ef64401414feb00bccf16 [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/slier81/Tetris [INFO] finished tweaking git repo https://github.com/slier81/Tetris [INFO] tweaked toml for git repo https://github.com/slier81/Tetris written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/slier81/Tetris already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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=forbid" "-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" "/opt/rustwide/cargo-home/bin/cargo" "+41997647ba6a77908f6ef64401414feb00bccf16" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 61d2afd3f314ed1d46dc69616294a3da1ef1a337626334cc678ab4ce78507399 [INFO] running `"docker" "start" "-a" "61d2afd3f314ed1d46dc69616294a3da1ef1a337626334cc678ab4ce78507399"` [INFO] [stderr] Compiling autocfg v0.1.5 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling bitflags v1.1.0 [INFO] [stderr] Compiling sdl2 v0.32.2 [INFO] [stderr] Compiling rust_sdl v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling sdl2-sys v0.32.6 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] warning: unused imports: `WindowContext`, `Window` [INFO] [stderr] --> src/main.rs:7:19 [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::video::{Window, WindowContext}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Canvas`, `TextureCreator`, `Texture` [INFO] [stderr] --> src/main.rs:9:20 [INFO] [stderr] | [INFO] [stderr] 9 | use sdl2::render::{Canvas, TextureCreator, Texture}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:58:13 [INFO] [stderr] | [INFO] [stderr] 58 | let mut square_type = match timer.elapsed() { [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: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:63:13 [INFO] [stderr] | [INFO] [stderr] 63 | let mut square = if square_type { [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: function is never used: `write_to_file` [INFO] [stderr] --> src/util.rs:34:8 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn write_to_file(content: &str, filename: &str) -> io::Result<()> { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `read_from_file` [INFO] [stderr] --> src/util.rs:39:8 [INFO] [stderr] | [INFO] [stderr] 39 | pub fn read_from_file(filename: &str) -> io::Result { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `slice_to_string` [INFO] [stderr] --> src/util.rs:46:8 [INFO] [stderr] | [INFO] [stderr] 46 | pub fn slice_to_string(slice: &[u32]) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `save_highscores_and_lines` [INFO] [stderr] --> src/util.rs:50:8 [INFO] [stderr] | [INFO] [stderr] 50 | pub fn save_highscores_and_lines(highscores: &[u32], number_of_lines: &[u32]) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `line_to_slice` [INFO] [stderr] --> src/util.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn line_to_slice(line: &str) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `load_highscores_and_lines` [INFO] [stderr] --> src/util.rs:60:8 [INFO] [stderr] | [INFO] [stderr] 60 | pub fn load_highscores_and_lines() -> Option<(Vec, Vec)> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused `std::result::Result` that must be used [INFO] [stderr] --> src/util.rs:42:5 [INFO] [stderr] | [INFO] [stderr] 42 | f.read_to_string(&mut content); [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] error: linking with `cc` failed: exit code: 1 [INFO] [stderr] | [INFO] [stderr] = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.rust_sdl.71dy0bdm-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df" "/opt/rustwide/target/debug/deps/rust_sdl-b1c70db13dbea9df.47bogf7qqeldkhj8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libsdl2-10031c98a8498999.rlib" "/opt/rustwide/target/debug/deps/librand-c1ab9863208b53c7.rlib" "/opt/rustwide/target/debug/deps/librand_xorshift-b89e9be76dd5ebdb.rlib" "/opt/rustwide/target/debug/deps/librand_pcg-ab0b567953105ee9.rlib" "/opt/rustwide/target/debug/deps/librand_hc-458e9d01f330c516.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-7e36ce096575b248.rlib" "/opt/rustwide/target/debug/deps/librand_isaac-383ffb82adde40d9.rlib" "/opt/rustwide/target/debug/deps/librand_core-e860bcf581bc8c7b.rlib" "/opt/rustwide/target/debug/deps/librand_os-11862e8538c1bb5a.rlib" "/opt/rustwide/target/debug/deps/librand_jitter-d1abb610e359825d.rlib" "/opt/rustwide/target/debug/deps/librand_core-efb9f61e179ac79b.rlib" "/opt/rustwide/target/debug/deps/libsdl2_sys-df8427d7d77d3d10.rlib" "/opt/rustwide/target/debug/deps/libbitflags-e19ca9f68a0a4995.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-871db668c04919c0.rlib" "/opt/rustwide/target/debug/deps/liblibc-e607f26e97ca91c6.rlib" "/opt/rustwide/target/debug/deps/libnum-5266b5eb172db361.rlib" "/opt/rustwide/target/debug/deps/libnum_iter-9f3dbe71a2cca020.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-30dbb78a37a9a769.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-3b7e3d0cba1906cb.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-62f93208e14fa8f0.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-b2c4dbe979cef5e2.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-8b9b66cb3e9f891d.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5998b08bf29f56ac.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace-efd1670396ccb585.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libbacktrace_sys-6435b9209e888961.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-866e5dfb603b34d2.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-75eac3089695b3b4.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-35744537b4825584.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f7ee5081d96fb2cd.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-5b28479cb639d76c.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-f827473dd3b319fa.rlib" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-53f9c299c549c6a9.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/41997647ba6a77908f6ef64401414feb00bccf16/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-44132fbb3fcc18d3.rlib" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2_image" "-lutil" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-ldl" "-lutil" [INFO] [stderr] = note: /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; 11 warnings emitted [INFO] [stderr] [INFO] [stderr] error: could not compile `rust_sdl`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "61d2afd3f314ed1d46dc69616294a3da1ef1a337626334cc678ab4ce78507399"` [INFO] running `"docker" "rm" "-f" "61d2afd3f314ed1d46dc69616294a3da1ef1a337626334cc678ab4ce78507399"` [INFO] [stdout] 61d2afd3f314ed1d46dc69616294a3da1ef1a337626334cc678ab4ce78507399