[INFO] cloning repository https://github.com/gfodor/voxel-optimizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gfodor/voxel-optimizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfodor%2Fvoxel-optimizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfodor%2Fvoxel-optimizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6cbc49e7662aca0cd9caee3b6d70457f9dedbab1 [INFO] checking gfodor/voxel-optimizer against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfodor%2Fvoxel-optimizer" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gfodor/voxel-optimizer [INFO] finished tweaking git repo https://github.com/gfodor/voxel-optimizer [INFO] tweaked toml for git repo https://github.com/gfodor/voxel-optimizer written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gfodor/voxel-optimizer on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gfodor/voxel-optimizer 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a1b6dd8974d47190c97385d179fab43455af9d3049541fdef0476b4dd823af18 [INFO] running `Command { std: "docker" "start" "-a" "a1b6dd8974d47190c97385d179fab43455af9d3049541fdef0476b4dd823af18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a1b6dd8974d47190c97385d179fab43455af9d3049541fdef0476b4dd823af18", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1b6dd8974d47190c97385d179fab43455af9d3049541fdef0476b4dd823af18", kill_on_drop: false }` [INFO] [stdout] a1b6dd8974d47190c97385d179fab43455af9d3049541fdef0476b4dd823af18 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=forbid -Dunmustuse_in_always_ok" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 766aaadd576be33988f074e43096ae88f573bbdd4a452ebf10a01e1bce394374 [INFO] running `Command { std: "docker" "start" "-a" "766aaadd576be33988f074e43096ae88f573bbdd4a452ebf10a01e1bce394374", kill_on_drop: false }` [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Checking crunch v0.5.3 [INFO] [stderr] Checking anstyle-parse v0.2.6 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Checking miniz_oxide v0.8.5 [INFO] [stderr] Checking fdeflate v0.3.7 [INFO] [stderr] Checking anstream v0.6.18 [INFO] [stderr] Checking clap_builder v4.5.32 [INFO] [stderr] Checking flate2 v1.1.0 [INFO] [stderr] Checking png v0.17.16 [INFO] [stderr] Compiling clap_derive v4.5.32 [INFO] [stderr] Checking clap v4.5.32 [INFO] [stderr] Checking voxel_optimizer v2.0.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `end_index` is never read [INFO] [stdout] --> src/vox_importer.rs:798:32 [INFO] [stdout] | [INFO] [stdout] 798 | let mut end_index: usize = 0; [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 `buf` is never read [INFO] [stdout] --> src/vox_importer.rs:914:19 [INFO] [stdout] | [INFO] [stdout] 914 | let mut buf = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `term` is never read [INFO] [stdout] --> src/vox_importer.rs:978:24 [INFO] [stdout] | [INFO] [stdout] 978 | let mut term = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `end_index` is never read [INFO] [stdout] --> src/vox_importer.rs:798:32 [INFO] [stdout] | [INFO] [stdout] 798 | let mut end_index: usize = 0; [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 `buf` is never read [INFO] [stdout] --> src/vox_importer.rs:914:19 [INFO] [stdout] | [INFO] [stdout] 914 | let mut buf = 0; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `term` is never read [INFO] [stdout] --> src/vox_importer.rs:978:24 [INFO] [stdout] | [INFO] [stdout] 978 | let mut term = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/vox_exporter.rs:1376:25 [INFO] [stdout] | [INFO] [stdout] 1376 | let mut x = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/vox_exporter.rs:1377:25 [INFO] [stdout] | [INFO] [stdout] 1377 | let mut y = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `z` is never read [INFO] [stdout] --> src/vox_exporter.rs:1378:25 [INFO] [stdout] | [INFO] [stdout] 1378 | let mut z = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scalar` is never constructed [INFO] [stdout] --> src/vox_importer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Scalar{n:i32} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_number` and `to` are never used [INFO] [stdout] --> src/vox_importer.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Scalar{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 20 | fn from_number(n: i32)->Scalar{Scalar {n}} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | fn to(self)->i32{self.n} [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size_in_bytes`, `node_id`, `name`, `hidden`, and `layer` are never read [INFO] [stdout] --> src/vox_importer.rs:349:5 [INFO] [stdout] | [INFO] [stdout] 348 | pub struct Trn{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 349 | size_in_bytes: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 350 | node_id: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | name: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 354 | hidden: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 355 | child_node_id: u16, [INFO] [stdout] 356 | layer: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trn` 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: fields `size_in_bytes`, `node_id`, and `n_of_children` are never read [INFO] [stdout] --> src/vox_importer.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 505 | pub struct Grp{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 506 | size_in_bytes: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 507 | node_id: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | n_of_children: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grp` 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: fields `size_in_bytes`, `node_id`, and `n_of_models` are never read [INFO] [stdout] --> src/vox_importer.rs:577:5 [INFO] [stdout] | [INFO] [stdout] 576 | pub struct Shp{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 577 | size_in_bytes: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 578 | node_id: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 581 | n_of_models: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shp` 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: struct `Dict` is never constructed [INFO] [stdout] --> src/vox_importer.rs:634:12 [INFO] [stdout] | [INFO] [stdout] 634 | pub struct Dict{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoxString` is never constructed [INFO] [stdout] --> src/vox_importer.rs:639:12 [INFO] [stdout] | [INFO] [stdout] 639 | pub struct VoxString{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_x` is never used [INFO] [stdout] --> src/vox_importer.rs:1077:4 [INFO] [stdout] | [INFO] [stdout] 1077 | fn find_next_x(bytes: &[u8], x: &[u8]) -> Option{bytes.windows(x.len()).position(|window| window == x)} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_space_after_index` is never used [INFO] [stdout] --> src/vox_importer.rs:1078:4 [INFO] [stdout] | [INFO] [stdout] 1078 | fn find_next_space_after_index(bytes: &[u8]) -> Option {bytes.iter().position(|&x| x==b' ')} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_made_by_ephtracy` is never used [INFO] [stdout] --> src/vox_importer.rs:1080:8 [INFO] [stdout] | [INFO] [stdout] 1080 | pub fn is_made_by_ephtracy(ply: Ply) -> bool { ply.exported_by == "comment : MagicaVoxel @ Ephtracy"} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vector_to_scalar_index` is never used [INFO] [stdout] --> src/greedy_mesher.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl ColourMatrix{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn vector_to_scalar_index(&mut self, x:i32, y:i32, z:i32)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shape` is never read [INFO] [stdout] --> src/greedy_mesher.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 272 | pub struct BoolMatrix{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 273 | shape:(i32,i32,i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_size`, `get_cube_bool`, and `contains` are never used [INFO] [stdout] --> src/greedy_mesher.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 277 | impl BoolMatrix{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | fn set_size(&mut self, shapex: i32, shapey: i32, shapez: i32){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | fn get_cube_bool(&mut self, x: i32, y:i32, z: i32)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | fn contains(&mut self, x:usize, y:usize, z:usize)->bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cube` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct Cube{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_face` and `from_nothing` are never used [INFO] [stdout] --> src/greedy_mesher.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 346 | impl Cube{ [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 347 | fn from_face(f: &CubeF) -> Cube{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 372 | fn from_nothing(position: (f32, f32, f32))-> Cube{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Front` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 389 | pub enum Direction{ [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 394 | Front, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CubeV` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:397:12 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct CubeV{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CubeVt` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | pub struct CubeVt{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CubeIndexPosition` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub struct CubeIndexPosition{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, and `to_tuple_xyz` are never used [INFO] [stdout] --> src/greedy_mesher.rs:473:8 [INFO] [stdout] | [INFO] [stdout] 472 | impl CubeIndexPosition{ [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 473 | fn new(p:(f32,f32,f32))->CubeIndexPosition{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 480 | fn from(p:(f32,f32,f32))->CubeIndexPosition{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 487 | fn to_tuple_xyz(&self)->(i32,i32,i32){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `materials` is never read [INFO] [stdout] --> src/vox_exporter.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Obj{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub materials: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_texture_some` is never used [INFO] [stdout] --> src/vox_exporter.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 128 | impl TextureMap{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | fn is_texture_some(&self)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/vox_exporter.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 186 | impl Rgb{ [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 187 | fn from(rgb:Option<(u8,u8,u8)>, ba:(u8,u8,u8)) -> Rgb{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/vox_importer.rs:849:33 [INFO] [stdout] | [INFO] [stdout] 849 | let result: Result = vox_bytes[4].try_into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/vox_importer.rs:850:15 [INFO] [stdout] | [INFO] [stdout] 850 | match result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `voxel_optimizer` (bin "voxel_optimizer" test) due to 2 previous errors; 29 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: value assigned to `x` is never read [INFO] [stdout] --> src/vox_exporter.rs:1376:25 [INFO] [stdout] | [INFO] [stdout] 1376 | let mut x = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/vox_exporter.rs:1377:25 [INFO] [stdout] | [INFO] [stdout] 1377 | let mut y = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `z` is never read [INFO] [stdout] --> src/vox_exporter.rs:1378:25 [INFO] [stdout] | [INFO] [stdout] 1378 | let mut z = 0.0; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Scalar` is never constructed [INFO] [stdout] --> src/vox_importer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Scalar{n:i32} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_number` and `to` are never used [INFO] [stdout] --> src/vox_importer.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl Scalar{ [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 20 | fn from_number(n: i32)->Scalar{Scalar {n}} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 21 | fn to(self)->i32{self.n} [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `size_in_bytes`, `node_id`, `name`, `hidden`, and `layer` are never read [INFO] [stdout] --> src/vox_importer.rs:349:5 [INFO] [stdout] | [INFO] [stdout] 348 | pub struct Trn{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 349 | size_in_bytes: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 350 | node_id: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 353 | name: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 354 | hidden: u8, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 355 | child_node_id: u16, [INFO] [stdout] 356 | layer: u8, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Trn` 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: fields `size_in_bytes`, `node_id`, and `n_of_children` are never read [INFO] [stdout] --> src/vox_importer.rs:506:5 [INFO] [stdout] | [INFO] [stdout] 505 | pub struct Grp{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 506 | size_in_bytes: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 507 | node_id: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | n_of_children: u8, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Grp` 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: fields `size_in_bytes`, `node_id`, and `n_of_models` are never read [INFO] [stdout] --> src/vox_importer.rs:577:5 [INFO] [stdout] | [INFO] [stdout] 576 | pub struct Shp{ [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 577 | size_in_bytes: u16, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 578 | node_id: u16, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 581 | n_of_models: u8, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Shp` 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: struct `Dict` is never constructed [INFO] [stdout] --> src/vox_importer.rs:634:12 [INFO] [stdout] | [INFO] [stdout] 634 | pub struct Dict{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VoxString` is never constructed [INFO] [stdout] --> src/vox_importer.rs:639:12 [INFO] [stdout] | [INFO] [stdout] 639 | pub struct VoxString{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_x` is never used [INFO] [stdout] --> src/vox_importer.rs:1077:4 [INFO] [stdout] | [INFO] [stdout] 1077 | fn find_next_x(bytes: &[u8], x: &[u8]) -> Option{bytes.windows(x.len()).position(|window| window == x)} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `find_next_space_after_index` is never used [INFO] [stdout] --> src/vox_importer.rs:1078:4 [INFO] [stdout] | [INFO] [stdout] 1078 | fn find_next_space_after_index(bytes: &[u8]) -> Option {bytes.iter().position(|&x| x==b' ')} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_made_by_ephtracy` is never used [INFO] [stdout] --> src/vox_importer.rs:1080:8 [INFO] [stdout] | [INFO] [stdout] 1080 | pub fn is_made_by_ephtracy(ply: Ply) -> bool { ply.exported_by == "comment : MagicaVoxel @ Ephtracy"} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `vector_to_scalar_index` is never used [INFO] [stdout] --> src/greedy_mesher.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 21 | impl ColourMatrix{ [INFO] [stdout] | ----------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 65 | fn vector_to_scalar_index(&mut self, x:i32, y:i32, z:i32)->usize{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `shape` is never read [INFO] [stdout] --> src/greedy_mesher.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 272 | pub struct BoolMatrix{ [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 273 | shape:(i32,i32,i32), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_size`, `get_cube_bool`, and `contains` are never used [INFO] [stdout] --> src/greedy_mesher.rs:292:8 [INFO] [stdout] | [INFO] [stdout] 277 | impl BoolMatrix{ [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 292 | fn set_size(&mut self, shapex: i32, shapey: i32, shapez: i32){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 316 | fn get_cube_bool(&mut self, x: i32, y:i32, z: i32)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | fn contains(&mut self, x:usize, y:usize, z:usize)->bool{ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Cube` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:339:12 [INFO] [stdout] | [INFO] [stdout] 339 | pub struct Cube{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `from_face` and `from_nothing` are never used [INFO] [stdout] --> src/greedy_mesher.rs:347:8 [INFO] [stdout] | [INFO] [stdout] 346 | impl Cube{ [INFO] [stdout] | --------- associated functions in this implementation [INFO] [stdout] 347 | fn from_face(f: &CubeF) -> Cube{ [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 372 | fn from_nothing(position: (f32, f32, f32))-> Cube{ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Front` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:394:5 [INFO] [stdout] | [INFO] [stdout] 389 | pub enum Direction{ [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 394 | Front, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Direction` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CubeV` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:397:12 [INFO] [stdout] | [INFO] [stdout] 397 | pub struct CubeV{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CubeVt` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:402:12 [INFO] [stdout] | [INFO] [stdout] 402 | pub struct CubeVt{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CubeIndexPosition` is never constructed [INFO] [stdout] --> src/greedy_mesher.rs:467:12 [INFO] [stdout] | [INFO] [stdout] 467 | pub struct CubeIndexPosition{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `from`, and `to_tuple_xyz` are never used [INFO] [stdout] --> src/greedy_mesher.rs:473:8 [INFO] [stdout] | [INFO] [stdout] 472 | impl CubeIndexPosition{ [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 473 | fn new(p:(f32,f32,f32))->CubeIndexPosition{ [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 480 | fn from(p:(f32,f32,f32))->CubeIndexPosition{ [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 487 | fn to_tuple_xyz(&self)->(i32,i32,i32){ [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `materials` is never read [INFO] [stdout] --> src/vox_exporter.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Obj{ [INFO] [stdout] | --- field in this struct [INFO] [stdout] ... [INFO] [stdout] 25 | pub materials: Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obj` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_texture_some` is never used [INFO] [stdout] --> src/vox_exporter.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 128 | impl TextureMap{ [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 174 | fn is_texture_some(&self)->bool{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from` is never used [INFO] [stdout] --> src/vox_exporter.rs:187:8 [INFO] [stdout] | [INFO] [stdout] 186 | impl Rgb{ [INFO] [stdout] | -------- associated function in this implementation [INFO] [stdout] 187 | fn from(rgb:Option<(u8,u8,u8)>, ba:(u8,u8,u8)) -> Rgb{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/vox_importer.rs:849:33 [INFO] [stdout] | [INFO] [stdout] 849 | let result: Result = vox_bytes[4].try_into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/vox_importer.rs:850:15 [INFO] [stdout] | [INFO] [stdout] 850 | match result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `voxel_optimizer` (bin "voxel_optimizer") due to 2 previous errors; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "766aaadd576be33988f074e43096ae88f573bbdd4a452ebf10a01e1bce394374", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "766aaadd576be33988f074e43096ae88f573bbdd4a452ebf10a01e1bce394374", kill_on_drop: false }` [INFO] [stdout] 766aaadd576be33988f074e43096ae88f573bbdd4a452ebf10a01e1bce394374