[INFO] cloning repository https://github.com/cnsr/rust-snake
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cnsr/rust-snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnsr%2Frust-snake"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnsr%2Frust-snake'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 3f6de6d6dd85c6a9e61c2922de331bac962fc947
[INFO] testing cnsr/rust-snake against 1.101.0-beta.1+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnsr%2Frust-snake" "/workspace/builds/worker-3-tc2/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/cnsr/rust-snake
[INFO] finished tweaking git repo https://github.com/cnsr/rust-snake
[INFO] tweaked toml for git repo https://github.com/cnsr/rust-snake written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/cnsr/rust-snake on toolchain 1.101.0-beta.1
[INFO] running `"cargo" "+1.101.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/cnsr/rust-snake already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.101.0-beta.1" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6
[INFO] running `"docker" "start" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6"`
[INFO] running `"docker" "inspect" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6" "/opt/rustwide/cargo-home/bin/cargo" "+1.101.0-beta.1" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling libc v0.2.66
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling num-traits v0.2.10
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]    Compiling getrandom v0.1.13
[INFO] [stderr]    Compiling num-iter v0.1.39
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling ppv-lite86 v0.2.6
[INFO] [stderr]    Compiling sdl2 v0.32.2
[INFO] [stderr]    Compiling sdl2-sys v0.32.6
[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 rand_chacha v0.1.1
[INFO] [stderr]    Compiling c2-chacha v0.2.3
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling rand_core v0.5.1
[INFO] [stderr]    Compiling rand_chacha v0.2.1
[INFO] [stderr]    Compiling rand v0.7.2
[INFO] [stderr]    Compiling num v0.1.42
[INFO] [stderr]    Compiling snake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: found module declaration for lib.rs
[INFO] [stdout]   --> src/main.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub mod lib;
[INFO] [stdout]    | ^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: lib.rs is the root of this crate's library target
[INFO] [stdout]    = help: to refer to it from other targets, use the library's name as the path
[INFO] [stdout]    = note: `#[warn(special_module_name)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `sdl2::render::TextureQuery`
[INFO] [stdout]   --> src/main.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use sdl2::render::TextureQuery;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `SnakeSegment`
[INFO] [stdout]  --> src/lib/snake.rs:1:48
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::lib::types::{Cell, SnakeHead, Grid, SnakeSegment, Food};
[INFO] [stdout]   |                                                ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::lib::grid_init`
[INFO] [stdout]  --> src/lib/snake.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::lib::grid_init;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib/types.rs:60:13
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut newvec = vec.to_vec();
[INFO] [stdout]    |         ----^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dimensions`
[INFO] [stdout]  --> src/lib/snake.rs:7:54
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub fn change_grid(mut grid: Grid, head: &SnakeHead, dimensions: (u32, u32)) -> Grid{
[INFO] [stdout]   |                                                      ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_dimensions`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `direction`
[INFO] [stdout]   --> src/lib/snake.rs:49:56
[INFO] [stdout]    |
[INFO] [stdout] 49 | pub fn draw_body(head: &mut SnakeHead, mut grid: Grid, direction: (i32, i32)) -> Grid {
[INFO] [stdout]    |                                                        ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `cell_color`
[INFO] [stdout]   --> src/lib/snake.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     let cell_color: Cell = Cell{red: 0_u8, green: 196_u8, blue: 0_u8};
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cell_color`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib/snake.rs:64:39
[INFO] [stdout]    |
[INFO] [stdout] 64 | pub fn draw_food(food: &mut Food, mut grid: Grid) -> Grid {
[INFO] [stdout]    |                                   ----^^^^
[INFO] [stdout]    |                                   |
[INFO] [stdout]    |                                   help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/lib/mod.rs:27:13
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let mut event_pump: EventPump = sdl_context.event_pump().unwrap();
[INFO] [stdout]    |         ----^^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:46:13
[INFO] [stdout]    |
[INFO] [stdout] 46 |     let mut direction: (i32, i32) = (1,0);
[INFO] [stdout]    |         ----^^^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:128:17
[INFO] [stdout]     |
[INFO] [stdout] 128 |         let mut debug_text = format!("x {:?} y {:?} len {:?} seg {:?} fx {:?} fy {:?}",
[INFO] [stdout]     |             ----^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:140:9
[INFO] [stdout]     |
[INFO] [stdout] 140 |         canvas.copy(&texture, None, Some(target));
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: if you wish to disregard this recommendation, use `let _ = ...` to ignore the value
[INFO] [stdout]     |
[INFO] [stdout] 140 |         let _ = canvas.copy(&texture, None, Some(target));
[INFO] [stdout]     |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: linking with `cc` failed: exit status: 1
[INFO] [stdout]   |
[INFO] [stdout]   = note:  "cc" "-m64" "/opt/rustwide/target/release/build/snake/1552f5898cf00903/out/rustcDTiZvd/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/target/release/build/rand/5075830a566fedcf/out/librand-5075830a566fedcf.rlib" "/opt/rustwide/target/release/build/rand_chacha/9917057f41f78207/out/librand_chacha-9917057f41f78207.rlib" "/opt/rustwide/target/release/build/c2-chacha/a2df002bae3fe259/out/libc2_chacha-a2df002bae3fe259.rlib" "/opt/rustwide/target/release/build/ppv-lite86/68fe77ca41eae96b/out/libppv_lite86-68fe77ca41eae96b.rlib" "/opt/rustwide/target/release/build/rand_core/23774656d197bcc4/out/librand_core-23774656d197bcc4.rlib" "/opt/rustwide/target/release/build/getrandom/5e502dcb7d748a0b/out/libgetrandom-5e502dcb7d748a0b.rlib" "/opt/rustwide/target/release/build/cfg-if/71970eaad7f71508/out/libcfg_if-71970eaad7f71508.rlib" "/opt/rustwide/target/release/build/sdl2/bd6b8a48a534e1f7/out/libsdl2-bd6b8a48a534e1f7.rlib" "/opt/rustwide/target/release/build/rand/25733ba8858e747c/out/librand-25733ba8858e747c.rlib" "/opt/rustwide/target/release/build/rand_xorshift/ce68408bfce9fa2f/out/librand_xorshift-ce68408bfce9fa2f.rlib" "/opt/rustwide/target/release/build/rand_pcg/622d6a9c608074e7/out/librand_pcg-622d6a9c608074e7.rlib" "/opt/rustwide/target/release/build/rand_hc/cbab50a68a9bb4ef/out/librand_hc-cbab50a68a9bb4ef.rlib" "/opt/rustwide/target/release/build/rand_chacha/4c5525ba3e61a4fe/out/librand_chacha-4c5525ba3e61a4fe.rlib" "/opt/rustwide/target/release/build/rand_isaac/1111326df7070e14/out/librand_isaac-1111326df7070e14.rlib" "/opt/rustwide/target/release/build/rand_core/6e6d50018d8c4ed0/out/librand_core-6e6d50018d8c4ed0.rlib" "/opt/rustwide/target/release/build/rand_os/cbd02794b4a45f9c/out/librand_os-cbd02794b4a45f9c.rlib" "/opt/rustwide/target/release/build/rand_jitter/651d2bd9ad22307e/out/librand_jitter-651d2bd9ad22307e.rlib" "/opt/rustwide/target/release/build/rand_core/421cb0c4998c24c0/out/librand_core-421cb0c4998c24c0.rlib" "/opt/rustwide/target/release/build/sdl2-sys/02dff68bac14384a/out/libsdl2_sys-02dff68bac14384a.rlib" "/opt/rustwide/target/release/build/bitflags/6bbe45f387d8c456/out/libbitflags-6bbe45f387d8c456.rlib" "/opt/rustwide/target/release/build/lazy_static/b3cd6b951b38851d/out/liblazy_static-b3cd6b951b38851d.rlib" "/opt/rustwide/target/release/build/libc/834e490cf5573490/out/liblibc-834e490cf5573490.rlib" "/opt/rustwide/target/release/build/num/dd39f3ad64ee0453/out/libnum-dd39f3ad64ee0453.rlib" "/opt/rustwide/target/release/build/num-iter/bf61d9523890c33e/out/libnum_iter-bf61d9523890c33e.rlib" "/opt/rustwide/target/release/build/num-integer/7baebd32c8dc2d6f/out/libnum_integer-7baebd32c8dc2d6f.rlib" "/opt/rustwide/target/release/build/num-traits/6216045af6b53941/out/libnum_traits-6216045af6b53941.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2_ttf" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/opt/rustwide/target/release/build/snake/1552f5898cf00903/out/rustcDTiZvd/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/release/build/snake/1552f5898cf00903/out/snake" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
[INFO] [stdout]   = note: some arguments are omitted. use `--verbose` to show all linker arguments
[INFO] [stdout]   = note: rust-lld: error: unable to find library -lSDL2_ttf
[INFO] [stdout]           collect2: error: ld returned 1 exit status
[INFO] [stdout]           
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `snake` (bin "snake") due to 1 previous error; 13 warnings emitted
[INFO] running `"docker" "inspect" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6"`
[INFO] running `"docker" "rm" "-f" "e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6"`
[INFO] [stdout] e09df086eb84ae3145cb045d2df6d3c73ea8d7da6763bf02051c5f7b24ba3aa6
