[INFO] cloning repository https://github.com/cnsr/rust-snake [INFO] running `Command { std: "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", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnsr%2Frust-snake'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f6de6d6dd85c6a9e61c2922de331bac962fc947 [INFO] testing cnsr/rust-snake against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcnsr%2Frust-snake" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cnsr/rust-snake on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7/source/Cargo.toml [INFO] crate git repo https://github.com/cnsr/rust-snake already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 32756f53089dfac21e2ad5f3a43ef2b122402e5a6032d8aa9f189c024c8592f9 [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" "32756f53089dfac21e2ad5f3a43ef2b122402e5a6032d8aa9f189c024c8592f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32756f53089dfac21e2ad5f3a43ef2b122402e5a6032d8aa9f189c024c8592f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32756f53089dfac21e2ad5f3a43ef2b122402e5a6032d8aa9f189c024c8592f9", kill_on_drop: false }` [INFO] [stdout] 32756f53089dfac21e2ad5f3a43ef2b122402e5a6032d8aa9f189c024c8592f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55948cae5dade4ab6738c67441956ed3da5fa5a81ee9a837703d5ec765ea41ea [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" "55948cae5dade4ab6738c67441956ed3da5fa5a81ee9a837703d5ec765ea41ea", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Compiling sdl2 v0.32.2 [INFO] [stderr] Compiling sdl2-sys v0.32.6 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.10 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [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: 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)]` 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: 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)]` on by default [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: 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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:46:9 [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] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:128:13 [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: variable does not need to be mutable [INFO] [stdout] --> src/lib/mod.rs:27:9 [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/lib/types.rs:60:9 [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] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib/snake.rs:64:35 [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: 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: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-Wl,--as-needed" "-L" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.snake.c6y2m374-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee" "/opt/rustwide/target/debug/deps/snake-ec6625376c3eb1ee.dfknpdn2x67girf.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/librand-6c610e0041ba2e65.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-4f5f5ea1dffe2e39.rlib" "/opt/rustwide/target/debug/deps/libc2_chacha-3c8ed1aa5fbe2a69.rlib" "/opt/rustwide/target/debug/deps/libppv_lite86-b3fed04289ecdc38.rlib" "/opt/rustwide/target/debug/deps/librand_core-ad22f622a296f5e4.rlib" "/opt/rustwide/target/debug/deps/libgetrandom-98f59c9bf1a01538.rlib" "/opt/rustwide/target/debug/deps/libcfg_if-c4f6196cf7d68209.rlib" "/opt/rustwide/target/debug/deps/libsdl2-a5e1e880e3c8c433.rlib" "/opt/rustwide/target/debug/deps/librand-de09635da77c4686.rlib" "/opt/rustwide/target/debug/deps/librand_xorshift-8f3f6166ee9ccdde.rlib" "/opt/rustwide/target/debug/deps/librand_pcg-c801506ae8973b41.rlib" "/opt/rustwide/target/debug/deps/librand_hc-d9c6449f1147d739.rlib" "/opt/rustwide/target/debug/deps/librand_chacha-891ac72a9c481e9e.rlib" "/opt/rustwide/target/debug/deps/librand_isaac-5d346fd7ef91f886.rlib" "/opt/rustwide/target/debug/deps/librand_core-54d45abaaf7ca6e8.rlib" "/opt/rustwide/target/debug/deps/librand_os-1138185cb9d77ad9.rlib" "/opt/rustwide/target/debug/deps/librand_jitter-31c0b93ee52d2ab0.rlib" "/opt/rustwide/target/debug/deps/librand_core-d2b5a49d7405257c.rlib" "/opt/rustwide/target/debug/deps/libsdl2_sys-71f636906b73da43.rlib" "/opt/rustwide/target/debug/deps/libbitflags-7f78c1de5599d643.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-ff2d4c059a61c830.rlib" "/opt/rustwide/target/debug/deps/liblibc-1ab4eae0cb75ec2a.rlib" "/opt/rustwide/target/debug/deps/libnum-8c082ce8be2ba1a3.rlib" "/opt/rustwide/target/debug/deps/libnum_iter-1755df9086597a6f.rlib" "/opt/rustwide/target/debug/deps/libnum_integer-495a6c4ba1131cf6.rlib" "/opt/rustwide/target/debug/deps/libnum_traits-cce2beb8aae1f240.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-21256c14e4504640.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-986e7fea4474d4d2.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-91d85f45babdb06e.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-756509c31813f9a6.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-5c2ef587e740c0cc.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-ad8f9371d31db1b3.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-402820fb3b4d3dd8.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-5e8e903f07dc8747.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-7ab9ae5080c07187.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-c8e8d47c6bf14de2.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5a02dbb58abd015a.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-cedc8fec61444895.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a1c96351c52bc56a.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-e41c6d24baeb2249.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-62493b241881590c.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-a1fd7734706d5518.rlib" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-c8ded1707ad10767.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/ce59db7a1b1b012fb2793c4641c1bdecad7a128b/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-1eec8756baa5bc24.rlib" "-Wl,-Bdynamic" "-lSDL2" "-lSDL2_ttf" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" [INFO] [stdout] = note: /usr/bin/ld: cannot find -lSDL2_ttf [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `snake` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "55948cae5dade4ab6738c67441956ed3da5fa5a81ee9a837703d5ec765ea41ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55948cae5dade4ab6738c67441956ed3da5fa5a81ee9a837703d5ec765ea41ea", kill_on_drop: false }` [INFO] [stdout] 55948cae5dade4ab6738c67441956ed3da5fa5a81ee9a837703d5ec765ea41ea