[INFO] cloning repository https://github.com/smolck/snake-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/smolck/snake-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolck%2Fsnake-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolck%2Fsnake-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ae7009e4e4742590769a16b37f374a72fbf4a544 [INFO] testing smolck/snake-rs against master#d933cf483edf1605142ac6899ff32536c0ad8b22 for pr-150933 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolck%2Fsnake-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/smolck/snake-rs [INFO] finished tweaking git repo https://github.com/smolck/snake-rs [INFO] tweaked toml for git repo https://github.com/smolck/snake-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/smolck/snake-rs on toolchain d933cf483edf1605142ac6899ff32536c0ad8b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/smolck/snake-rs 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" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded smallvec v1.12.0 [INFO] [stderr] Downloaded pollster v0.3.0 [INFO] [stderr] Downloaded renderdoc-sys v1.0.0 [INFO] [stderr] Downloaded profiling v1.0.13 [INFO] [stderr] Downloaded wayland-cursor v0.31.1 [INFO] [stderr] Downloaded serde_derive v1.0.198 [INFO] [stderr] Downloaded d3d12 v0.7.0 [INFO] [stderr] Downloaded xml-rs v0.8.19 [INFO] [stderr] Downloaded gpu-allocator v0.23.0 [INFO] [stderr] Downloaded widestring v1.0.2 [INFO] [stderr] Downloaded wgpu v0.18.0 [INFO] [stderr] Downloaded wayland-protocols v0.31.2 [INFO] [stderr] Downloaded smithay-client-toolkit v0.18.1 [INFO] [stderr] Downloaded wgpu-types v0.18.0 [INFO] [stderr] Downloaded sctk-adwaita v0.8.1 [INFO] [stderr] Downloaded objc-sys v0.3.3 [INFO] [stderr] Downloaded serde v1.0.198 [INFO] [stderr] Downloaded wgpu-core v0.18.1 [INFO] [stderr] Downloaded wgpu-hal v0.18.1 [INFO] [stderr] Downloaded wayland-backend v0.3.3 [INFO] [stderr] Downloaded wayland-client v0.31.2 [INFO] [stderr] Downloaded rustix v0.38.31 [INFO] [stderr] Downloaded raw-window-handle v0.6.1 [INFO] [stderr] Downloaded wayland-scanner v0.31.1 [INFO] [stderr] Downloaded naga v0.14.2 [INFO] [stderr] Downloaded windows v0.51.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08469d03212f89227da2718f76d6d6e3ca81f1848cc521a03046771cac96f16d [INFO] running `Command { std: "docker" "start" "-a" "08469d03212f89227da2718f76d6d6e3ca81f1848cc521a03046771cac96f16d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08469d03212f89227da2718f76d6d6e3ca81f1848cc521a03046771cac96f16d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08469d03212f89227da2718f76d6d6e3ca81f1848cc521a03046771cac96f16d", kill_on_drop: false }` [INFO] [stdout] 08469d03212f89227da2718f76d6d6e3ca81f1848cc521a03046771cac96f16d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd0cc9a389b746b39cfb12dacf771a6882580a8737bc3fcdc758320d764da284 [INFO] running `Command { std: "docker" "start" "-a" "fd0cc9a389b746b39cfb12dacf771a6882580a8737bc3fcdc758320d764da284", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling libloading v0.8.1 [INFO] [stderr] Compiling rustix v0.38.31 [INFO] [stderr] Compiling pkg-config v0.3.29 [INFO] [stderr] Compiling linux-raw-sys v0.4.13 [INFO] [stderr] Compiling smallvec v1.12.0 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling xkeysym v0.2.0 [INFO] [stderr] Compiling cursor-icon v1.1.0 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling xcursor v0.3.5 [INFO] [stderr] Compiling gpu-alloc v0.6.0 [INFO] [stderr] Compiling wgpu-types v0.18.0 [INFO] [stderr] Compiling renderdoc-sys v1.0.0 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling wayland-sys v0.31.1 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling profiling v1.0.13 [INFO] [stderr] Compiling glow v0.13.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling wayland-scanner v0.31.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling wayland-backend v0.3.3 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling x11rb-protocol v0.13.0 [INFO] [stderr] Compiling as-raw-xcb-connection v1.0.1 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling smol_str v0.2.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling raw-window-handle v0.6.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pollster v0.3.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling bytemuck_derive v1.6.0 [INFO] [stderr] Compiling owned_ttf_parser v0.20.0 [INFO] [stderr] Compiling ab_glyph v0.2.23 [INFO] [stderr] Compiling bytemuck v1.15.0 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [INFO] [stderr] Compiling naga v0.14.2 [INFO] [stderr] Compiling tiny-skia v0.11.4 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling polling v3.7.0 [INFO] [stderr] Compiling is-terminal v0.4.10 [INFO] [stderr] Compiling env_logger v0.10.1 [INFO] [stderr] Compiling calloop v0.12.4 [INFO] [stderr] Compiling wayland-client v0.31.2 [INFO] [stderr] Compiling wayland-csd-frame v0.3.0 [INFO] [stderr] Compiling wayland-protocols v0.31.2 [INFO] [stderr] Compiling wayland-cursor v0.31.1 [INFO] [stderr] Compiling calloop-wayland-source v0.2.0 [INFO] [stderr] Compiling wgpu-hal v0.18.1 [INFO] [stderr] Compiling wayland-protocols-wlr v0.2.0 [INFO] [stderr] Compiling wayland-protocols-plasma v0.2.0 [INFO] [stderr] Compiling wgpu-core v0.18.1 [INFO] [stderr] Compiling sctk-adwaita v0.8.1 [INFO] [stderr] Compiling x11rb v0.13.0 [INFO] [stderr] Compiling wgpu v0.18.0 [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `row` is assigned to, but never used [INFO] [stdout] --> src/game.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | let mut row = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_row` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row` is never read [INFO] [stdout] --> src/game.rs:330:17 [INFO] [stdout] | [INFO] [stdout] 330 | row += 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win_width` [INFO] [stdout] --> src/shader.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn square_for_pos(win_width: f32, win_height: f32, x: f32, y: f32, size: f32) -> [f32; 12] { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_win_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win_height` [INFO] [stdout] --> src/shader.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn square_for_pos(win_width: f32, win_height: f32, x: f32, y: f32, size: f32) -> [f32; 12] { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_win_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `window_resolution`, `snake_color`, `bg_color`, `food_color`, `colors_buffer`, and `resolution_buffer` are never read [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Uniforms { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 15 | window_resolution: [f32; 2], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | snake_color: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bg_color: [f32; 3], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | food_color: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | colors_buffer: wgpu::Buffer, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | resolution_buffer: wgpu::Buffer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `board_size` is never read [INFO] [stdout] --> src/game.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | board_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/shader.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/shader.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[repr(C)] [INFO] [stdout] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 3 | | pub struct Vertex { [INFO] [stdout] 4 | | pub position: [f32; 2], [INFO] [stdout] 5 | | pub coloridx: u32, // index into color uniforms [INFO] [stdout] 6 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 33s [INFO] running `Command { std: "docker" "inspect" "fd0cc9a389b746b39cfb12dacf771a6882580a8737bc3fcdc758320d764da284", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd0cc9a389b746b39cfb12dacf771a6882580a8737bc3fcdc758320d764da284", kill_on_drop: false }` [INFO] [stdout] fd0cc9a389b746b39cfb12dacf771a6882580a8737bc3fcdc758320d764da284 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c27222a7f2ac55229c9ba6022c51367b596ab0b4e555cf0c9890c9933dc569bb [INFO] running `Command { std: "docker" "start" "-a" "c27222a7f2ac55229c9ba6022c51367b596ab0b4e555cf0c9890c9933dc569bb", kill_on_drop: false }` [INFO] [stderr] Compiling snake v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable `row` is assigned to, but never used [INFO] [stdout] --> src/game.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 278 | let mut row = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_row` instead [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `row` is never read [INFO] [stdout] --> src/game.rs:330:17 [INFO] [stdout] | [INFO] [stdout] 330 | row += 1; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win_width` [INFO] [stdout] --> src/shader.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn square_for_pos(win_width: f32, win_height: f32, x: f32, y: f32, size: f32) -> [f32; 12] { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_win_width` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `win_height` [INFO] [stdout] --> src/shader.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn square_for_pos(win_width: f32, win_height: f32, x: f32, y: f32, size: f32) -> [f32; 12] { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_win_height` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `window_resolution`, `snake_color`, `bg_color`, `food_color`, `colors_buffer`, and `resolution_buffer` are never read [INFO] [stdout] --> src/main.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct Uniforms { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 15 | window_resolution: [f32; 2], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 16 | snake_color: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | bg_color: [f32; 3], [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 18 | food_color: [f32; 3], [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 19 | [INFO] [stdout] 20 | colors_buffer: wgpu::Buffer, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 21 | resolution_buffer: wgpu::Buffer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `board_size` is never read [INFO] [stdout] --> src/game.rs:43:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Game { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 43 | board_size: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/shader.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ^^^^^^ field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check` is never used [INFO] [stdout] --> src/shader.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / #[repr(C)] [INFO] [stdout] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stdout] 3 | | pub struct Vertex { [INFO] [stdout] 4 | | pub position: [f32; 2], [INFO] [stdout] 5 | | pub coloridx: u32, // index into color uniforms [INFO] [stdout] 6 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.36s [INFO] running `Command { std: "docker" "inspect" "c27222a7f2ac55229c9ba6022c51367b596ab0b4e555cf0c9890c9933dc569bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c27222a7f2ac55229c9ba6022c51367b596ab0b4e555cf0c9890c9933dc569bb", kill_on_drop: false }` [INFO] [stdout] c27222a7f2ac55229c9ba6022c51367b596ab0b4e555cf0c9890c9933dc569bb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+d933cf483edf1605142ac6899ff32536c0ad8b22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e7afd84d041a3c59da907a204bc8c58f3753572c9e9206d568ddad2baf7cd3ec [INFO] running `Command { std: "docker" "start" "-a" "e7afd84d041a3c59da907a204bc8c58f3753572c9e9206d568ddad2baf7cd3ec", kill_on_drop: false }` [INFO] [stderr] warning: variable `row` is assigned to, but never used [INFO] [stderr] --> src/game.rs:278:13 [INFO] [stderr] | [INFO] [stderr] 278 | let mut row = 0; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: consider using `_row` instead [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `row` is never read [INFO] [stderr] --> src/game.rs:330:17 [INFO] [stderr] | [INFO] [stderr] 330 | row += 1; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `win_width` [INFO] [stderr] --> src/shader.rs:34:23 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn square_for_pos(win_width: f32, win_height: f32, x: f32, y: f32, size: f32) -> [f32; 12] { [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_win_width` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `win_height` [INFO] [stderr] --> src/shader.rs:34:39 [INFO] [stderr] | [INFO] [stderr] 34 | pub fn square_for_pos(win_width: f32, win_height: f32, x: f32, y: f32, size: f32) -> [f32; 12] { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_win_height` [INFO] [stderr] [INFO] [stderr] warning: fields `window_resolution`, `snake_color`, `bg_color`, `food_color`, `colors_buffer`, and `resolution_buffer` are never read [INFO] [stderr] --> src/main.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 14 | struct Uniforms { [INFO] [stderr] | -------- fields in this struct [INFO] [stderr] 15 | window_resolution: [f32; 2], [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] 16 | snake_color: [f32; 3], [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] 17 | bg_color: [f32; 3], [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 18 | food_color: [f32; 3], [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] 19 | [INFO] [stderr] 20 | colors_buffer: wgpu::Buffer, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] 21 | resolution_buffer: wgpu::Buffer, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `board_size` is never read [INFO] [stderr] --> src/game.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct Game { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 43 | board_size: usize, [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/shader.rs:3:12 [INFO] [stderr] | [INFO] [stderr] 3 | pub struct Vertex { [INFO] [stderr] | ^^^^^^ field in this struct [INFO] [stderr] | [INFO] [stderr] = help: consider removing this field [INFO] [stderr] [INFO] [stderr] warning: function `check` is never used [INFO] [stderr] --> src/shader.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | / #[repr(C)] [INFO] [stderr] 2 | | #[derive(Copy, Clone, Debug, bytemuck::Pod, bytemuck::Zeroable)] [INFO] [stderr] 3 | | pub struct Vertex { [INFO] [stderr] 4 | | pub position: [f32; 2], [INFO] [stderr] 5 | | pub coloridx: u32, // index into color uniforms [INFO] [stderr] 6 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: `snake` (bin "snake" test) generated 8 warnings (run `cargo fix --bin "snake" -p snake --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/snake-c0f28d500477471c) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test game::tests::board_initializes_properly ... ok [INFO] [stdout] test game::tests::snake_eats_food_properly_when_small_len ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- game::tests::snake_eats_food_properly_when_small_len stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'game::tests::snake_eats_food_properly_when_small_len' (26) panicked at src/game.rs:384:16: [INFO] [stdout] attempt to subtract with overflow [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x644dff7846da - std[69d51b4813ba037]::backtrace_rs::backtrace::libunwind::trace [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x644dff7846da - std[69d51b4813ba037]::backtrace_rs::backtrace::trace_unsynchronized:: [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x644dff7846da - std[69d51b4813ba037]::sys::backtrace::_print_fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:74:9 [INFO] [stdout] 3: 0x644dff7846da - <::print::DisplayBacktrace as core[51d4adbef590f61]::fmt::Display>::fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:44:26 [INFO] [stdout] 4: 0x644dff798a1a - ::fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/fmt/rt.rs:152:76 [INFO] [stdout] 5: 0x644dff798a1a - core[51d4adbef590f61]::fmt::write [INFO] [stdout] 6: 0x644dff788f62 - std[69d51b4813ba037]::io::default_write_fmt::> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x644dff788f62 - as std[69d51b4813ba037]::io::Write>::write_fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/io/mod.rs:1994:13 [INFO] [stdout] 8: 0x644dff7638ef - ::print [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:47:9 [INFO] [stdout] 9: 0x644dff7638ef - std[69d51b4813ba037]::panicking::default_hook::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:292:27 [INFO] [stdout] 10: 0x644dff77cc99 - std[69d51b4813ba037]::panicking::default_hook [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:316:9 [INFO] [stdout] 11: 0x644dff6ded5c - core[51d4adbef590f61]::ops::function::Fn<(&'a std[69d51b4813ba037]::panic::PanicHookInfo<'b>,), Output = ()> + core[51d4adbef590f61]::marker::Sync + core[51d4adbef590f61]::marker::Send> as core[51d4adbef590f61]::ops::function::Fn<(&std[69d51b4813ba037]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 12: 0x644dff6ded5c - test[8fe65b9e05bf4c74]::test_main_with_exit_callback::::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x644dff77ce52 - core[51d4adbef590f61]::ops::function::Fn<(&'a std[69d51b4813ba037]::panic::PanicHookInfo<'b>,), Output = ()> + core[51d4adbef590f61]::marker::Sync + core[51d4adbef590f61]::marker::Send> as core[51d4adbef590f61]::ops::function::Fn<(&std[69d51b4813ba037]::panic::PanicHookInfo,)>>::call [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/alloc/src/boxed.rs:2254:9 [INFO] [stdout] 14: 0x644dff77ce52 - std[69d51b4813ba037]::panicking::panic_with_hook [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:833:13 [INFO] [stdout] 15: 0x644dff7639da - std[69d51b4813ba037]::panicking::panic_handler::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:691:13 [INFO] [stdout] 16: 0x644dff75b349 - std[69d51b4813ba037]::sys::backtrace::__rust_end_short_backtrace:: [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:182:18 [INFO] [stdout] 17: 0x644dff7646bd - __rustc[cb16bc19fc993bd7]::rust_begin_unwind [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:689:5 [INFO] [stdout] 18: 0x644dff79928c - core[51d4adbef590f61]::panicking::panic_fmt [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panicking.rs:80:14 [INFO] [stdout] 19: 0x644dff79a2f9 - core[51d4adbef590f61]::panicking::panic_const::panic_const_sub_overflow [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panicking.rs:175:17 [INFO] [stdout] 20: 0x644dff6d1790 - snake[80fab3b1a4642537]::game::tests::snake_eats_food_properly_when_small_len [INFO] [stdout] at /opt/rustwide/workdir/src/game.rs:384:16 [INFO] [stdout] 21: 0x644dff6cf6d7 - snake[80fab3b1a4642537]::game::tests::snake_eats_food_properly_when_small_len::{closure#0} [INFO] [stdout] at /opt/rustwide/workdir/src/game.rs:377:49 [INFO] [stdout] 22: 0x644dff6d2c66 - >::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x644dff6d2e3b - core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String> as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x644dff6d2e3b - test[8fe65b9e05bf4c74]::__rust_begin_short_backtrace::, fn() -> core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:663:18 [INFO] [stdout] 25: 0x644dff6df82b - test[8fe65b9e05bf4c74]::run_test_in_process::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:686:74 [INFO] [stdout] 26: 0x644dff6df82b - as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 27: 0x644dff6df82b - std[69d51b4813ba037]::panicking::catch_unwind::do_call::, core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:581:40 [INFO] [stdout] 28: 0x644dff6df82b - std[69d51b4813ba037]::panicking::catch_unwind::, core[51d4adbef590f61]::panic::unwind_safe::AssertUnwindSafe> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:544:19 [INFO] [stdout] 29: 0x644dff6df82b - std[69d51b4813ba037]::panic::catch_unwind::, core[51d4adbef590f61]::result::Result<(), alloc[18203fec9a0cd4ec]::string::String>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panic.rs:359:14 [INFO] [stdout] 30: 0x644dff6df82b - test[8fe65b9e05bf4c74]::run_test_in_process [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:686:27 [INFO] [stdout] 31: 0x644dff6df82b - test[8fe65b9e05bf4c74]::run_test::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:607:43 [INFO] [stdout] 32: 0x644dff6daf44 - test[8fe65b9e05bf4c74]::run_test::{closure#1} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/test/src/lib.rs:637:41 [INFO] [stdout] 33: 0x644dff6daf44 - std[69d51b4813ba037]::sys::backtrace::__rust_begin_short_backtrace:: [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/backtrace.rs:166:18 [INFO] [stdout] 34: 0x644dff6e2432 - std[69d51b4813ba037]::thread::lifecycle::spawn_unchecked::::{closure#1}::{closure#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/thread/lifecycle.rs:91:13 [INFO] [stdout] 35: 0x644dff6e2432 - ::{closure#1}::{closure#0}> as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/panic/unwind_safe.rs:274:9 [INFO] [stdout] 36: 0x644dff6e2432 - std[69d51b4813ba037]::panicking::catch_unwind::do_call::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:581:40 [INFO] [stdout] 37: 0x644dff6e2432 - std[69d51b4813ba037]::panicking::catch_unwind::<(), core[51d4adbef590f61]::panic::unwind_safe::AssertUnwindSafe::{closure#1}::{closure#0}>> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panicking.rs:544:19 [INFO] [stdout] 38: 0x644dff6e2432 - std[69d51b4813ba037]::panic::catch_unwind::::{closure#1}::{closure#0}>, ()> [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/panic.rs:359:14 [INFO] [stdout] 39: 0x644dff6e2432 - std[69d51b4813ba037]::thread::lifecycle::spawn_unchecked::::{closure#1} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/thread/lifecycle.rs:89:26 [INFO] [stdout] 40: 0x644dff6e2432 - ::{closure#1} as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 41: 0x644dff783fef - + core[51d4adbef590f61]::marker::Send> as core[51d4adbef590f61]::ops::function::FnOnce<()>>::call_once [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/alloc/src/boxed.rs:2240:9 [INFO] [stdout] 42: 0x644dff783fef - ::new::thread_start [INFO] [stdout] at /rustc/d933cf483edf1605142ac6899ff32536c0ad8b22/library/std/src/sys/thread/unix.rs:118:17 [INFO] [stdout] 43: 0x78dc636b5aa4 - [INFO] [stdout] 44: 0x78dc63742a64 - clone [INFO] [stdout] 45: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] game::tests::snake_eats_food_properly_when_small_len [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.11s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin snake` [INFO] running `Command { std: "docker" "inspect" "e7afd84d041a3c59da907a204bc8c58f3753572c9e9206d568ddad2baf7cd3ec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7afd84d041a3c59da907a204bc8c58f3753572c9e9206d568ddad2baf7cd3ec", kill_on_drop: false }` [INFO] [stdout] e7afd84d041a3c59da907a204bc8c58f3753572c9e9206d568ddad2baf7cd3ec