[INFO] cloning repository https://github.com/GummyGun/rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/GummyGun/rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGummyGun%2Frust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGummyGun%2Frust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8511c52194a8898615412891d961ba32ad0c24e7 [INFO] checking GummyGun/rust/8511c52194a8898615412891d961ba32ad0c24e7 against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGummyGun%2Frust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/GummyGun/rust on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/GummyGun/rust [INFO] finished tweaking git repo https://github.com/GummyGun/rust [INFO] tweaked toml for git repo https://github.com/GummyGun/rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/GummyGun/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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28d2e83a5233bb45b3828596e136414ecf0e717eef8f10957d349307bb2c1752 [INFO] running `Command { std: "docker" "start" "-a" "28d2e83a5233bb45b3828596e136414ecf0e717eef8f10957d349307bb2c1752", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28d2e83a5233bb45b3828596e136414ecf0e717eef8f10957d349307bb2c1752", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28d2e83a5233bb45b3828596e136414ecf0e717eef8f10957d349307bb2c1752", kill_on_drop: false }` [INFO] [stdout] 28d2e83a5233bb45b3828596e136414ecf0e717eef8f10957d349307bb2c1752 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b56ae0bb7f9b929a718e12a6cdf01c951066e41cad20247d81050bcd220c2a7 [INFO] running `Command { std: "docker" "start" "-a" "0b56ae0bb7f9b929a718e12a6cdf01c951066e41cad20247d81050bcd220c2a7", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking bytemuck v1.14.3 [INFO] [stderr] Checking simd-adler32 v0.3.7 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking smallvec v1.13.1 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.0.88 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling version-compare v0.1.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking mint v0.5.9 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking miniz_oxide v0.7.2 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling sdl2-sys v0.36.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Checking spin v0.9.8 [INFO] [stderr] Checking chlorine v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Checking weezl v0.1.8 [INFO] [stderr] Checking flume v0.11.0 [INFO] [stderr] Checking zune-inflate v0.2.54 [INFO] [stderr] Checking flate2 v1.0.28 [INFO] [stderr] Checking fdeflate v0.3.4 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking wide v0.7.15 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Checking half v2.4.0 [INFO] [stderr] Compiling sdl2 v0.36.0 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling ahash v0.8.9 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking ryu v1.0.17 [INFO] [stderr] Checking aho-corasick v1.1.2 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling inflections v1.1.1 [INFO] [stderr] Compiling syn v2.0.50 [INFO] [stderr] Checking color_quant v1.1.0 [INFO] [stderr] Checking bit_field v0.10.2 [INFO] [stderr] Checking lebe v0.5.2 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking gif v0.13.1 [INFO] [stderr] Checking png v0.17.13 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking zerocopy v0.7.32 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking qoi v0.4.1 [INFO] [stderr] Checking rayon v1.8.1 [INFO] [stderr] Checking exr v1.72.0 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling imgui-sys v0.11.0 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking num-complex v0.4.5 [INFO] [stderr] Checking presser v0.3.1 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking is-terminal v0.4.12 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking unicode-segmentation v1.11.0 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking regex-automata v0.4.5 [INFO] [stderr] Checking urlencoding v2.1.3 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking tobj v4.0.1 [INFO] [stderr] Compiling cstr v0.2.11 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking ultraviolet v0.9.2 [INFO] [stderr] Checking static_assertions v1.1.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Checking convert_case v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling gltf-derive v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking jpeg-decoder v0.3.1 [INFO] [stderr] Checking tiff v0.9.1 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking env_logger v0.10.2 [INFO] [stderr] Checking image v0.24.9 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Checking gltf-json v1.4.0 [INFO] [stderr] Checking nalgebra v0.32.4 [INFO] [stderr] Checking gltf v1.4.0 [INFO] [stderr] Checking imgui v0.11.0 [INFO] [stderr] Checking imgui-sdl2 v0.15.3 [INFO] [stderr] Checking gpu-allocator v0.25.0 [INFO] [stderr] Checking imgui-rs-vulkan-renderer v1.12.0 [INFO] [stderr] Checking nalgebra-glm v0.18.0 [INFO] [stderr] Checking c_bind v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `c_bind` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/constants.rs [INFO] [stderr] * src/gui/mod.rs [INFO] [stderr] * src/logger.rs [INFO] [stderr] * src/vulkan/graphics/mesh.rs [INFO] [stderr] * src/vulkan/graphics/mod.rs [INFO] [stderr] * src/vulkan/init/buffer.rs [INFO] [stderr] * src/vulkan/init/g_pipeline.rs [INFO] [stderr] * src/vulkan/init/image.rs [INFO] [stderr] * src/vulkan/init/memory.rs [INFO] [stderr] * src/vulkan/materials/metalic.rs [INFO] [stderr] * src/vulkan/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:6 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:26 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:44 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:66 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr_2021, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr_2021, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:42 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr_2021 $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:57 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr_2021)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:82 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr_2021, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:101 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr_2021 $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:121 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr_2021)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/logger.rs:46:90 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | ($target:expr) => {}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($target:expr_2021) => {}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ($($s:expr),*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 2 | ($($s:expr_2021),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/vulkan/init/memory.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let holder = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:113 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:140 [INFO] [stderr] | [INFO] [stderr] 46 | ...) $(, ($left_level:expr_2021, $left_format:expr_2021 $(, $left_args:expr_2021)*))* $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:55:6 [INFO] [stderr] | [INFO] [stderr] 55 | ($target:expr_2021) => {}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let callback_data = *p_callback_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / unsafe extern "system" [INFO] [stdout] 50 | | fn vulkan_debug_callback( [INFO] [stdout] 51 | | message_severity: vk::DebugUtilsMessageSeverityFlagsEXT, [INFO] [stdout] 52 | | message_type: vk::DebugUtilsMessageTypeFlagsEXT, [INFO] [stdout] 53 | | p_callback_data: *const vk::DebugUtilsMessengerCallbackDataEXT, [INFO] [stdout] 54 | | _user_data: *mut std::os::raw::c_void, [INFO] [stdout] 55 | | ) -> vk::Bool32 { [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | CStr::from_ptr(callback_data.p_message_id_name).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | CStr::from_ptr(callback_data.p_message).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: unused variable: `copy_state` [INFO] [stdout] --> src/vulkan/init/image.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let copy_state = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_copy_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/constants.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | ($($s:expr_2021),*) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/image.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/image.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | unsafe fn unsafe_clone(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused variable: `holder` [INFO] [stderr] --> src/vulkan/init/memory.rs:108:9 [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | self.build_internals(device).map(|(pipeline, layout)|pipeline) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 108 | let holder = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn build_raw(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `copy_state` [INFO] [stderr] --> src/vulkan/init/image.rs:160:13 [INFO] [stderr] | [INFO] [stderr] 160 | let copy_state = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_copy_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `layout` [INFO] [stderr] --> src/vulkan/init/g_pipeline.rs:162:54 [INFO] [stderr] | [INFO] [stderr] 162 | self.build_internals(device).map(|(pipeline, layout)|pipeline) [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/vulkan/init/buffer.rs:91:9 [INFO] [stderr] | [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/buffer.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/buffer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub unsafe fn unsafe_clone(&mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 91 | unsafe{allocator.free(ManuallyDrop::into_inner(self.allocation)).expect(GPU_FREE)}; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/vulkan/graphics/mesh.rs:139:18 [INFO] [stderr] | [INFO] [stderr] 139 | for (index, pos) in positions.enumerate() { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `texture` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:141:28 [INFO] [stderr] | [INFO] [stderr] 141 | error_texture: texture, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pixelated_sampler` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:142:13 [INFO] [stderr] | [INFO] [stderr] 142 | pixelated_sampler, [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vulkan/init/buffer.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe{allocator.free(ManuallyDrop::into_inner(self.allocation)).expect(GPU_FREE)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `pixelated_sampler: _` [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/buffer.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn internal_destroy(mut self, device:&mut Device, allocator:&mut Allocator) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/vulkan/graphics/mesh.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | for (index, pos) in positions.enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `texture_descriptor_layout` [INFO] [stdout] warning: unused variable: `texture` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:141:28 [INFO] [stdout] | [INFO] [stdout] 141 | error_texture: texture, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/vulkan/graphics/mod.rs:143:13 [INFO] [stdout] warning: unused variable: `pixelated_sampler` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | pixelated_sampler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `pixelated_sampler: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `texture_descriptor_layout` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | texture_descriptor_layout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `texture_descriptor_layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 143 | texture_descriptor_layout, [INFO] [stdout] warning: unused variable: `rendering_info` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let rendering_info = pipeline::rendering_info(extent, &color_attachment_info, Some(&depth_attachment_info)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `texture_descriptor_layout: _` [INFO] [stdout] warning: unused variable: `viewport` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let viewport = vk::Viewport::builder() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_viewport` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused variable: `scissor` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let scissor = vk::Rect2D::from(extent); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scissor` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `rendering_info` [INFO] [stdout] warning: unused variable: `device` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | device: &mut Device, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/vulkan/graphics/mod.rs:393:13 [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | cmd: vk::CommandBuffer, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `material_types_in_layout` [INFO] [stdout] --> src/vulkan/materials/metalic.rs:84:42 [INFO] [stdout] | [INFO] [stdout] 84 | ...or_layout, material_types_in_layout) = layout_builder.build(device, vk::ShaderStageFlags::FRAGMENT|vk::ShaderStageFlags::VERTEX)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material_types_in_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 393 | let rendering_info = pipeline::rendering_info(extent, &color_attachment_info, Some(&depth_attachment_info)); [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/materials/metalic.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | fn internal_destroy(mut self, device: &mut Device) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `viewport` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:396:13 [INFO] [stderr] | [INFO] [stderr] 396 | let viewport = vk::Viewport::builder() [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_viewport` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `scissor` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:402:13 [INFO] [stderr] | [INFO] [stderr] 402 | let scissor = vk::Rect2D::from(extent); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scissor` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `device` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:385:9 [INFO] [stderr] | [INFO] [stderr] 385 | device: &mut Device, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cmd` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:386:9 [INFO] [stderr] | [INFO] [stderr] 386 | cmd: vk::CommandBuffer, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `material_types_in_layout` [INFO] [stderr] --> src/vulkan/materials/metalic.rs:84:42 [INFO] [stderr] | [INFO] [stderr] 84 | ...or_layout, material_types_in_layout) = layout_builder.build(device, vk::ShaderStageFlags::FRAGMENT|vk::ShaderStageFlags::VERTEX)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material_types_in_layout` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `render_image` [INFO] [stderr] --> src/vulkan/mod.rs:156:14 [INFO] [stderr] | [INFO] [stderr] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_image` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `depth_image` [INFO] [stderr] --> src/vulkan/mod.rs:156:28 [INFO] [stderr] | [INFO] [stdout] warning: unused variable: `render_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] warning: unused variable: `depth_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_image` [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/vulkan/mod.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn gui_tick(&mut self, data:&InputData) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused variable: `ui_data` [INFO] [stdout] --> src/gui/mod.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | let (context, platform, ui_data) = self.get_common_mut(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/vulkan/mod.rs:220:32 [INFO] [stderr] | [INFO] [stderr] 220 | pub fn gui_tick(&mut self, data:&InputData) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ui_data` [INFO] [stderr] --> src/gui/mod.rs:61:33 [INFO] [stderr] | [INFO] [stderr] 61 | let (context, platform, ui_data) = self.get_common_mut(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_data` [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors; 18 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | / ::core::slice::from_raw_parts( [INFO] [stdout] 137 | | (p as *const T) as *const u8, [INFO] [stdout] 138 | | ::core::mem::size_of::(), [INFO] [stdout] 139 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe fn any_as_u8_slice(p: &T) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `r_object::Node` is more private than the item `RenderableNode::Node::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ field `RenderableNode::Node::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `r_object::Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MeshNode` is more private than the item `RenderableNode::MeshNode::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ field `RenderableNode::MeshNode::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `MeshNode` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct MeshNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel_dimensions` is never used [INFO] [stdout] --> src/window/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Window { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_pixel_dimensions(&self) -> (u32,u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `memory_properties` and `properties` are never read [INFO] [stdout] --> src/vulkan/init/p_device.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PDevice { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub memory_properties: vk::PhysicalDeviceMemoryProperties, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub properties: vk::PhysicalDeviceProperties, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `image_count` is never read [INFO] [stdout] --> src/vulkan/init/swapchain.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Swapchain { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 30 | pub image_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `texture` is never used [INFO] [stdout] --> src/vulkan/init/image.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ImageMetadata { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 81 | pub fn texture(name:&'static str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_extent2d` and `copy_from_image` are never used [INFO] [stdout] --> src/vulkan/init/image.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Image { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_extent2d(&self) -> vk::Extent2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn copy_from_image(&mut self, device:&Device, cmd:vk::CommandBuffer, src:Image) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl DescriptorLayoutBuilder { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `max_sets` and `fill_pool_sizes` are never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl DescriptorPoolCount { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn max_sets(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn fill_pool_sizes(&self, target:&mut [vk::DescriptorPoolSize; DESCRIPTOR_TYPE_COUNT]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:471:12 [INFO] [stdout] | [INFO] [stdout] 470 | impl DescriptorWriter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 471 | pub fn create() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `underlying` is never used [INFO] [stdout] --> src/macros.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 38 | impl $base { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 39 | pub fn underlying(&self) -> $ret_type { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/vulkan/init/g_pipeline.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | macros::impl_underlying!(GPipeline, vk::Pipeline, pipeline); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `macros::impl_underlying` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_mesh_pipeline` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn init_mesh_pipeline(device:&mut Device, render_image:&Image, depth_image:&Image, texture_descriptor:&DescriptorLayout) -> GPipeline { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `build`, `clear`, `set_vertex_input_state`, and `set_blending_alphablend` are never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl GPipelineBuilder { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn clear(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn set_vertex_input_state(&mut self, input_binding:&[vk::VertexInputBindingDescription], vertex_attribute:&[vk::VertexInputAttrib... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn set_blending_alphablend(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_dispatchable` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:356:12 [INFO] [stdout] | [INFO] [stdout] 355 | impl GPipeline { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 356 | pub fn get_dispatchable(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `draw_scene` and `subresource_range` are never used [INFO] [stdout] --> src/vulkan/graphics/mod.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl VInit { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 384 | pub fn draw_scene( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub fn subresource_range(aspect:vk::ImageAspectFlags) -> vk::ImageSubresourceRange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 45 | impl FrameData { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub(in self) fn get_references(&mut self) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl FramesData { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_references(&mut self, frame: usize) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Node` and `MeshNode` are never constructed [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum RenderableNode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `surfaces`, and `meshes` are never read [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 50 | pub name: ArrayString<64>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | pub meshes: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` 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 `destruct` is never used [INFO] [stdout] --> src/vulkan/objects/d_stack.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DestructionStack { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn destruct(&mut self, mut args:VkDestructorArguments) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transparent` and `Other` are never constructed [INFO] [stdout] --> src/vulkan/materials/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum MaterialPass { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 47 | MainColor, [INFO] [stdout] 48 | Transparent, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 49 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaterialPass` 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: associated function `clear_resources` is never used [INFO] [stdout] --> src/vulkan/materials/metalic.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl MetalicMaterial { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn clear_resources() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `background_index` and `push_constants` are never read [INFO] [stdout] --> src/gui/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct InputData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | pub background_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub push_constants: ComputePushConstants, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComputeEffectMetadata` is never constructed [INFO] [stdout] --> src/graphics/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ComputeEffectMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComputeEffectMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_index` and `count` are never read [INFO] [stdout] --> src/graphics/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct GeoSurface { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 65 | pub start_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 66 | pub count: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeoSurface` 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: field `surfaces` is never read [INFO] [stdout] --> src/graphics/mod.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 72 | pub name: ArrayString<64>, [INFO] [stdout] 73 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `c_bind` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/constants.rs [INFO] [stderr] * src/gui/mod.rs [INFO] [stderr] * src/logger.rs [INFO] [stderr] * src/vulkan/graphics/mesh.rs [INFO] [stderr] * src/vulkan/graphics/mod.rs [INFO] [stderr] * src/vulkan/init/buffer.rs [INFO] [stderr] * src/vulkan/init/g_pipeline.rs [INFO] [stderr] * src/vulkan/init/image.rs [INFO] [stderr] * src/vulkan/init/memory.rs [INFO] [stderr] * src/vulkan/materials/metalic.rs [INFO] [stderr] * src/vulkan/mod.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:6 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:26 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:44 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:66 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:90 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:113 [INFO] [stderr] | [INFO] [stderr] 46 | ($target:expr_2021, ($level:expr_2021, $format:expr_2021 $(, $args:expr_2021)*) $(, ($left_level:expr_2021, $left_format:expr_2021 $(... [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:46:140 [INFO] [stderr] | [INFO] [stderr] 46 | ...) $(, ($left_level:expr_2021, $left_format:expr_2021 $(, $left_args:expr_2021)*))* $(,)?) => { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/logger.rs:55:6 [INFO] [stderr] | [INFO] [stderr] 55 | ($target:expr_2021) => {}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] error[E0658]: fragment specifier `expr_2021` is unstable [INFO] [stderr] --> src/constants.rs:2:8 [INFO] [stderr] | [INFO] [stderr] 2 | ($($s:expr_2021),*) => { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #123742 for more information [INFO] [stderr] = help: add `#![feature(expr_fragment_specifier_2024)]` to the crate attributes to enable [INFO] [stderr] = note: this compiler was built on 2024-09-17; consider upgrading it if it is out of date [INFO] [stderr] [INFO] [stderr] warning: unused variable: `holder` [INFO] [stderr] --> src/vulkan/init/memory.rs:108:9 [INFO] [stderr] | [INFO] [stderr] 108 | let holder = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `copy_state` [INFO] [stderr] --> src/vulkan/init/image.rs:160:13 [INFO] [stderr] | [INFO] [stderr] 160 | let copy_state = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_copy_state` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `layout` [INFO] [stderr] --> src/vulkan/init/g_pipeline.rs:162:54 [INFO] [stderr] | [INFO] [stderr] 162 | self.build_internals(device).map(|(pipeline, layout)|pipeline) [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stderr] [INFO] [stderr] warning: unnecessary `unsafe` block [INFO] [stderr] --> src/vulkan/init/buffer.rs:91:9 [INFO] [stderr] | [INFO] [stderr] 91 | unsafe{allocator.free(ManuallyDrop::into_inner(self.allocation)).expect(GPU_FREE)}; [INFO] [stderr] | ^^^^^^ unnecessary `unsafe` block [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `index` [INFO] [stderr] --> src/vulkan/graphics/mesh.rs:139:18 [INFO] [stderr] | [INFO] [stderr] 139 | for (index, pos) in positions.enumerate() { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `texture` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:141:28 [INFO] [stderr] | [INFO] [stderr] 141 | error_texture: texture, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `pixelated_sampler` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:142:13 [INFO] [stderr] | [INFO] [stderr] 142 | pixelated_sampler, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `pixelated_sampler: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `texture_descriptor_layout` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:143:13 [INFO] [stderr] | [INFO] [stderr] 143 | texture_descriptor_layout, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `texture_descriptor_layout: _` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rendering_info` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:393:13 [INFO] [stderr] | [INFO] [stderr] 393 | let rendering_info = pipeline::rendering_info(extent, &color_attachment_info, Some(&depth_attachment_info)); [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_info` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `viewport` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:396:13 [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:14 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] = note: `--force-warn edition-2024-expr-fragment-specifier` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr_2021, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 396 | let viewport = vk::Viewport::builder() [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:28 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr_2021, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_viewport` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:42 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr_2021 $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:57 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr_2021)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `scissor` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:82 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr_2021, $left_format:expr $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] --> src/vulkan/graphics/mod.rs:402:13 [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:101 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr_2021 $(, $left_args:expr)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:46:121 [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr)*))* $(,)?) ... [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 46 | ($target:expr, ($level:expr, $format:expr $(, $args:expr)*) $(, ($left_level:expr, $left_format:expr $(, $left_args:expr_2021)*))* $(,)?) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] 402 | let scissor = vk::Rect2D::from(extent); [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/logger.rs:55:14 [INFO] [stdout] | [INFO] [stdout] 55 | ($target:expr) => {}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 55 | ($target:expr_2021) => {}; [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scissor` [INFO] [stdout] warning: the `expr` fragment specifier will accept more expressions in the 2024 edition [INFO] [stdout] --> src/constants.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | ($($s:expr),*) => { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see Migration Guide [INFO] [stdout] help: to keep the existing behavior, use the `expr_2021` fragment specifier [INFO] [stdout] | [INFO] [stdout] 2 | ($($s:expr_2021),*) => { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/vulkan/init/memory.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let holder = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: unused variable: `device` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:385:9 [INFO] [stderr] | [INFO] [stderr] 385 | device: &mut Device, [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cmd` [INFO] [stderr] --> src/vulkan/graphics/mod.rs:386:9 [INFO] [stderr] | [INFO] [stderr] 386 | cmd: vk::CommandBuffer, [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `material_types_in_layout` [INFO] [stderr] --> src/vulkan/materials/metalic.rs:84:42 [INFO] [stderr] | [INFO] [stderr] 84 | ...or_layout, material_types_in_layout) = layout_builder.build(device, vk::ShaderStageFlags::FRAGMENT|vk::ShaderStageFlags::VERTEX)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material_types_in_layout` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `render_image` [INFO] [stderr] --> src/vulkan/mod.rs:156:14 [INFO] [stderr] | [INFO] [stderr] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_image` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `depth_image` [INFO] [stderr] --> src/vulkan/mod.rs:156:28 [INFO] [stderr] | [INFO] [stderr] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stderr] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_image` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `data` [INFO] [stderr] --> src/vulkan/mod.rs:220:32 [INFO] [stderr] | [INFO] [stderr] 220 | pub fn gui_tick(&mut self, data:&InputData) { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `ui_data` [INFO] [stderr] --> src/gui/mod.rs:61:33 [INFO] [stderr] | [INFO] [stderr] 61 | let (context, platform, ui_data) = self.get_common_mut(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_data` [INFO] [stderr] [INFO] [stderr] error: aborting due to 9 previous errors; 18 warnings emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0658`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let callback_data = *p_callback_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / unsafe extern "system" [INFO] [stdout] 50 | | fn vulkan_debug_callback( [INFO] [stdout] 51 | | message_severity: vk::DebugUtilsMessageSeverityFlagsEXT, [INFO] [stdout] 52 | | message_type: vk::DebugUtilsMessageTypeFlagsEXT, [INFO] [stdout] 53 | | p_callback_data: *const vk::DebugUtilsMessengerCallbackDataEXT, [INFO] [stdout] 54 | | _user_data: *mut std::os::raw::c_void, [INFO] [stdout] 55 | | ) -> vk::Bool32 { [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | CStr::from_ptr(callback_data.p_message_id_name).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | CStr::from_ptr(callback_data.p_message).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `copy_state` [INFO] [stdout] --> src/vulkan/init/image.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let copy_state = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_copy_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/image.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/image.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | unsafe fn unsafe_clone(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | self.build_internals(device).map(|(pipeline, layout)|pipeline) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn build_raw(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/buffer.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/buffer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub unsafe fn unsafe_clone(&mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vulkan/init/buffer.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe{allocator.free(ManuallyDrop::into_inner(self.allocation)).expect(GPU_FREE)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/buffer.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn internal_destroy(mut self, device:&mut Device, allocator:&mut Allocator) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/vulkan/graphics/mesh.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | for (index, pos) in positions.enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:141:28 [INFO] [stdout] | [INFO] [stdout] 141 | error_texture: texture, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixelated_sampler` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | pixelated_sampler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `pixelated_sampler: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_descriptor_layout` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | texture_descriptor_layout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `texture_descriptor_layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rendering_info` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let rendering_info = pipeline::rendering_info(extent, &color_attachment_info, Some(&depth_attachment_info)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `viewport` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let viewport = vk::Viewport::builder() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_viewport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scissor` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let scissor = vk::Rect2D::from(extent); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scissor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | device: &mut Device, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | cmd: vk::CommandBuffer, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material_types_in_layout` [INFO] [stdout] --> src/vulkan/materials/metalic.rs:84:42 [INFO] [stdout] | [INFO] [stdout] 84 | ...or_layout, material_types_in_layout) = layout_builder.build(device, vk::ShaderStageFlags::FRAGMENT|vk::ShaderStageFlags::VERTEX)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material_types_in_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/materials/metalic.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | fn internal_destroy(mut self, device: &mut Device) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/vulkan/mod.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn gui_tick(&mut self, data:&InputData) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui_data` [INFO] [stdout] --> src/gui/mod.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | let (context, platform, ui_data) = self.get_common_mut(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | / ::core::slice::from_raw_parts( [INFO] [stdout] 137 | | (p as *const T) as *const u8, [INFO] [stdout] 138 | | ::core::mem::size_of::(), [INFO] [stdout] 139 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe fn any_as_u8_slice(p: &T) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `r_object::Node` is more private than the item `RenderableNode::Node::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ field `RenderableNode::Node::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `r_object::Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MeshNode` is more private than the item `RenderableNode::MeshNode::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ field `RenderableNode::MeshNode::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `MeshNode` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct MeshNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel_dimensions` is never used [INFO] [stdout] --> src/window/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Window { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_pixel_dimensions(&self) -> (u32,u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `memory_properties` and `properties` are never read [INFO] [stdout] --> src/vulkan/init/p_device.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PDevice { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub memory_properties: vk::PhysicalDeviceMemoryProperties, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub properties: vk::PhysicalDeviceProperties, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `image_count` is never read [INFO] [stdout] --> src/vulkan/init/swapchain.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Swapchain { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 30 | pub image_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `texture` is never used [INFO] [stdout] --> src/vulkan/init/image.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ImageMetadata { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 81 | pub fn texture(name:&'static str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_extent2d` and `copy_from_image` are never used [INFO] [stdout] --> src/vulkan/init/image.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Image { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_extent2d(&self) -> vk::Extent2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn copy_from_image(&mut self, device:&Device, cmd:vk::CommandBuffer, src:Image) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl DescriptorLayoutBuilder { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `max_sets` and `fill_pool_sizes` are never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl DescriptorPoolCount { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn max_sets(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn fill_pool_sizes(&self, target:&mut [vk::DescriptorPoolSize; DESCRIPTOR_TYPE_COUNT]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:471:12 [INFO] [stdout] | [INFO] [stdout] 470 | impl DescriptorWriter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 471 | pub fn create() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `underlying` is never used [INFO] [stdout] --> src/macros.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 38 | impl $base { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 39 | pub fn underlying(&self) -> $ret_type { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/vulkan/init/g_pipeline.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | macros::impl_underlying!(GPipeline, vk::Pipeline, pipeline); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `macros::impl_underlying` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_mesh_pipeline` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn init_mesh_pipeline(device:&mut Device, render_image:&Image, depth_image:&Image, texture_descriptor:&DescriptorLayout) -> GPipeline { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `build`, `clear`, `set_vertex_input_state`, and `set_blending_alphablend` are never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl GPipelineBuilder { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn clear(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn set_vertex_input_state(&mut self, input_binding:&[vk::VertexInputBindingDescription], vertex_attribute:&[vk::VertexInputAttrib... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn set_blending_alphablend(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_dispatchable` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:356:12 [INFO] [stdout] | [INFO] [stdout] 355 | impl GPipeline { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 356 | pub fn get_dispatchable(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `draw_scene` and `subresource_range` are never used [INFO] [stdout] --> src/vulkan/graphics/mod.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl VInit { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 384 | pub fn draw_scene( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub fn subresource_range(aspect:vk::ImageAspectFlags) -> vk::ImageSubresourceRange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 45 | impl FrameData { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub(in self) fn get_references(&mut self) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl FramesData { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_references(&mut self, frame: usize) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Node` and `MeshNode` are never constructed [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum RenderableNode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `surfaces`, and `meshes` are never read [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 50 | pub name: ArrayString<64>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | pub meshes: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` 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 `destruct` is never used [INFO] [stdout] --> src/vulkan/objects/d_stack.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DestructionStack { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn destruct(&mut self, mut args:VkDestructorArguments) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transparent` and `Other` are never constructed [INFO] [stdout] --> src/vulkan/materials/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum MaterialPass { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 47 | MainColor, [INFO] [stdout] 48 | Transparent, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 49 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaterialPass` 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: associated function `clear_resources` is never used [INFO] [stdout] --> src/vulkan/materials/metalic.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl MetalicMaterial { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn clear_resources() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `background_index` and `push_constants` are never read [INFO] [stdout] --> src/gui/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct InputData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | pub background_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub push_constants: ComputePushConstants, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComputeEffectMetadata` is never constructed [INFO] [stdout] --> src/graphics/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ComputeEffectMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComputeEffectMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_index` and `count` are never read [INFO] [stdout] --> src/graphics/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct GeoSurface { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 65 | pub start_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 66 | pub count: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeoSurface` 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: field `surfaces` is never read [INFO] [stdout] --> src/graphics/mod.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 72 | pub name: ArrayString<64>, [INFO] [stdout] 73 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 63 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.69s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking c_bind v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/vulkan/init/memory.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let holder = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `holder` [INFO] [stdout] --> src/vulkan/init/memory.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 108 | let holder = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_holder` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let callback_data = *p_callback_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / unsafe extern "system" [INFO] [stdout] 50 | | fn vulkan_debug_callback( [INFO] [stdout] 51 | | message_severity: vk::DebugUtilsMessageSeverityFlagsEXT, [INFO] [stdout] 52 | | message_type: vk::DebugUtilsMessageTypeFlagsEXT, [INFO] [stdout] 53 | | p_callback_data: *const vk::DebugUtilsMessengerCallbackDataEXT, [INFO] [stdout] 54 | | _user_data: *mut std::os::raw::c_void, [INFO] [stdout] 55 | | ) -> vk::Bool32 { [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:57:29 [INFO] [stdout] | [INFO] [stdout] 57 | let callback_data = *p_callback_data; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ dereference of raw pointer [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | / unsafe extern "system" [INFO] [stdout] 50 | | fn vulkan_debug_callback( [INFO] [stdout] 51 | | message_severity: vk::DebugUtilsMessageSeverityFlagsEXT, [INFO] [stdout] 52 | | message_type: vk::DebugUtilsMessageTypeFlagsEXT, [INFO] [stdout] 53 | | p_callback_data: *const vk::DebugUtilsMessengerCallbackDataEXT, [INFO] [stdout] 54 | | _user_data: *mut std::os::raw::c_void, [INFO] [stdout] 55 | | ) -> vk::Bool32 { [INFO] [stdout] | |___________________^ [INFO] [stdout] = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | CStr::from_ptr(callback_data.p_message_id_name).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | CStr::from_ptr(callback_data.p_message).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | CStr::from_ptr(callback_data.p_message_id_name).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ffi::CStr::from_ptr` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/d_messenger.rs:69:13 [INFO] [stdout] | [INFO] [stdout] 69 | CStr::from_ptr(callback_data.p_message).to_string_lossy() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `copy_state` [INFO] [stdout] --> src/vulkan/init/image.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let copy_state = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_copy_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `copy_state` [INFO] [stdout] --> src/vulkan/init/image.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 160 | let copy_state = cmd_ctrl.run_su_buffer(device, &mut |device, cmd|{ [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_copy_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/image.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/image.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | unsafe fn unsafe_clone(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/image.rs:345:9 [INFO] [stdout] | [INFO] [stdout] 345 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/image.rs:344:5 [INFO] [stdout] | [INFO] [stdout] 344 | unsafe fn unsafe_clone(&self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | self.build_internals(device).map(|(pipeline, layout)|pipeline) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn build_raw(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:18 [INFO] [stdout] | [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | self.build_internals(device).map(|(pipeline, layout)|pipeline) [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | pub fn build_raw(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/buffer.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/buffer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub unsafe fn unsafe_clone(&mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vulkan/init/buffer.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe{allocator.free(ManuallyDrop::into_inner(self.allocation)).expect(GPU_FREE)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/buffer.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn internal_destroy(mut self, device:&mut Device, allocator:&mut Allocator) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/vulkan/graphics/mesh.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | for (index, pos) in positions.enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::ptr::read` is unsafe and requires unsafe block [INFO] [stdout] --> src/vulkan/init/buffer.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | std::ptr::read(self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/vulkan/init/buffer.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | pub unsafe fn unsafe_clone(&mut self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/vulkan/init/buffer.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | unsafe{allocator.free(ManuallyDrop::into_inner(self.allocation)).expect(GPU_FREE)}; [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/init/buffer.rs:88:25 [INFO] [stdout] | [INFO] [stdout] 88 | fn internal_destroy(mut self, device:&mut Device, allocator:&mut Allocator) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/vulkan/graphics/mesh.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | for (index, pos) in positions.enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:141:28 [INFO] [stdout] | [INFO] [stdout] 141 | error_texture: texture, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixelated_sampler` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | pixelated_sampler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `pixelated_sampler: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_descriptor_layout` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | texture_descriptor_layout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `texture_descriptor_layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:141:28 [INFO] [stdout] | [INFO] [stdout] 141 | error_texture: texture, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texture` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pixelated_sampler` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:142:13 [INFO] [stdout] | [INFO] [stdout] 142 | pixelated_sampler, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: try ignoring the field: `pixelated_sampler: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texture_descriptor_layout` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | texture_descriptor_layout, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try ignoring the field: `texture_descriptor_layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rendering_info` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let rendering_info = pipeline::rendering_info(extent, &color_attachment_info, Some(&depth_attachment_info)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `viewport` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let viewport = vk::Viewport::builder() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_viewport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scissor` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let scissor = vk::Rect2D::from(extent); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scissor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | device: &mut Device, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | cmd: vk::CommandBuffer, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rendering_info` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:393:13 [INFO] [stdout] | [INFO] [stdout] 393 | let rendering_info = pipeline::rendering_info(extent, &color_attachment_info, Some(&depth_attachment_info)); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rendering_info` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `viewport` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:396:13 [INFO] [stdout] | [INFO] [stdout] 396 | let viewport = vk::Viewport::builder() [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_viewport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scissor` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let scissor = vk::Rect2D::from(extent); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_scissor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `device` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:385:9 [INFO] [stdout] | [INFO] [stdout] 385 | device: &mut Device, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_device` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cmd` [INFO] [stdout] --> src/vulkan/graphics/mod.rs:386:9 [INFO] [stdout] | [INFO] [stdout] 386 | cmd: vk::CommandBuffer, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_cmd` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material_types_in_layout` [INFO] [stdout] --> src/vulkan/materials/metalic.rs:84:42 [INFO] [stdout] | [INFO] [stdout] 84 | ...or_layout, material_types_in_layout) = layout_builder.build(device, vk::ShaderStageFlags::FRAGMENT|vk::ShaderStageFlags::VERTEX)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material_types_in_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/materials/metalic.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | fn internal_destroy(mut self, device: &mut Device) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `material_types_in_layout` [INFO] [stdout] --> src/vulkan/materials/metalic.rs:84:42 [INFO] [stdout] | [INFO] [stdout] 84 | ...or_layout, material_types_in_layout) = layout_builder.build(device, vk::ShaderStageFlags::FRAGMENT|vk::ShaderStageFlags::VERTEX)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_material_types_in_layout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/vulkan/materials/metalic.rs:165:25 [INFO] [stdout] | [INFO] [stdout] 165 | fn internal_destroy(mut self, device: &mut Device) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/vulkan/mod.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn gui_tick(&mut self, data:&InputData) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `render_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:14 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_render_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `depth_image` [INFO] [stdout] --> src/vulkan/mod.rs:156:28 [INFO] [stdout] | [INFO] [stdout] 156 | let (render_image, depth_image) = canvas.get_images(); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_depth_image` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `data` [INFO] [stdout] --> src/vulkan/mod.rs:220:32 [INFO] [stdout] | [INFO] [stdout] 220 | pub fn gui_tick(&mut self, data:&InputData) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui_data` [INFO] [stdout] --> src/gui/mod.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | let (context, platform, ui_data) = self.get_common_mut(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ui_data` [INFO] [stdout] --> src/gui/mod.rs:61:33 [INFO] [stdout] | [INFO] [stdout] 61 | let (context, platform, ui_data) = self.get_common_mut(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ui_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | / ::core::slice::from_raw_parts( [INFO] [stdout] 137 | | (p as *const T) as *const u8, [INFO] [stdout] 138 | | ::core::mem::size_of::(), [INFO] [stdout] 139 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe fn any_as_u8_slice(p: &T) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `r_object::Node` is more private than the item `RenderableNode::Node::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ field `RenderableNode::Node::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `r_object::Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MeshNode` is more private than the item `RenderableNode::MeshNode::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ field `RenderableNode::MeshNode::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `MeshNode` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct MeshNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning[E0133]: call to unsafe function `std::slice::from_raw_parts` is unsafe and requires unsafe block [INFO] [stdout] --> src/main.rs:136:5 [INFO] [stdout] | [INFO] [stdout] 136 | / ::core::slice::from_raw_parts( [INFO] [stdout] 137 | | (p as *const T) as *const u8, [INFO] [stdout] 138 | | ::core::mem::size_of::(), [INFO] [stdout] 139 | | ) [INFO] [stdout] | |_____^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 135 | unsafe fn any_as_u8_slice(p: &T) -> &[u8] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel_dimensions` is never used [INFO] [stdout] --> src/window/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Window { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_pixel_dimensions(&self) -> (u32,u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `memory_properties` and `properties` are never read [INFO] [stdout] --> src/vulkan/init/p_device.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PDevice { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub memory_properties: vk::PhysicalDeviceMemoryProperties, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub properties: vk::PhysicalDeviceProperties, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `image_count` is never read [INFO] [stdout] --> src/vulkan/init/swapchain.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Swapchain { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 30 | pub image_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `texture` is never used [INFO] [stdout] --> src/vulkan/init/image.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ImageMetadata { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 81 | pub fn texture(name:&'static str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_extent2d` and `copy_from_image` are never used [INFO] [stdout] --> src/vulkan/init/image.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Image { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_extent2d(&self) -> vk::Extent2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn copy_from_image(&mut self, device:&Device, cmd:vk::CommandBuffer, src:Image) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl DescriptorLayoutBuilder { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `max_sets` and `fill_pool_sizes` are never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl DescriptorPoolCount { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn max_sets(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn fill_pool_sizes(&self, target:&mut [vk::DescriptorPoolSize; DESCRIPTOR_TYPE_COUNT]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:471:12 [INFO] [stdout] | [INFO] [stdout] 470 | impl DescriptorWriter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 471 | pub fn create() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `underlying` is never used [INFO] [stdout] --> src/macros.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 38 | impl $base { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 39 | pub fn underlying(&self) -> $ret_type { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/vulkan/init/g_pipeline.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | macros::impl_underlying!(GPipeline, vk::Pipeline, pipeline); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `macros::impl_underlying` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_mesh_pipeline` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn init_mesh_pipeline(device:&mut Device, render_image:&Image, depth_image:&Image, texture_descriptor:&DescriptorLayout) -> GPipeline { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `build`, `clear`, `set_vertex_input_state`, and `set_blending_alphablend` are never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl GPipelineBuilder { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn clear(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn set_vertex_input_state(&mut self, input_binding:&[vk::VertexInputBindingDescription], vertex_attribute:&[vk::VertexInputAttrib... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn set_blending_alphablend(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_dispatchable` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:356:12 [INFO] [stdout] | [INFO] [stdout] 355 | impl GPipeline { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 356 | pub fn get_dispatchable(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `draw_scene` and `subresource_range` are never used [INFO] [stdout] --> src/vulkan/graphics/mod.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl VInit { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 384 | pub fn draw_scene( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub fn subresource_range(aspect:vk::ImageAspectFlags) -> vk::ImageSubresourceRange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 45 | impl FrameData { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub(in self) fn get_references(&mut self) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl FramesData { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_references(&mut self, frame: usize) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Node` and `MeshNode` are never constructed [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum RenderableNode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `surfaces`, and `meshes` are never read [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 50 | pub name: ArrayString<64>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | pub meshes: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` 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 `destruct` is never used [INFO] [stdout] --> src/vulkan/objects/d_stack.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DestructionStack { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn destruct(&mut self, mut args:VkDestructorArguments) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transparent` and `Other` are never constructed [INFO] [stdout] --> src/vulkan/materials/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum MaterialPass { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 47 | MainColor, [INFO] [stdout] 48 | Transparent, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 49 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaterialPass` 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: associated function `clear_resources` is never used [INFO] [stdout] --> src/vulkan/materials/metalic.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl MetalicMaterial { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn clear_resources() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `background_index` and `push_constants` are never read [INFO] [stdout] --> src/gui/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct InputData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | pub background_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub push_constants: ComputePushConstants, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComputeEffectMetadata` is never constructed [INFO] [stdout] --> src/graphics/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ComputeEffectMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComputeEffectMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_index` and `count` are never read [INFO] [stdout] --> src/graphics/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct GeoSurface { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 65 | pub start_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 66 | pub count: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeoSurface` 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: field `surfaces` is never read [INFO] [stdout] --> src/graphics/mod.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 72 | pub name: ArrayString<64>, [INFO] [stdout] 73 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `r_object::Node` is more private than the item `RenderableNode::Node::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ field `RenderableNode::Node::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `r_object::Node` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | struct Node { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `MeshNode` is more private than the item `RenderableNode::MeshNode::0` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:33:14 [INFO] [stdout] | [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ field `RenderableNode::MeshNode::0` is reachable at visibility `pub(graphics)` [INFO] [stdout] | [INFO] [stdout] note: but type `MeshNode` is only usable at visibility `pub(self)` [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 42 | struct MeshNode { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_pixel_dimensions` is never used [INFO] [stdout] --> src/window/mod.rs:104:12 [INFO] [stdout] | [INFO] [stdout] 21 | impl Window { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | pub fn get_pixel_dimensions(&self) -> (u32,u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `memory_properties` and `properties` are never read [INFO] [stdout] --> src/vulkan/init/p_device.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct PDevice { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 19 | pub memory_properties: vk::PhysicalDeviceMemoryProperties, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 20 | pub properties: vk::PhysicalDeviceProperties, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `image_count` is never read [INFO] [stdout] --> src/vulkan/init/swapchain.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct Swapchain { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 30 | pub image_count: usize, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `texture` is never used [INFO] [stdout] --> src/vulkan/init/image.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 80 | impl ImageMetadata { [INFO] [stdout] | ------------------ associated function in this implementation [INFO] [stdout] 81 | pub fn texture(name:&'static str) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_extent2d` and `copy_from_image` are never used [INFO] [stdout] --> src/vulkan/init/image.rs:91:12 [INFO] [stdout] | [INFO] [stdout] 88 | impl Image { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 91 | pub fn get_extent2d(&self) -> vk::Extent2D { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 259 | pub fn copy_from_image(&mut self, device:&Device, cmd:vk::CommandBuffer, src:Image) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `reset` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 84 | impl DescriptorLayoutBuilder { [INFO] [stdout] | ---------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn reset(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `max_sets` and `fill_pool_sizes` are never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:167:12 [INFO] [stdout] | [INFO] [stdout] 150 | impl DescriptorPoolCount { [INFO] [stdout] | ------------------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 167 | pub fn max_sets(&self) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn fill_pool_sizes(&self, target:&mut [vk::DescriptorPoolSize; DESCRIPTOR_TYPE_COUNT]) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `create` is never used [INFO] [stdout] --> src/vulkan/init/descriptors.rs:471:12 [INFO] [stdout] | [INFO] [stdout] 470 | impl DescriptorWriter { [INFO] [stdout] | --------------------- associated function in this implementation [INFO] [stdout] 471 | pub fn create() -> Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `underlying` is never used [INFO] [stdout] --> src/macros.rs:39:20 [INFO] [stdout] | [INFO] [stdout] 38 | impl $base { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 39 | pub fn underlying(&self) -> $ret_type { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/vulkan/init/g_pipeline.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | macros::impl_underlying!(GPipeline, vk::Pipeline, pipeline); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `macros::impl_underlying` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `init_mesh_pipeline` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn init_mesh_pipeline(device:&mut Device, render_image:&Image, depth_image:&Image, texture_descriptor:&DescriptorLayout) -> GPipeline { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `build`, `clear`, `set_vertex_input_state`, and `set_blending_alphablend` are never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:140:12 [INFO] [stdout] | [INFO] [stdout] 130 | impl GPipelineBuilder { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 140 | pub fn build(mut self, device:&mut Device) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 204 | pub fn clear(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 304 | pub fn set_vertex_input_state(&mut self, input_binding:&[vk::VertexInputBindingDescription], vertex_attribute:&[vk::VertexInputAttrib... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 334 | pub fn set_blending_alphablend(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_dispatchable` is never used [INFO] [stdout] --> src/vulkan/init/g_pipeline.rs:356:12 [INFO] [stdout] | [INFO] [stdout] 355 | impl GPipeline { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] 356 | pub fn get_dispatchable(&self) -> Rc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `draw_scene` and `subresource_range` are never used [INFO] [stdout] --> src/vulkan/graphics/mod.rs:384:12 [INFO] [stdout] | [INFO] [stdout] 107 | impl VInit { [INFO] [stdout] | ---------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 384 | pub fn draw_scene( [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 467 | pub fn subresource_range(aspect:vk::ImageAspectFlags) -> vk::ImageSubresourceRange { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:108:21 [INFO] [stdout] | [INFO] [stdout] 45 | impl FrameData { [INFO] [stdout] | -------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 108 | pub(in self) fn get_references(&mut self) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_references` is never used [INFO] [stdout] --> src/vulkan/graphics/frame.rs:147:12 [INFO] [stdout] | [INFO] [stdout] 119 | impl FramesData { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_references(&mut self, frame: usize) -> (&mut GDescriptorAllocator, &mut DestructionStack) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Node` and `MeshNode` are never constructed [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub enum RenderableNode { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] 32 | Node(Node), [INFO] [stdout] | ^^^^ [INFO] [stdout] 33 | MeshNode(MeshNode), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name`, `surfaces`, and `meshes` are never read [INFO] [stdout] --> src/vulkan/graphics/r_object.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 50 | pub name: ArrayString<64>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 51 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | pub meshes: Vec, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` 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 `destruct` is never used [INFO] [stdout] --> src/vulkan/objects/d_stack.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl DestructionStack { [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn destruct(&mut self, mut args:VkDestructorArguments) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Transparent` and `Other` are never constructed [INFO] [stdout] --> src/vulkan/materials/mod.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 46 | pub enum MaterialPass { [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 47 | MainColor, [INFO] [stdout] 48 | Transparent, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 49 | Other, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MaterialPass` 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: associated function `clear_resources` is never used [INFO] [stdout] --> src/vulkan/materials/metalic.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 23 | impl MetalicMaterial { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn clear_resources() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `background_index` and `push_constants` are never read [INFO] [stdout] --> src/gui/mod.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct InputData { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 16 | pub background_index: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 17 | pub push_constants: ComputePushConstants, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `InputData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ComputeEffectMetadata` is never constructed [INFO] [stdout] --> src/graphics/mod.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ComputeEffectMetadata { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ComputeEffectMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `start_index` and `count` are never read [INFO] [stdout] --> src/graphics/mod.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct GeoSurface { [INFO] [stdout] | ---------- fields in this struct [INFO] [stdout] 65 | pub start_index: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 66 | pub count: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `GeoSurface` 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: field `surfaces` is never read [INFO] [stdout] --> src/graphics/mod.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 71 | pub struct MeshAssetMetadata { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 72 | pub name: ArrayString<64>, [INFO] [stdout] 73 | pub surfaces: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MeshAssetMetadata` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stdout] warning: 54 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.64s [INFO] running `Command { std: "docker" "inspect" "0b56ae0bb7f9b929a718e12a6cdf01c951066e41cad20247d81050bcd220c2a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b56ae0bb7f9b929a718e12a6cdf01c951066e41cad20247d81050bcd220c2a7", kill_on_drop: false }` [INFO] [stdout] 0b56ae0bb7f9b929a718e12a6cdf01c951066e41cad20247d81050bcd220c2a7