[INFO] cloning repository https://github.com/ARez2/FallingRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ARez2/FallingRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FARez2%2FFallingRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FARez2%2FFallingRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 92f6bc2acaecbf66bc9a62cda44a3b5a528ccea5 [INFO] testing ARez2/FallingRust against beta-2025-09-21 for beta-1.91-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FARez2%2FFallingRust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ARez2/FallingRust [INFO] finished tweaking git repo https://github.com/ARez2/FallingRust [INFO] tweaked toml for git repo https://github.com/ARez2/FallingRust written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ARez2/FallingRust on toolchain beta-2025-09-21 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ARez2/FallingRust 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" "+beta-2025-09-21" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc0f4c5a2d3d0f4a3c6f16d5da79d039255d31eecac4a0f57cfb1a7718b5de78 [INFO] running `Command { std: "docker" "start" "-a" "fc0f4c5a2d3d0f4a3c6f16d5da79d039255d31eecac4a0f57cfb1a7718b5de78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc0f4c5a2d3d0f4a3c6f16d5da79d039255d31eecac4a0f57cfb1a7718b5de78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc0f4c5a2d3d0f4a3c6f16d5da79d039255d31eecac4a0f57cfb1a7718b5de78", kill_on_drop: false }` [INFO] [stdout] fc0f4c5a2d3d0f4a3c6f16d5da79d039255d31eecac4a0f57cfb1a7718b5de78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cd1735ea8d6799cfc6211e15d20921a5f0fc9c129cb39d8d48392bd7e5861de [INFO] running `Command { std: "docker" "start" "-a" "6cd1735ea8d6799cfc6211e15d20921a5f0fc9c129cb39d8d48392bd7e5861de", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling proc-macro2 v1.0.49 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling quote v1.0.23 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling thiserror v1.0.38 [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Compiling xml-rs v0.8.4 [INFO] [stderr] Compiling parking_lot_core v0.9.5 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling cmake v0.1.49 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling expat-sys v2.1.6 [INFO] [stderr] Compiling cty v0.2.2 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling slotmap v1.0.6 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling downcast-rs v1.2.0 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling nom v7.1.1 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling raw-window-handle v0.5.0 [INFO] [stderr] Compiling servo-fontconfig-sys v5.1.0 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.0 [INFO] [stderr] Compiling ash v0.37.1+1.3.235 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling unicode-width v0.1.10 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling xcursor v0.3.4 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling png v0.17.7 [INFO] [stderr] Compiling memmap2 v0.5.8 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling crossfont v0.5.1 [INFO] [stderr] Compiling ahash v0.8.2 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.1 [INFO] [stderr] Compiling gpu-alloc-types v0.2.0 [INFO] [stderr] Compiling arrayref v0.3.6 [INFO] [stderr] Compiling ttf-parser v0.17.1 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling foreign-types-shared v0.3.1 [INFO] [stderr] Compiling rayon-core v1.10.1 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling unicode-xid v0.2.4 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling wgpu-core v0.14.2 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling gpu-alloc v0.5.3 [INFO] [stderr] Compiling gpu-descriptor v0.2.3 [INFO] [stderr] Compiling crossbeam-deque v0.8.2 [INFO] [stderr] Compiling servo-fontconfig v0.5.1 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling freetype-rs v0.26.0 [INFO] [stderr] Compiling crossbeam-channel v0.5.6 [INFO] [stderr] Compiling x11-dl v2.20.1 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling wgpu-types v0.14.1 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.7 [INFO] [stderr] Compiling profiling v1.0.7 [INFO] [stderr] Compiling owned_ttf_parser v0.17.1 [INFO] [stderr] Compiling futures-core v0.3.25 [INFO] [stderr] Compiling arrayvec v0.7.2 [INFO] [stderr] Compiling glow v0.11.2 [INFO] [stderr] Compiling renderdoc-sys v0.7.1 [INFO] [stderr] Compiling io-lifetimes v1.0.3 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling ab_glyph v0.2.18 [INFO] [stderr] Compiling bytemuck_derive v1.3.0 [INFO] [stderr] Compiling thiserror-impl v1.0.38 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling foreign-types-macros v0.2.2 [INFO] [stderr] Compiling bytemuck v1.12.3 [INFO] [stderr] Compiling safe_arch v0.5.2 [INFO] [stderr] Compiling calloop v0.10.5 [INFO] [stderr] Compiling foreign-types v0.5.0 [INFO] [stderr] Compiling naga v0.10.0 [INFO] [stderr] Compiling tiny-skia-path v0.7.0 [INFO] [stderr] Compiling ecolor v0.20.0 [INFO] [stderr] Compiling emath v0.20.0 [INFO] [stderr] Compiling tiny-skia v0.7.0 [INFO] [stderr] Compiling pin-project-internal v1.0.12 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling nohash-hasher v0.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.8 [INFO] [stderr] Compiling pin-project-lite v0.2.9 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling rustix v0.36.6 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling rayon v1.6.1 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling pin-project v1.0.12 [INFO] [stderr] Compiling epaint v0.20.0 [INFO] [stderr] Compiling safe_arch v0.6.0 [INFO] [stderr] Compiling x11rb-protocol v0.10.0 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling nanorand v0.7.0 [INFO] [stderr] Compiling gethostname v0.2.3 [INFO] [stderr] Compiling mio v0.8.5 [INFO] [stderr] Compiling raw-window-handle v0.4.3 [INFO] [stderr] Compiling spin v0.9.4 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling futures-sink v0.3.25 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling rustversion v1.0.11 [INFO] [stderr] Compiling flume v0.10.14 [INFO] [stderr] Compiling jpeg-decoder v0.3.0 [INFO] [stderr] Compiling egui v0.20.1 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling wide v0.7.5 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling half v2.1.0 [INFO] [stderr] Compiling wgpu-hal v0.14.1 [INFO] [stderr] Compiling bit_field v0.10.1 [INFO] [stderr] Compiling anyhow v1.0.68 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling lebe v0.5.2 [INFO] [stderr] Compiling ultraviolet v0.9.0 [INFO] [stderr] Compiling exr v1.5.2 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling x11rb v0.10.1 [INFO] [stderr] Compiling regex v1.7.0 [INFO] [stderr] Compiling arboard v3.2.0 [INFO] [stderr] Compiling is-terminal v0.4.2 [INFO] [stderr] Compiling tiff v0.8.1 [INFO] [stderr] Compiling webbrowser v0.8.2 [INFO] [stderr] Compiling type-map v0.5.0 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling pollster v0.2.5 [INFO] [stderr] Compiling humantime v2.1.0 [INFO] [stderr] Compiling strum_macros v0.24.3 [INFO] [stderr] Compiling image v0.24.5 [INFO] [stderr] Compiling env_logger v0.10.0 [INFO] [stderr] Compiling line_drawing v1.0.0 [INFO] [stderr] Compiling strum v0.24.1 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling randomize v3.0.1 [INFO] [stderr] Compiling glam v0.22.0 [INFO] [stderr] Compiling wgpu v0.14.2 [INFO] [stderr] Compiling egui-wgpu v0.20.0 [INFO] [stderr] Compiling pixels v0.11.0 [INFO] [stderr] Compiling sctk-adwaita v0.4.3 [INFO] [stderr] Compiling smithay-clipboard v0.6.6 [INFO] [stderr] Compiling winit v0.27.5 [INFO] [stderr] Compiling winit_input_helper v0.13.0 [INFO] [stderr] Compiling egui-winit v0.20.1 [INFO] [stderr] Compiling falling_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/cell.rs:6:54 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Material, MaterialType, rand_multiplier, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fastrand::shuffle` [INFO] [stdout] --> src/cellhandler.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use fastrand::shuffle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Assets` and `Rng` [INFO] [stdout] --> src/cellhandler.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Matrix, MaterialType, rand_multiplier, Material, Assets, Cell, Rng, gen_range, RNG}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Assets` [INFO] [stdout] --> src/gui.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Material, Matrix, Assets, UIInfo, ASSETS}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/matrix.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{RwLock, Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/matrix.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{Color, WIDTH, HEIGHT, Rng, ASSETS}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Assets` [INFO] [stdout] --> src/matrix.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{Cell, Assets, Material, Chunk, cell_handler, CHUNK_SIZE, brush::Brush}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/matrix.rs:417:42 [INFO] [stdout] | [INFO] [stdout] 417 | let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stdout] 417 + let chunk = &self.chunks[chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hp_changed` [INFO] [stdout] --> src/cellhandler.rs:20:58 [INFO] [stdout] | [INFO] [stdout] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hp_changed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cellvelocity` [INFO] [stdout] --> src/cellhandler.rs:20:70 [INFO] [stdout] | [INFO] [stdout] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cellvelocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_index` [INFO] [stdout] --> src/cellhandler.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, _chunk_index: usize) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `CHUNK_SIZE` [INFO] [stdout] | [INFO] [stdout] 11 - pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stdout] 11 + pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, CHUNK_SIZE: usize) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bottom` is never read [INFO] [stdout] --> src/cellhandler.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bottom = IVec2::new(0, 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: value assigned to `is_movable_solid` is never read [INFO] [stdout] --> src/cellhandler.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut is_movable_solid = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/material.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => MaterialType::Solid, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/material.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 31 | Material::Empty => MaterialType::Empty, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 32 | Material::Sand => MaterialType::MovableSolid, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 33 | Material::Dirt => MaterialType::MovableSolid, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 34 | Material::Water => MaterialType::Liquid, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 38 | _ => MaterialType::Solid, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED` is never used [INFO] [stdout] --> src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const SEED: u64 = 1234; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CHUNKS_Y` is never used [INFO] [stdout] --> src/matrix.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CHUNKS_Y: usize = (HEIGHT / CHUNK_SIZE as u32) as usize; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAD3` is never used [INFO] [stdout] --> src/renderer.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const PAD3: usize = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/renderer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct LightUniform { [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/renderer.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[repr(C)] [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/renderer.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Locals { [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/renderer.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[repr(C)] [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | return min + unsafe{&mut RNG}.f32() * max; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | return min + unsafe{&raw mut RNG}.f32() * max; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/matrix.rs:186:32 [INFO] [stdout] | [INFO] [stdout] 186 | cell.set_color(unsafe {ASSETS.get_color_for_material(cell.pos, cell.material)}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `texture::Texture` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let start = std::time::SystemTime::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_frames` [INFO] [stdout] --> src/main.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | num_frames += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `view` and `sampler` are never read [INFO] [stdout] --> src/texture.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Texture { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub texture: wgpu::Texture, [INFO] [stdout] 9 | pub view: wgpu::TextureView, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub sampler: wgpu::Sampler, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4m 51s [INFO] running `Command { std: "docker" "inspect" "6cd1735ea8d6799cfc6211e15d20921a5f0fc9c129cb39d8d48392bd7e5861de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cd1735ea8d6799cfc6211e15d20921a5f0fc9c129cb39d8d48392bd7e5861de", kill_on_drop: false }` [INFO] [stdout] 6cd1735ea8d6799cfc6211e15d20921a5f0fc9c129cb39d8d48392bd7e5861de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e0baf720832609390e5865cde6261a1a91cddf6eaaa16dc694d2603f226cd990 [INFO] running `Command { std: "docker" "start" "-a" "e0baf720832609390e5865cde6261a1a91cddf6eaaa16dc694d2603f226cd990", kill_on_drop: false }` [INFO] [stderr] Compiling falling_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/cell.rs:6:54 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Material, MaterialType, rand_multiplier, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fastrand::shuffle` [INFO] [stdout] --> src/cellhandler.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use fastrand::shuffle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Assets` and `Rng` [INFO] [stdout] --> src/cellhandler.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Matrix, MaterialType, rand_multiplier, Material, Assets, Cell, Rng, gen_range, RNG}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Assets` [INFO] [stdout] --> src/gui.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Material, Matrix, Assets, UIInfo, ASSETS}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/matrix.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{RwLock, Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/matrix.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{Color, WIDTH, HEIGHT, Rng, ASSETS}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Assets` [INFO] [stdout] --> src/matrix.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{Cell, Assets, Material, Chunk, cell_handler, CHUNK_SIZE, brush::Brush}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/matrix.rs:417:42 [INFO] [stdout] | [INFO] [stdout] 417 | let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stdout] 417 + let chunk = &self.chunks[chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hp_changed` [INFO] [stdout] --> src/cellhandler.rs:20:58 [INFO] [stdout] | [INFO] [stdout] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hp_changed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cellvelocity` [INFO] [stdout] --> src/cellhandler.rs:20:70 [INFO] [stdout] | [INFO] [stdout] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cellvelocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_index` [INFO] [stdout] --> src/cellhandler.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, _chunk_index: usize) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `CHUNK_SIZE` [INFO] [stdout] | [INFO] [stdout] 11 - pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stdout] 11 + pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, CHUNK_SIZE: usize) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bottom` is never read [INFO] [stdout] --> src/cellhandler.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bottom = IVec2::new(0, 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: value assigned to `is_movable_solid` is never read [INFO] [stdout] --> src/cellhandler.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut is_movable_solid = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/material.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => MaterialType::Solid, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/material.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 31 | Material::Empty => MaterialType::Empty, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 32 | Material::Sand => MaterialType::MovableSolid, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 33 | Material::Dirt => MaterialType::MovableSolid, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 34 | Material::Water => MaterialType::Liquid, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 38 | _ => MaterialType::Solid, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED` is never used [INFO] [stdout] --> src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const SEED: u64 = 1234; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CHUNKS_Y` is never used [INFO] [stdout] --> src/matrix.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CHUNKS_Y: usize = (HEIGHT / CHUNK_SIZE as u32) as usize; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAD3` is never used [INFO] [stdout] --> src/renderer.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const PAD3: usize = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/renderer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct LightUniform { [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/renderer.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[repr(C)] [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/renderer.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Locals { [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/renderer.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[repr(C)] [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | return min + unsafe{&mut RNG}.f32() * max; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | return min + unsafe{&raw mut RNG}.f32() * max; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/matrix.rs:186:32 [INFO] [stdout] | [INFO] [stdout] 186 | cell.set_color(unsafe {ASSETS.get_color_for_material(cell.pos, cell.material)}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `texture::Texture` [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | use texture::Texture; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `start` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let start = std::time::SystemTime::now(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_frames` [INFO] [stdout] --> src/main.rs:242:17 [INFO] [stdout] | [INFO] [stdout] 242 | num_frames += 1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: did you mean to capture by reference instead? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `view` and `sampler` are never read [INFO] [stdout] --> src/texture.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Texture { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 8 | pub texture: wgpu::Texture, [INFO] [stdout] 9 | pub view: wgpu::TextureView, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub sampler: wgpu::Sampler, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/cell.rs:6:54 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Material, MaterialType, rand_multiplier, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fastrand::shuffle` [INFO] [stdout] --> src/cellhandler.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | use fastrand::shuffle; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Assets` and `Rng` [INFO] [stdout] --> src/cellhandler.rs:6:66 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Matrix, MaterialType, rand_multiplier, Material, Assets, Cell, Rng, gen_range, RNG}; [INFO] [stdout] | ^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Assets` [INFO] [stdout] --> src/gui.rs:6:31 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{Material, Matrix, Assets, UIInfo, ASSETS}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Arc` and `Mutex` [INFO] [stdout] --> src/matrix.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{RwLock, Arc, Mutex}; [INFO] [stdout] | ^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/matrix.rs:4:35 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::{Color, WIDTH, HEIGHT, Rng, ASSETS}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Assets` [INFO] [stdout] --> src/matrix.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::{Cell, Assets, Material, Chunk, cell_handler, CHUNK_SIZE, brush::Brush}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/matrix.rs:417:42 [INFO] [stdout] | [INFO] [stdout] 417 | let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 417 - let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stdout] 417 + let chunk = &self.chunks[chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hp_changed` [INFO] [stdout] --> src/cellhandler.rs:20:58 [INFO] [stdout] | [INFO] [stdout] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hp_changed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cellvelocity` [INFO] [stdout] --> src/cellhandler.rs:20:70 [INFO] [stdout] | [INFO] [stdout] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cellvelocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `chunk_index` [INFO] [stdout] --> src/cellhandler.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, _chunk_index: usize) { [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named constant `CHUNK_SIZE` [INFO] [stdout] | [INFO] [stdout] 11 - pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stdout] 11 + pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, CHUNK_SIZE: usize) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `bottom` is never read [INFO] [stdout] --> src/cellhandler.rs:52:17 [INFO] [stdout] | [INFO] [stdout] 52 | let mut bottom = IVec2::new(0, 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: value assigned to `is_movable_solid` is never read [INFO] [stdout] --> src/cellhandler.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | let mut is_movable_solid = true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/material.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 38 | _ => MaterialType::Solid, [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/material.rs:38:13 [INFO] [stdout] | [INFO] [stdout] 31 | Material::Empty => MaterialType::Empty, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 32 | Material::Sand => MaterialType::MovableSolid, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 33 | Material::Dirt => MaterialType::MovableSolid, [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] 34 | Material::Water => MaterialType::Liquid, [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 38 | _ => MaterialType::Solid, [INFO] [stdout] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEED` is never used [INFO] [stdout] --> src/lib.rs:42:7 [INFO] [stdout] | [INFO] [stdout] 42 | const SEED: u64 = 1234; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `NUM_CHUNKS_Y` is never used [INFO] [stdout] --> src/matrix.rs:11:7 [INFO] [stdout] | [INFO] [stdout] 11 | const NUM_CHUNKS_Y: usize = (HEIGHT / CHUNK_SIZE as u32) as usize; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PAD3` is never used [INFO] [stdout] --> src/renderer.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const PAD3: usize = 0; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/renderer.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct LightUniform { [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/renderer.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | #[repr(C)] [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/renderer.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub struct Locals { [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/renderer.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[repr(C)] [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | return min + unsafe{&mut RNG}.f32() * max; [INFO] [stdout] | ^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 45 | return min + unsafe{&raw mut RNG}.f32() * max; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/matrix.rs:186:32 [INFO] [stdout] | [INFO] [stdout] 186 | cell.set_color(unsafe {ASSETS.get_color_for_material(cell.pos, cell.material)}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.26s [INFO] running `Command { std: "docker" "inspect" "e0baf720832609390e5865cde6261a1a91cddf6eaaa16dc694d2603f226cd990", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0baf720832609390e5865cde6261a1a91cddf6eaaa16dc694d2603f226cd990", kill_on_drop: false }` [INFO] [stdout] e0baf720832609390e5865cde6261a1a91cddf6eaaa16dc694d2603f226cd990 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-09-21" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c8061f916f9fb4a2981fa24c81b978a0c8e0055b5629375a71f355cbc66191e3 [INFO] running `Command { std: "docker" "start" "-a" "c8061f916f9fb4a2981fa24c81b978a0c8e0055b5629375a71f355cbc66191e3", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `Rng` [INFO] [stderr] --> src/cell.rs:6:54 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{Material, MaterialType, rand_multiplier, Rng}; [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `fastrand::shuffle` [INFO] [stderr] --> src/cellhandler.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | use fastrand::shuffle; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Assets` and `Rng` [INFO] [stderr] --> src/cellhandler.rs:6:66 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{Matrix, MaterialType, rand_multiplier, Material, Assets, Cell, Rng, gen_range, RNG}; [INFO] [stderr] | ^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Assets` [INFO] [stderr] --> src/gui.rs:6:31 [INFO] [stderr] | [INFO] [stderr] 6 | use crate::{Material, Matrix, Assets, UIInfo, ASSETS}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Arc` and `Mutex` [INFO] [stderr] --> src/matrix.rs:1:25 [INFO] [stderr] | [INFO] [stderr] 1 | use std::sync::{RwLock, Arc, Mutex}; [INFO] [stderr] | ^^^ ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Rng` [INFO] [stderr] --> src/matrix.rs:4:35 [INFO] [stderr] | [INFO] [stderr] 4 | use crate::{Color, WIDTH, HEIGHT, Rng, ASSETS}; [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `Assets` [INFO] [stderr] --> src/matrix.rs:7:19 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::{Cell, Assets, Material, Chunk, cell_handler, CHUNK_SIZE, brush::Brush}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/matrix.rs:417:42 [INFO] [stderr] | [INFO] [stderr] 417 | let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 417 - let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stderr] 417 + let chunk = &self.chunks[chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused variable: `hp_changed` [INFO] [stderr] --> src/cellhandler.rs:20:58 [INFO] [stderr] | [INFO] [stderr] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_hp_changed` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cellvelocity` [INFO] [stderr] --> src/cellhandler.rs:20:70 [INFO] [stderr] | [INFO] [stderr] 20 | let (cellpos, hp, on_fire, was_on_fire, cellmat, hp_changed, cellvelocity) = { [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_cellvelocity` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `chunk_index` [INFO] [stderr] --> src/cellhandler.rs:11:64 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: if this is intentional, prefix it with an underscore [INFO] [stderr] | [INFO] [stderr] 11 | pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, _chunk_index: usize) { [INFO] [stderr] | + [INFO] [stderr] help: you might have meant to pattern match on the similarly named constant `CHUNK_SIZE` [INFO] [stderr] | [INFO] [stderr] 11 - pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, chunk_index: usize) { [INFO] [stderr] 11 + pub fn handle_cell(matrix: &mut Matrix, cell_index: usize, CHUNK_SIZE: usize) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: value assigned to `bottom` is never read [INFO] [stderr] --> src/cellhandler.rs:52:17 [INFO] [stderr] | [INFO] [stderr] 52 | let mut bottom = IVec2::new(0, 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: value assigned to `is_movable_solid` is never read [INFO] [stderr] --> src/cellhandler.rs:53:17 [INFO] [stderr] | [INFO] [stderr] 53 | let mut is_movable_solid = true; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: unreachable pattern [INFO] [stderr] --> src/material.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 38 | _ => MaterialType::Solid, [INFO] [stderr] | ^ no value can reach this [INFO] [stderr] | [INFO] [stderr] note: multiple earlier patterns match some of the same values [INFO] [stderr] --> src/material.rs:38:13 [INFO] [stderr] | [INFO] [stderr] 31 | Material::Empty => MaterialType::Empty, [INFO] [stderr] | --------------- matches some of the same values [INFO] [stderr] 32 | Material::Sand => MaterialType::MovableSolid, [INFO] [stderr] | -------------- matches some of the same values [INFO] [stderr] 33 | Material::Dirt => MaterialType::MovableSolid, [INFO] [stderr] | -------------- matches some of the same values [INFO] [stderr] 34 | Material::Water => MaterialType::Liquid, [INFO] [stderr] | --------------- matches some of the same values [INFO] [stderr] ... [INFO] [stderr] 38 | _ => MaterialType::Solid, [INFO] [stderr] | ^ ...and 3 other patterns collectively make this unreachable [INFO] [stderr] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `SEED` is never used [INFO] [stderr] --> src/lib.rs:42:7 [INFO] [stderr] | [INFO] [stderr] 42 | const SEED: u64 = 1234; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: constant `NUM_CHUNKS_Y` is never used [INFO] [stderr] --> src/matrix.rs:11:7 [INFO] [stderr] | [INFO] [stderr] 11 | const NUM_CHUNKS_Y: usize = (HEIGHT / CHUNK_SIZE as u32) as usize; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: constant `PAD3` is never used [INFO] [stderr] --> src/renderer.rs:8:7 [INFO] [stderr] | [INFO] [stderr] 8 | const PAD3: usize = 0; [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/renderer.rs:12:12 [INFO] [stderr] | [INFO] [stderr] 12 | pub struct LightUniform { [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/renderer.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | #[repr(C)] [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: field `0` is never read [INFO] [stderr] --> src/renderer.rs:39:12 [INFO] [stderr] | [INFO] [stderr] 39 | pub struct Locals { [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/renderer.rs:37:1 [INFO] [stderr] | [INFO] [stderr] 37 | #[repr(C)] [INFO] [stderr] | ^ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/lib.rs:45:25 [INFO] [stderr] | [INFO] [stderr] 45 | return min + unsafe{&mut RNG}.f32() * max; [INFO] [stderr] | ^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] help: use `&raw mut` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 45 | return min + unsafe{&raw mut RNG}.f32() * max; [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/matrix.rs:186:32 [INFO] [stderr] | [INFO] [stderr] 186 | cell.set_color(unsafe {ASSETS.get_color_for_material(cell.pos, cell.material)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] [INFO] [stderr] warning: `falling_rust` (lib) generated 23 warnings (run `cargo fix --lib -p falling_rust` to apply 9 suggestions) [INFO] [stderr] warning: `falling_rust` (lib test) generated 23 warnings (23 duplicates) [INFO] [stderr] warning: unused import: `texture::Texture` [INFO] [stderr] --> src/main.rs:20:5 [INFO] [stderr] | [INFO] [stderr] 20 | use texture::Texture; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `start` [INFO] [stderr] --> src/main.rs:74:9 [INFO] [stderr] | [INFO] [stderr] 74 | let start = std::time::SystemTime::now(); [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_start` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `num_frames` [INFO] [stderr] --> src/main.rs:242:17 [INFO] [stderr] | [INFO] [stderr] 242 | num_frames += 1; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: did you mean to capture by reference instead? [INFO] [stderr] [INFO] [stderr] warning: fields `view` and `sampler` are never read [INFO] [stderr] --> src/texture.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 7 | pub struct Texture { [INFO] [stderr] | ------- fields in this struct [INFO] [stderr] 8 | pub texture: wgpu::Texture, [INFO] [stderr] 9 | pub view: wgpu::TextureView, [INFO] [stderr] | ^^^^ [INFO] [stderr] 10 | pub sampler: wgpu::Sampler, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `falling_rust` (bin "falling_rust" test) generated 4 warnings (run `cargo fix --bin "falling_rust" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/falling_rust-558dbb6d531287ee) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/falling_rust-49d395fb63e91f3f) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stderr] Doc-tests falling_rust [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: unnecessary parentheses around index expression [INFO] [stderr] --> src/matrix.rs:417:42 [INFO] [stderr] | [INFO] [stderr] 417 | let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 417 - let chunk = &self.chunks[(chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X)]; [INFO] [stderr] 417 + let chunk = &self.chunks[chunk_pos.x as usize + chunk_pos.y as usize * NUM_CHUNKS_X]; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c8061f916f9fb4a2981fa24c81b978a0c8e0055b5629375a71f355cbc66191e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8061f916f9fb4a2981fa24c81b978a0c8e0055b5629375a71f355cbc66191e3", kill_on_drop: false }` [INFO] [stdout] c8061f916f9fb4a2981fa24c81b978a0c8e0055b5629375a71f355cbc66191e3