[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 master#e43d139a82620a268d3828a73e12a8679339e8f8 for pr-143545 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgfodor%2Fvoxel-optimizer" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/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-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gfodor/voxel-optimizer on toolchain e43d139a82620a268d3828a73e12a8679339e8f8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "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" "+e43d139a82620a268d3828a73e12a8679339e8f8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded crunch v0.5.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb6a4bb8d616013cc3601d0cf7a875d7cf6ba388a545d0487307834d69ea7dc2 [INFO] running `Command { std: "docker" "start" "-a" "bb6a4bb8d616013cc3601d0cf7a875d7cf6ba388a545d0487307834d69ea7dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb6a4bb8d616013cc3601d0cf7a875d7cf6ba388a545d0487307834d69ea7dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb6a4bb8d616013cc3601d0cf7a875d7cf6ba388a545d0487307834d69ea7dc2", kill_on_drop: false }` [INFO] [stdout] bb6a4bb8d616013cc3601d0cf7a875d7cf6ba388a545d0487307834d69ea7dc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+e43d139a82620a268d3828a73e12a8679339e8f8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50e3614ccd023da38cbf7c5856617983f3b01b741c6119c69be6555c482e3989 [INFO] running `Command { std: "docker" "start" "-a" "50e3614ccd023da38cbf7c5856617983f3b01b741c6119c69be6555c482e3989", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Checking colorchoice v1.0.3 [INFO] [stderr] Checking anstyle-query v1.1.2 [INFO] [stderr] Checking adler2 v2.0.0 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking anstyle v1.0.10 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.4 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking crunch v0.5.3 [INFO] [stderr] Checking crc32fast v1.4.2 [INFO] [stderr] Checking anstyle-parse v0.2.6 [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] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [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:13 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `buf` is never read [INFO] [stdout] --> src/vox_importer.rs:914:13 [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:17 [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:13 [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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `buf` is never read [INFO] [stdout] --> src/vox_importer.rs:914:13 [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:17 [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:21 [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:21 [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:21 [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: value assigned to `xs` is never read [INFO] [stdout] --> src/vox_exporter.rs:1392:21 [INFO] [stdout] | [INFO] [stdout] 1392 | let mut xs = String::new(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ys` is never read [INFO] [stdout] --> src/vox_exporter.rs:1393:21 [INFO] [stdout] | [INFO] [stdout] 1393 | let mut ys = String::new(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `zs` is never read [INFO] [stdout] --> src/vox_exporter.rs:1394:21 [INFO] [stdout] | [INFO] [stdout] 1394 | let mut zs = String::new(); [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)]` 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] warning: value assigned to `x` is never read [INFO] [stdout] --> src/vox_exporter.rs:1376:21 [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:21 [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:21 [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: value assigned to `xs` is never read [INFO] [stdout] --> src/vox_exporter.rs:1392:21 [INFO] [stdout] | [INFO] [stdout] 1392 | let mut xs = String::new(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ys` is never read [INFO] [stdout] --> src/vox_exporter.rs:1393:21 [INFO] [stdout] | [INFO] [stdout] 1393 | let mut ys = String::new(); [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `zs` is never read [INFO] [stdout] --> src/vox_exporter.rs:1394:21 [INFO] [stdout] | [INFO] [stdout] 1394 | let mut zs = String::new(); [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)]` 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.89s [INFO] running `Command { std: "docker" "inspect" "50e3614ccd023da38cbf7c5856617983f3b01b741c6119c69be6555c482e3989", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50e3614ccd023da38cbf7c5856617983f3b01b741c6119c69be6555c482e3989", kill_on_drop: false }` [INFO] [stdout] 50e3614ccd023da38cbf7c5856617983f3b01b741c6119c69be6555c482e3989