[INFO] cloning repository https://github.com/LachyFS/voxel-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/LachyFS/voxel-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLachyFS%2Fvoxel-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLachyFS%2Fvoxel-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6df0cf192569b104bb497518f632358e7ba0b12f [INFO] checking LachyFS/voxel-rust against master#a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb for pr-151109 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FLachyFS%2Fvoxel-rust" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/LachyFS/voxel-rust [INFO] finished tweaking git repo https://github.com/LachyFS/voxel-rust [INFO] tweaked toml for git repo https://github.com/LachyFS/voxel-rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/LachyFS/voxel-rust on toolchain a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/LachyFS/voxel-rust 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" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded jiff-static v0.2.17 [INFO] [stderr] Downloaded jiff v0.2.17 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f58975ad34f824dee6eebed8ca4b7512529e2dc46483df30e4d6dd45cb3d64d0 [INFO] running `Command { std: "docker" "start" "-a" "f58975ad34f824dee6eebed8ca4b7512529e2dc46483df30e4d6dd45cb3d64d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f58975ad34f824dee6eebed8ca4b7512529e2dc46483df30e4d6dd45cb3d64d0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f58975ad34f824dee6eebed8ca4b7512529e2dc46483df30e4d6dd45cb3d64d0", kill_on_drop: false }` [INFO] [stdout] f58975ad34f824dee6eebed8ca4b7512529e2dc46483df30e4d6dd45cb3d64d0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+a6acf0f07f0ed1c12e26dc0db3b9bf1d0504a0bb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcdc957e6e0a0ac1efc07325b0a81a943240fcf6fd05e835e7737f4632fd125f [INFO] running `Command { std: "docker" "start" "-a" "bcdc957e6e0a0ac1efc07325b0a81a943240fcf6fd05e835e7737f4632fd125f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.104 [INFO] [stderr] Compiling find-msvc-tools v0.1.6 [INFO] [stderr] Compiling wayland-sys v0.31.8 [INFO] [stderr] Checking hashbrown v0.16.1 [INFO] [stderr] Checking rustix v1.1.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling naga v23.1.0 [INFO] [stderr] Checking bit-vec v0.8.0 [INFO] [stderr] Checking gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling wgpu-hal v23.0.1 [INFO] [stderr] Checking wgpu-types v23.0.0 [INFO] [stderr] Compiling wgpu-core v23.0.1 [INFO] [stderr] Checking glow v0.14.2 [INFO] [stderr] Checking ab_glyph v0.2.32 [INFO] [stderr] Compiling winit v0.30.12 [INFO] [stderr] Checking flate2 v1.1.5 [INFO] [stderr] Checking gpu-alloc v0.6.0 [INFO] [stderr] Compiling cc v1.2.51 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking getrandom v0.3.4 [INFO] [stderr] Compiling wgpu v23.0.1 [INFO] [stderr] Checking toml_write v0.1.2 [INFO] [stderr] Checking winnow v0.7.14 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Checking jiff v0.2.17 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_xorshift v0.3.0 [INFO] [stderr] Checking bit-set v0.8.0 [INFO] [stderr] Checking ahash v0.8.12 [INFO] [stderr] Checking rayon v1.11.0 [INFO] [stderr] Checking glam v0.29.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking indexmap v2.12.1 [INFO] [stderr] Checking noise v0.9.0 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling syn v2.0.112 [INFO] [stderr] Compiling wayland-backend v0.3.12 [INFO] [stderr] Compiling wayland-scanner v0.31.8 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking polling v3.11.0 [INFO] [stderr] Checking gethostname v1.1.0 [INFO] [stderr] Checking x11rb v0.13.2 [INFO] [stderr] Checking env_logger v0.11.8 [INFO] [stderr] Checking wayland-client v0.31.12 [INFO] [stderr] Checking wayland-csd-frame v0.3.0 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking calloop v0.13.0 [INFO] [stderr] Checking tiny-skia-path v0.11.4 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Checking tiny-skia v0.11.4 [INFO] [stderr] Checking wayland-protocols v0.32.10 [INFO] [stderr] Checking wayland-cursor v0.31.12 [INFO] [stderr] Checking calloop-wayland-source v0.3.0 [INFO] [stderr] Checking serde v1.0.228 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_edit v0.22.27 [INFO] [stderr] Checking toml v0.8.23 [INFO] [stderr] Checking wayland-protocols-wlr v0.3.10 [INFO] [stderr] Checking wayland-protocols-plasma v0.3.10 [INFO] [stderr] Checking smithay-client-toolkit v0.19.2 [INFO] [stderr] Checking sctk-adwaita v0.10.1 [INFO] [stderr] Checking voxel-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `dz` [INFO] [stdout] --> src/renderer.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let dz = (p2[2] - p1[2]).abs(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dz` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `dz` [INFO] [stdout] --> src/renderer.rs:165:13 [INFO] [stdout] | [INFO] [stdout] 165 | let dz = (p2[2] - p1[2]).abs(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dz` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_manager` [INFO] [stdout] --> src/main.rs:101:22 [INFO] [stdout] | [INFO] [stdout] 101 | let Some(texture_manager) = &self.texture_manager else { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `len`, `is_empty`, and `iter` are never used [INFO] [stdout] --> src/fluid.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl WaterStorage { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 97 | pub fn len(&self) -> usize { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub fn is_empty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_active`, `has_water`, `is_dirty`, `clear_dirty`, `water_count`, and `iter_water` are never used [INFO] [stdout] --> src/fluid.rs:231:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl ChunkFluidState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 231 | pub fn is_active(&self, x: u8, y: u8, z: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 244 | pub fn has_water(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn is_dirty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn clear_dirty(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn water_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn iter_water(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/fluid.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 337 | impl FluidSimulator { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn init_chunk( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | pub fn scan_chunk_for_water( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 393 | pub fn unload_chunk(&mut self, chunk_pos: ChunkPos) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn on_block_destroyed(&mut self, world_x: i32, world_y: i32, world_z: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | pub fn update(&mut self, dt: f32, get_block: F, mut set_block: G) -> &FxHashSet [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1210 | fn simulate_tick(&mut self, get_block: &F, set_block: &mut G) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1263 | fn simulate_block(&mut self, x: i32, y: i32, z: i32, get_block: &F) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1360 | fn apply_pending_updates(&mut self, set_block: &mut G) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1401 | pub fn add_water(&mut self, world_x: i32, world_y: i32, world_z: i32, amount: u8, get_block: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1424 | pub fn remove_water(&mut self, world_x: i32, world_y: i32, world_z: i32) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1451 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1457 | pub fn set_enabled(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hit_point`, `distance`, and `block_type` are never read [INFO] [stdout] --> src/raycast.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct RaycastHit { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | pub hit_point: Vec3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 40 | /// Distance from ray origin to hit point [INFO] [stdout] 41 | pub distance: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 42 | /// The block type that was hit [INFO] [stdout] 43 | pub block_type: BlockType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RaycastHit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `toggle_time_freeze` and `is_time_frozen` are never used [INFO] [stdout] --> src/renderer.rs:1234:12 [INFO] [stdout] | [INFO] [stdout] 397 | impl Renderer { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1234 | pub fn toggle_time_freeze(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1239 | pub fn is_time_frozen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `texture_indices` is never read [INFO] [stdout] --> src/texture.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct TextureManager { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 46 | /// Maps texture filename to layer index [INFO] [stdout] 47 | texture_indices: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_block_textures` and `texture_data` are never used [INFO] [stdout] --> src/texture.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl TextureManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn get_block_textures(&self, block_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn texture_data(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `COUNT` is never used [INFO] [stdout] --> src/voxel.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 61 | impl BlockType { [INFO] [stdout] | -------------- associated constant in this implementation [INFO] [stdout] 62 | /// Total number of block types (for array indexing) [INFO] [stdout] 63 | pub const COUNT: usize = 20; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/voxel.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl BlockType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChunkNeighbors` is never constructed [INFO] [stdout] --> src/voxel.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct ChunkNeighbors<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_block_at` and `should_render_face` are never used [INFO] [stdout] --> src/voxel.rs:265:8 [INFO] [stdout] | [INFO] [stdout] 262 | impl<'a> ChunkNeighbors<'a> { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 265 | fn get_block_at(&self, dir: Face, local_x: usize, local_y: usize, local_z: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn should_render_face(&self, current_block: BlockType, dir: Face, local_x: usize, local_y: usize, local_z: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_mesh` is never used [INFO] [stdout] --> src/voxel.rs:710:12 [INFO] [stdout] | [INFO] [stdout] 331 | impl Chunk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 710 | pub fn generate_mesh( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleAoCalculator` is never constructed [INFO] [stdout] --> src/voxel.rs:825:8 [INFO] [stdout] | [INFO] [stdout] 825 | struct SimpleAoCalculator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_solid`, and `calculate_face_ao` are never used [INFO] [stdout] --> src/voxel.rs:830:8 [INFO] [stdout] | [INFO] [stdout] 829 | impl<'a> SimpleAoCalculator<'a> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 830 | fn new(blocks: &'a [[[BlockType; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | fn is_solid(&self, x: i32, y: i32, z: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 843 | fn calculate_face_ao(&self, x: i32, y: i32, z: i32, face: Face) -> [f32; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_merged_quad_ao` is never used [INFO] [stdout] --> src/voxel.rs:963:4 [INFO] [stdout] | [INFO] [stdout] 963 | fn calculate_merged_quad_ao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_face` is never used [INFO] [stdout] --> src/voxel.rs:1079:4 [INFO] [stdout] | [INFO] [stdout] 1079 | fn add_face( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cave_worm_noise_z` is never read [INFO] [stdout] --> src/worldgen.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct WorldGenerator { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 256 | cave_worm_noise_z: Simplex, // 3D noise for worm cave Z displacement [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chunks_needing_remesh` and `biomes_config` are never read [INFO] [stdout] --> src/worldgen.rs:1254:5 [INFO] [stdout] | [INFO] [stdout] 1245 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1254 | chunks_needing_remesh: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1268 | biomes_config: CompiledBiomesConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/worldgen.rs:1272:12 [INFO] [stdout] | [INFO] [stdout] 1271 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 1272 | pub fn new(seed: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1276 | pub fn with_render_distance(seed: u32, render_distance: i32, height_chunks: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1470 | pub fn take_chunks_needing_remesh(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1475 | pub fn needs_mesh_update(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1497 | pub fn generate_area(&mut self, center_x: i32, center_z: i32, radius: i32, height_chunks: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1528 | pub fn get_neighbors(&self, pos: ChunkPos) -> ChunkNeighbors { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1611 | pub fn collect_world_mesh(&mut self, frustum: &Frustum) -> (&[Vertex], &[u32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1653 | pub fn generate_world_mesh( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/voxel.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn to_chunk_neighbors(&self) -> BoundaryNeighbors { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 204 | pub fn to_chunk_neighbors(&self) -> BoundaryNeighbors<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/worldgen.rs:1528:26 [INFO] [stdout] | [INFO] [stdout] 1528 | pub fn get_neighbors(&self, pos: ChunkPos) -> ChunkNeighbors { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1528 | pub fn get_neighbors(&self, pos: ChunkPos) -> ChunkNeighbors<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_manager` [INFO] [stdout] --> src/main.rs:101:22 [INFO] [stdout] | [INFO] [stdout] 101 | let Some(texture_manager) = &self.texture_manager else { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture_manager` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `iter` is never used [INFO] [stdout] --> src/fluid.rs:143:12 [INFO] [stdout] | [INFO] [stdout] 71 | impl WaterStorage { [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 143 | pub fn iter(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_dirty`, `clear_dirty`, `water_count`, and `iter_water` are never used [INFO] [stdout] --> src/fluid.rs:262:12 [INFO] [stdout] | [INFO] [stdout] 184 | impl ChunkFluidState { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 262 | pub fn is_dirty(&self) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 268 | pub fn clear_dirty(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 274 | pub fn water_count(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 279 | pub fn iter_water(&self) -> impl Iterator + '_ { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple methods are never used [INFO] [stdout] --> src/fluid.rs:358:12 [INFO] [stdout] | [INFO] [stdout] 337 | impl FluidSimulator { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 358 | pub fn init_chunk( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 373 | pub fn scan_chunk_for_water( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 393 | pub fn unload_chunk(&mut self, chunk_pos: ChunkPos) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 519 | pub fn on_block_destroyed(&mut self, world_x: i32, world_y: i32, world_z: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 687 | pub fn update(&mut self, dt: f32, get_block: F, mut set_block: G) -> &FxHashSet [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1210 | fn simulate_tick(&mut self, get_block: &F, set_block: &mut G) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1263 | fn simulate_block(&mut self, x: i32, y: i32, z: i32, get_block: &F) [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1360 | fn apply_pending_updates(&mut self, set_block: &mut G) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1401 | pub fn add_water(&mut self, world_x: i32, world_y: i32, world_z: i32, amount: u8, get_block: F) [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1424 | pub fn remove_water(&mut self, world_x: i32, world_y: i32, world_z: i32) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1451 | pub fn is_enabled(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1457 | pub fn set_enabled(&mut self, enabled: bool) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `hit_point`, `distance`, and `block_type` are never read [INFO] [stdout] --> src/raycast.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct RaycastHit { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 39 | pub hit_point: Vec3, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 40 | /// Distance from ray origin to hit point [INFO] [stdout] 41 | pub distance: f32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 42 | /// The block type that was hit [INFO] [stdout] 43 | pub block_type: BlockType, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RaycastHit` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `toggle_time_freeze` and `is_time_frozen` are never used [INFO] [stdout] --> src/renderer.rs:1234:12 [INFO] [stdout] | [INFO] [stdout] 397 | impl Renderer { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 1234 | pub fn toggle_time_freeze(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1239 | pub fn is_time_frozen(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `texture_indices` is never read [INFO] [stdout] --> src/texture.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct TextureManager { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] 46 | /// Maps texture filename to layer index [INFO] [stdout] 47 | texture_indices: HashMap, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_block_textures` and `texture_data` are never used [INFO] [stdout] --> src/texture.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 56 | impl TextureManager { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 178 | pub fn get_block_textures(&self, block_name: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 222 | pub fn texture_data(&self) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated constant `COUNT` is never used [INFO] [stdout] --> src/voxel.rs:63:15 [INFO] [stdout] | [INFO] [stdout] 61 | impl BlockType { [INFO] [stdout] | -------------- associated constant in this implementation [INFO] [stdout] 62 | /// Total number of block types (for array indexing) [INFO] [stdout] 63 | pub const COUNT: usize = 20; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `name` is never used [INFO] [stdout] --> src/voxel.rs:152:12 [INFO] [stdout] | [INFO] [stdout] 72 | impl BlockType { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 152 | pub fn name(&self) -> &'static str { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ChunkNeighbors` is never constructed [INFO] [stdout] --> src/voxel.rs:253:12 [INFO] [stdout] | [INFO] [stdout] 253 | pub struct ChunkNeighbors<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_block_at` and `should_render_face` are never used [INFO] [stdout] --> src/voxel.rs:265:8 [INFO] [stdout] | [INFO] [stdout] 262 | impl<'a> ChunkNeighbors<'a> { [INFO] [stdout] | --------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 265 | fn get_block_at(&self, dir: Face, local_x: usize, local_y: usize, local_z: usize) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 295 | fn should_render_face(&self, current_block: BlockType, dir: Face, local_x: usize, local_y: usize, local_z: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `generate_mesh` is never used [INFO] [stdout] --> src/voxel.rs:710:12 [INFO] [stdout] | [INFO] [stdout] 331 | impl Chunk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 710 | pub fn generate_mesh( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SimpleAoCalculator` is never constructed [INFO] [stdout] --> src/voxel.rs:825:8 [INFO] [stdout] | [INFO] [stdout] 825 | struct SimpleAoCalculator<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_solid`, and `calculate_face_ao` are never used [INFO] [stdout] --> src/voxel.rs:830:8 [INFO] [stdout] | [INFO] [stdout] 829 | impl<'a> SimpleAoCalculator<'a> { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 830 | fn new(blocks: &'a [[[BlockType; CHUNK_SIZE]; CHUNK_SIZE]; CHUNK_SIZE]) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 835 | fn is_solid(&self, x: i32, y: i32, z: i32) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 843 | fn calculate_face_ao(&self, x: i32, y: i32, z: i32, face: Face) -> [f32; 4] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_merged_quad_ao` is never used [INFO] [stdout] --> src/voxel.rs:963:4 [INFO] [stdout] | [INFO] [stdout] 963 | fn calculate_merged_quad_ao( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `add_face` is never used [INFO] [stdout] --> src/voxel.rs:1079:4 [INFO] [stdout] | [INFO] [stdout] 1079 | fn add_face( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `cave_worm_noise_z` is never read [INFO] [stdout] --> src/worldgen.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 244 | pub struct WorldGenerator { [INFO] [stdout] | -------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 256 | cave_worm_noise_z: Simplex, // 3D noise for worm cave Z displacement [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `chunks_needing_remesh` and `biomes_config` are never read [INFO] [stdout] --> src/worldgen.rs:1254:5 [INFO] [stdout] | [INFO] [stdout] 1245 | pub struct World { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 1254 | chunks_needing_remesh: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1268 | biomes_config: CompiledBiomesConfig, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/worldgen.rs:1272:12 [INFO] [stdout] | [INFO] [stdout] 1271 | impl World { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 1272 | pub fn new(seed: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 1276 | pub fn with_render_distance(seed: u32, render_distance: i32, height_chunks: i32) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1470 | pub fn take_chunks_needing_remesh(&mut self) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1475 | pub fn needs_mesh_update(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1497 | pub fn generate_area(&mut self, center_x: i32, center_z: i32, radius: i32, height_chunks: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1528 | pub fn get_neighbors(&self, pos: ChunkPos) -> ChunkNeighbors { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1611 | pub fn collect_world_mesh(&mut self, frustum: &Frustum) -> (&[Vertex], &[u32]) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 1653 | pub fn generate_world_mesh( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/voxel.rs:204:31 [INFO] [stdout] | [INFO] [stdout] 204 | pub fn to_chunk_neighbors(&self) -> BoundaryNeighbors { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 204 | pub fn to_chunk_neighbors(&self) -> BoundaryNeighbors<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/worldgen.rs:1528:26 [INFO] [stdout] | [INFO] [stdout] 1528 | pub fn get_neighbors(&self, pos: ChunkPos) -> ChunkNeighbors { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 1528 | pub fn get_neighbors(&self, pos: ChunkPos) -> ChunkNeighbors<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 35.16s [INFO] running `Command { std: "docker" "inspect" "bcdc957e6e0a0ac1efc07325b0a81a943240fcf6fd05e835e7737f4632fd125f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcdc957e6e0a0ac1efc07325b0a81a943240fcf6fd05e835e7737f4632fd125f", kill_on_drop: false }` [INFO] [stdout] bcdc957e6e0a0ac1efc07325b0a81a943240fcf6fd05e835e7737f4632fd125f