[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#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsmolck%2Fsnake-rs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/smolck/snake-rs on toolchain 1ef7943ee607160a564655b6596f83670ef95df5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pkg-config v0.3.29 [INFO] [stderr] Downloaded sctk-adwaita v0.8.1 [INFO] [stderr] Downloaded wayland-cursor v0.31.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1d6b1b4549bebe9a53e82dfa860d6dbc95d8af8aa1cdfe0b89215cf2908c8c7e [INFO] running `Command { std: "docker" "start" "-a" "1d6b1b4549bebe9a53e82dfa860d6dbc95d8af8aa1cdfe0b89215cf2908c8c7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d6b1b4549bebe9a53e82dfa860d6dbc95d8af8aa1cdfe0b89215cf2908c8c7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d6b1b4549bebe9a53e82dfa860d6dbc95d8af8aa1cdfe0b89215cf2908c8c7e", kill_on_drop: false }` [INFO] [stdout] 1d6b1b4549bebe9a53e82dfa860d6dbc95d8af8aa1cdfe0b89215cf2908c8c7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8fdb66aa7c55d09b9ca6f5b2d482fef363e04dd1be3f05284161deac6949184d [INFO] running `Command { std: "docker" "start" "-a" "8fdb66aa7c55d09b9ca6f5b2d482fef363e04dd1be3f05284161deac6949184d", kill_on_drop: false }` [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 memchr v2.7.1 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling ahash v0.8.7 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling allocator-api2 v0.2.16 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling xkeysym v0.2.0 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling xcursor v0.3.5 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling cursor-icon v1.1.0 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling arrayref v0.3.7 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling ttf-parser v0.20.0 [INFO] [stderr] Compiling quick-xml v0.31.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.18.1 [INFO] [stderr] Compiling gpu-alloc v0.6.0 [INFO] [stderr] Compiling wayland-sys v0.31.1 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling wgpu-types v0.18.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling glow v0.13.0 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling memmap2 v0.9.4 [INFO] [stderr] Compiling khronos-egl v6.0.0 [INFO] [stderr] Compiling profiling v1.0.13 [INFO] [stderr] Compiling renderdoc-sys v1.0.0 [INFO] [stderr] Compiling wayland-scanner v0.31.1 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling winit v0.29.15 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling wayland-backend v0.3.3 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling x11rb-protocol v0.13.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling as-raw-xcb-connection v1.0.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling xkbcommon-dl v0.4.2 [INFO] [stderr] Compiling flume v0.11.0 [INFO] [stderr] Compiling raw-window-handle v0.6.1 [INFO] [stderr] Compiling smol_str v0.2.1 [INFO] [stderr] Compiling owned_ttf_parser v0.20.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling indexmap v2.1.0 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling ab_glyph v0.2.23 [INFO] [stderr] Compiling pollster v0.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling bytemuck_derive v1.6.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling naga v0.14.2 [INFO] [stderr] Compiling bytemuck v1.15.0 [INFO] [stderr] Compiling tiny-skia-path v0.11.4 [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: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 48.60s [INFO] running `Command { std: "docker" "inspect" "8fdb66aa7c55d09b9ca6f5b2d482fef363e04dd1be3f05284161deac6949184d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8fdb66aa7c55d09b9ca6f5b2d482fef363e04dd1be3f05284161deac6949184d", kill_on_drop: false }` [INFO] [stdout] 8fdb66aa7c55d09b9ca6f5b2d482fef363e04dd1be3f05284161deac6949184d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2547d1e170b08b7c69d95c23cb4b4b37caf01168c61eb1415787093446759c45 [INFO] running `Command { std: "docker" "start" "-a" "2547d1e170b08b7c69d95c23cb4b4b37caf01168c61eb1415787093446759c45", 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" "2547d1e170b08b7c69d95c23cb4b4b37caf01168c61eb1415787093446759c45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2547d1e170b08b7c69d95c23cb4b4b37caf01168c61eb1415787093446759c45", kill_on_drop: false }` [INFO] [stdout] 2547d1e170b08b7c69d95c23cb4b4b37caf01168c61eb1415787093446759c45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] aab7d35d58fb4ae2ee2c95ae44780b0abbc8fb67028b9cf749f0adde7980610c [INFO] running `Command { std: "docker" "start" "-a" "aab7d35d58fb4ae2ee2c95ae44780b0abbc8fb67028b9cf749f0adde7980610c", 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.29s [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 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "aab7d35d58fb4ae2ee2c95ae44780b0abbc8fb67028b9cf749f0adde7980610c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aab7d35d58fb4ae2ee2c95ae44780b0abbc8fb67028b9cf749f0adde7980610c", kill_on_drop: false }` [INFO] [stdout] aab7d35d58fb4ae2ee2c95ae44780b0abbc8fb67028b9cf749f0adde7980610c