[INFO] cloning repository https://github.com/frontendbegin/snake_game [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frontendbegin/snake_game" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrontendbegin%2Fsnake_game", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrontendbegin%2Fsnake_game'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 146922d768e2199c780c473211d6c0bc8c9457c5 [INFO] testing frontendbegin/snake_game against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrontendbegin%2Fsnake_game" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/frontendbegin/snake_game [INFO] finished tweaking git repo https://github.com/frontendbegin/snake_game [INFO] tweaked toml for git repo https://github.com/frontendbegin/snake_game written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/frontendbegin/snake_game on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/frontendbegin/snake_game already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b2a9dfcaa8c1afe831dd41bcfa086b771dd8982254b9d95d56a1d2caed086f89 [INFO] running `Command { std: "docker" "start" "-a" "b2a9dfcaa8c1afe831dd41bcfa086b771dd8982254b9d95d56a1d2caed086f89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b2a9dfcaa8c1afe831dd41bcfa086b771dd8982254b9d95d56a1d2caed086f89", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b2a9dfcaa8c1afe831dd41bcfa086b771dd8982254b9d95d56a1d2caed086f89", kill_on_drop: false }` [INFO] [stdout] b2a9dfcaa8c1afe831dd41bcfa086b771dd8982254b9d95d56a1d2caed086f89 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d5aa00307cbb05b9740428c569cba369b125576c9f5824bbd40275901e9cc9d7 [INFO] running `Command { std: "docker" "start" "-a" "d5aa00307cbb05b9740428c569cba369b125576c9f5824bbd40275901e9cc9d7", kill_on_drop: false }` [INFO] [stderr] Compiling xml-rs v0.8.22 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling bytemuck v1.18.0 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling piston-float v1.0.1 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling piston-viewport v1.0.2 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling piston-graphics_api_version v1.0.1 [INFO] [stderr] Compiling xcursor v0.3.8 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling ttf-parser v0.24.1 [INFO] [stderr] Compiling built v0.7.4 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling glutin v0.30.10 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Compiling glutin_egl_sys v0.5.1 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling quick-error v2.0.1 [INFO] [stderr] Compiling imgref v1.10.1 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling owned_ttf_parser v0.24.0 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling ab_glyph v0.2.28 [INFO] [stderr] Compiling noop_proc_macro v0.3.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bitstream-io v2.5.3 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling loop9 v0.1.5 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling rgb v0.8.50 [INFO] [stderr] Compiling glutin-winit v0.3.0 [INFO] [stderr] Compiling avif-serialize v0.8.1 [INFO] [stderr] Compiling zune-inflate v0.2.54 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling bit_field v0.10.2 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling zune-core v0.4.12 [INFO] [stderr] Compiling image-webp v0.1.3 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling zune-jpeg v0.4.13 [INFO] [stderr] Compiling exr v1.72.0 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling shader_version v0.7.0 [INFO] [stderr] Compiling vecmath v1.0.0 [INFO] [stderr] Compiling piston-texture v0.9.0 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling interpolation v0.3.0 [INFO] [stderr] Compiling read_color v1.0.0 [INFO] [stderr] Compiling spin_sleep v1.2.1 [INFO] [stderr] Compiling piston-shaders_graphics2d v0.4.0 [INFO] [stderr] Compiling owned_ttf_parser v0.15.2 [INFO] [stderr] Compiling rusttype v0.9.3 [INFO] [stderr] Compiling piston2d-graphics v0.44.0 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling profiling-procmacros v1.0.15 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pistoncore-input v1.0.1 [INFO] [stderr] Compiling pistoncore-window v1.0.0 [INFO] [stderr] Compiling pistoncore-event_loop v1.0.0 [INFO] [stderr] Compiling piston v1.0.0 [INFO] [stderr] Compiling ravif v0.11.10 [INFO] [stderr] Compiling image v0.25.2 [INFO] [stderr] Compiling piston2d-opengl_graphics v0.85.1 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling pistoncore-glutin_window v0.72.0 [INFO] [stderr] Compiling snake_game v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `std::os::windows` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::os::windows; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ no `windows` in `os` [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/os/mod.rs:56:5 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/std/src/os/mod.rs:120:10 [INFO] [stdout] | [INFO] [stdout] = note: the item is gated here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::process::exit; [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 imports: `grid` and `math` [INFO] [stdout] --> src/main.rs:11:16 [INFO] [stdout] | [INFO] [stdout] 11 | use graphics::{grid, math}; [INFO] [stdout] | ^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `graphics::types::Width` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use graphics::types::Width; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `UpdateArgs` [INFO] [stdout] --> src/main.rs:15:66 [INFO] [stdout] | [INFO] [stdout] 15 | use piston::input::{Button, PressEvent, RenderArgs, RenderEvent, UpdateArgs, UpdateEvent}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:55:28 [INFO] [stdout] | [INFO] [stdout] 55 | let mut new_head = (*self.snake.body.first().expect("The snake has no body")); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 55 - let mut new_head = (*self.snake.body.first().expect("The snake has no body")); [INFO] [stdout] 55 + let mut new_head = *self.snake.body.first().expect("The snake has no body"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:148:28 [INFO] [stdout] | [INFO] [stdout] 148 | let mut new_head = (*self.body.first().expect("The snake has no body")); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 148 - let mut new_head = (*self.body.first().expect("The snake has no body")); [INFO] [stdout] 148 + let mut new_head = *self.body.first().expect("The snake has no body"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_x` [INFO] [stdout] --> src/main.rs:50:23 [INFO] [stdout] | [INFO] [stdout] 50 | if let Some(&(head_x, head_y)) = self.snake.body.first(){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `head_y` [INFO] [stdout] --> src/main.rs:50:31 [INFO] [stdout] | [INFO] [stdout] 50 | if let Some(&(head_x, head_y)) = self.snake.body.first(){ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_head_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `square_size_food` [INFO] [stdout] --> src/main.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | let square_size_food = 10.0; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_square_size_food` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/main.rs:213:21 [INFO] [stdout] | [INFO] [stdout] 213 | if let Some(u) = e.update_args() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `snake_game` (bin "snake_game") due to 1 previous error; 10 warnings emitted [INFO] running `Command { std: "docker" "inspect" "d5aa00307cbb05b9740428c569cba369b125576c9f5824bbd40275901e9cc9d7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d5aa00307cbb05b9740428c569cba369b125576c9f5824bbd40275901e9cc9d7", kill_on_drop: false }` [INFO] [stdout] d5aa00307cbb05b9740428c569cba369b125576c9f5824bbd40275901e9cc9d7