[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#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628-retry-2 [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 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wayland-scanner v0.31.1 [INFO] [stderr] Downloaded wayland-cursor v0.31.1 [INFO] [stderr] Downloaded raw-window-handle v0.5.2 [INFO] [stderr] Downloaded d3d12 v0.7.0 [INFO] [stderr] Downloaded is-terminal v0.4.10 [INFO] [stderr] Downloaded pollster v0.3.0 [INFO] [stderr] Downloaded objc-sys v0.3.3 [INFO] [stderr] Downloaded hassle-rs v0.10.0 [INFO] [stderr] Downloaded env_logger v0.10.1 [INFO] [stderr] Downloaded wayland-client v0.31.2 [INFO] [stderr] Downloaded polling v3.7.0 [INFO] [stderr] Downloaded wgpu v0.18.0 [INFO] [stderr] Downloaded smithay-client-toolkit v0.18.1 [INFO] [stderr] Downloaded wayland-protocols v0.31.2 [INFO] [stderr] Downloaded quick-xml v0.31.0 [INFO] [stderr] Downloaded glow v0.13.0 [INFO] [stderr] Downloaded winnow v0.5.34 [INFO] [stderr] Downloaded windows-core v0.51.1 [INFO] [stderr] Downloaded gpu-allocator v0.23.0 [INFO] [stderr] Downloaded regex v1.10.2 [INFO] [stderr] Downloaded wgpu-hal v0.18.1 [INFO] [stderr] Downloaded rustix v0.38.31 [INFO] [stderr] Downloaded android-activity v0.5.2 [INFO] [stderr] Downloaded wgpu-core v0.18.1 [INFO] [stderr] Downloaded wgpu-types v0.18.0 [INFO] [stderr] Downloaded wayland-backend v0.3.3 [INFO] [stderr] Downloaded proc-macro2 v1.0.76 [INFO] [stderr] Downloaded spirv v0.2.0+1.5.4 [INFO] [stderr] Downloaded bytemuck v1.15.0 [INFO] [stderr] Downloaded raw-window-handle v0.6.1 [INFO] [stderr] Downloaded com-rs v0.2.1 [INFO] [stderr] Downloaded bytemuck_derive v1.6.0 [INFO] [stderr] Downloaded naga v0.14.2 [INFO] [stderr] Downloaded winit v0.29.15 [INFO] [stderr] Downloaded regex-automata v0.4.3 [INFO] [stderr] Downloaded web-sys v0.3.64 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb32cb970beb0e8115537efdb62b4a9ff26803c84248485b92ebfecc6cc36dc3 [INFO] running `Command { std: "docker" "start" "-a" "cb32cb970beb0e8115537efdb62b4a9ff26803c84248485b92ebfecc6cc36dc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb32cb970beb0e8115537efdb62b4a9ff26803c84248485b92ebfecc6cc36dc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb32cb970beb0e8115537efdb62b4a9ff26803c84248485b92ebfecc6cc36dc3", kill_on_drop: false }` [INFO] [stdout] cb32cb970beb0e8115537efdb62b4a9ff26803c84248485b92ebfecc6cc36dc3 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1b5abe1d4feea9f3da277dde2df13e3e859c55e14233f6d30db42e18f48f0850 [INFO] running `Command { std: "docker" "start" "-a" "1b5abe1d4feea9f3da277dde2df13e3e859c55e14233f6d30db42e18f48f0850", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling libc v0.2.152 [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling autocfg v1.1.0 [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 memchr v2.7.1 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling wayland-sys v0.31.1 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling xkeysym v0.2.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling cursor-icon v1.1.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling xcursor v0.3.5 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stderr] Compiling gpu-alloc v0.6.0 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling wayland-scanner v0.31.1 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling wgpu-types v0.18.0 [INFO] [stderr] Compiling glow v0.13.0 [INFO] [stderr] Compiling renderdoc-sys v1.0.0 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling profiling v1.0.13 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling wayland-backend v0.3.3 [INFO] [stderr] Compiling x11rb-protocol v0.13.0 [INFO] [stderr] Compiling as-raw-xcb-connection v1.0.1 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling smol_str v0.2.1 [INFO] [stderr] Compiling raw-window-handle v0.6.1 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling pollster v0.3.0 [INFO] [stderr] Compiling owned_ttf_parser v0.20.0 [INFO] [stderr] Compiling ab_glyph v0.2.23 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling bytemuck_derive v1.6.0 [INFO] [stderr] Compiling bytemuck v1.15.0 [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 x11rb v0.13.0 [INFO] [stderr] Compiling sctk-adwaita v0.8.1 [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:17 [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: 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 22s [INFO] running `Command { std: "docker" "inspect" "1b5abe1d4feea9f3da277dde2df13e3e859c55e14233f6d30db42e18f48f0850", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b5abe1d4feea9f3da277dde2df13e3e859c55e14233f6d30db42e18f48f0850", kill_on_drop: false }` [INFO] [stdout] 1b5abe1d4feea9f3da277dde2df13e3e859c55e14233f6d30db42e18f48f0850 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50bfbfcc0aeb439a5aa95b72ed49cb3177887f8c5564359661069c2f8c59922d [INFO] running `Command { std: "docker" "start" "-a" "50bfbfcc0aeb439a5aa95b72ed49cb3177887f8c5564359661069c2f8c59922d", 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:17 [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: 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.37s [INFO] running `Command { std: "docker" "inspect" "50bfbfcc0aeb439a5aa95b72ed49cb3177887f8c5564359661069c2f8c59922d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50bfbfcc0aeb439a5aa95b72ed49cb3177887f8c5564359661069c2f8c59922d", kill_on_drop: false }` [INFO] [stdout] 50bfbfcc0aeb439a5aa95b72ed49cb3177887f8c5564359661069c2f8c59922d [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6af5e1ab5423ddb082e65da96c8743f7b6821ff14c3454e32e2d16c47c16925c [INFO] running `Command { std: "docker" "start" "-a" "6af5e1ab5423ddb082e65da96c8743f7b6821ff14c3454e32e2d16c47c16925c", kill_on_drop: false }` [INFO] [stderr] warning: variable `row` is assigned to, but never used [INFO] [stderr] --> src/game.rs:278:17 [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: 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 7 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/snake-7194d2239a68ef8c) [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:393:9: [INFO] [stdout] assertion `left != right` failed [INFO] [stdout] left: 7 [INFO] [stdout] right: 7 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x568db84e3072 - std::backtrace_rs::backtrace::libunwind::trace::hf3086ff3c8ddfec7 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x568db84e3072 - std::backtrace_rs::backtrace::trace_unsynchronized::h6caf11542219ebc3 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x568db84e3072 - std::sys::backtrace::_print_fmt::hfd9f352edf0ef63b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x568db84e3072 - ::fmt::h746cb25d4c2f20bf [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x568db84f393f - core::fmt::rt::Argument::fmt::h7e560d1a4260d0bd [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x568db84f393f - core::fmt::write::h51c104753c8435b2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x568db84b07d3 - std::io::default_write_fmt::h7681766be9629d2f [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x568db84b07d3 - std::io::Write::write_fmt::h41771a141bf0adb2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x568db84bc7f2 - std::sys::backtrace::BacktraceLock::print::heee726a1c5b4a2c3 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x568db84c11ef - std::panicking::default_hook::{{closure}}::h938489fbb79d30ee [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x568db84c1081 - std::panicking::default_hook::hf7e155db98319366 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:325:9 [INFO] [stdout] 11: 0x568db8445dee - as core::ops::function::Fn>::call::h8041688d09537997 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 12: 0x568db8445dee - test::test_main_with_exit_callback::{{closure}}::hc8a7ea1f38432726 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x568db84c188e - as core::ops::function::Fn>::call::h688488cd0fff9b17 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1999:9 [INFO] [stdout] 14: 0x568db84c188e - std::panicking::panic_with_hook::h78bb7329978b77c8 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:842:13 [INFO] [stdout] 15: 0x568db84c165a - std::panicking::panic_handler::{{closure}}::h306ab6080b8e304c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:707:13 [INFO] [stdout] 16: 0x568db84bc929 - std::sys::backtrace::__rust_end_short_backtrace::hab10906eec9c5584 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x568db84a4c9d - __rustc[31cdaa5515be9d95]::rust_begin_unwind [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:698:5 [INFO] [stdout] 18: 0x568db84fb3b0 - core::panicking::panic_fmt::h8cb2938d8e2b0e7b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x568db84fb1b3 - core::panicking::assert_failed_inner::h2f80963f12b08acb [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:439:17 [INFO] [stdout] 20: 0x568db84faff7 - core::panicking::assert_failed::h97ec267b603d1e5a [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panicking.rs:394:5 [INFO] [stdout] 21: 0x568db8423f67 - snake::game::tests::snake_eats_food_properly_when_small_len::h643519aff931a5a6 [INFO] [stdout] at /opt/rustwide/workdir/src/game.rs:393:9 [INFO] [stdout] 22: 0x568db84241f7 - snake::game::tests::snake_eats_food_properly_when_small_len::{{closure}}::haaed4c55c63544af [INFO] [stdout] at /opt/rustwide/workdir/src/game.rs:377:49 [INFO] [stdout] 23: 0x568db841fe26 - core::ops::function::FnOnce::call_once::h7c7d3bd425b16240 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x568db8445bab - core::ops::function::FnOnce::call_once::ha1081c2f5558e6c0 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 25: 0x568db8445bab - test::__rust_begin_short_backtrace::h42034e8abb013a4c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:663:18 [INFO] [stdout] 26: 0x568db845b6b5 - test::run_test_in_process::{{closure}}::hf6d2134f58bf7650 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:686:74 [INFO] [stdout] 27: 0x568db845b6b5 - as core::ops::function::FnOnce<()>>::call_once::hecbf148a08d929b4 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x568db845b6b5 - std::panicking::catch_unwind::do_call::hdd8f84f296c52439 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:590:40 [INFO] [stdout] 29: 0x568db845b6b5 - std::panicking::catch_unwind::h3fd77bcad74bf69c [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:553:19 [INFO] [stdout] 30: 0x568db845b6b5 - std::panic::catch_unwind::h512ad17f65705767 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x568db845b6b5 - test::run_test_in_process::h2b79c7cc828fafad [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:686:27 [INFO] [stdout] 32: 0x568db845b6b5 - test::run_test::{{closure}}::hc287323e9e7aa380 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:607:43 [INFO] [stdout] 33: 0x568db8432084 - test::run_test::{{closure}}::h26852bc3095664f0 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/test/src/lib.rs:637:41 [INFO] [stdout] 34: 0x568db8432084 - std::sys::backtrace::__rust_begin_short_backtrace::he88c7ba58706034f [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x568db84358ba - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hff63832735ca5300 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x568db84358ba - as core::ops::function::FnOnce<()>>::call_once::h5618784f23b8bacb [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x568db84358ba - std::panicking::catch_unwind::do_call::hd103d0697f7d2f72 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:590:40 [INFO] [stdout] 38: 0x568db84358ba - std::panicking::catch_unwind::h947b18413ee60fc2 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panicking.rs:553:19 [INFO] [stdout] 39: 0x568db84358ba - std::panic::catch_unwind::h51f47dbca8916fbf [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x568db84358ba - std::thread::Builder::spawn_unchecked_::{{closure}}::h92bd4fc7ba1a8896 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x568db84358ba - core::ops::function::FnOnce::call_once{{vtable.shim}}::h1edf6ba5edb7a202 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 42: 0x568db84b6baf - as core::ops::function::FnOnce>::call_once::h6765fcdde4c5daa4 [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 43: 0x568db84b6baf - std::sys::pal::unix::thread::Thread::new::thread_start::h448c4dadc391362b [INFO] [stdout] at /rustc/160e7623e8cbbf1feab2b6e2a24733a98c7bde9c/library/std/src/sys/pal/unix/thread.rs:118:17 [INFO] [stdout] 44: 0x7b0e48ee6aa4 - [INFO] [stdout] 45: 0x7b0e48f73a34 - clone [INFO] [stdout] 46: 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.18s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin snake` [INFO] running `Command { std: "docker" "inspect" "6af5e1ab5423ddb082e65da96c8743f7b6821ff14c3454e32e2d16c47c16925c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6af5e1ab5423ddb082e65da96c8743f7b6821ff14c3454e32e2d16c47c16925c", kill_on_drop: false }` [INFO] [stdout] 6af5e1ab5423ddb082e65da96c8743f7b6821ff14c3454e32e2d16c47c16925c