[INFO] cloning repository https://github.com/blue-codes-yep/Acoustic-Simulation [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/blue-codes-yep/Acoustic-Simulation" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-codes-yep%2FAcoustic-Simulation", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-codes-yep%2FAcoustic-Simulation'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bc7cebe8867afbc9fd66e5a6e0bcae27c0ecdbb4 [INFO] checking blue-codes-yep/Acoustic-Simulation against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-codes-yep%2FAcoustic-Simulation" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/blue-codes-yep/Acoustic-Simulation on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/blue-codes-yep/Acoustic-Simulation [INFO] finished tweaking git repo https://github.com/blue-codes-yep/Acoustic-Simulation [INFO] tweaked toml for git repo https://github.com/blue-codes-yep/Acoustic-Simulation written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/blue-codes-yep/Acoustic-Simulation 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded asio-sys v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b336c88c82d7fbe0c0f0cc4e0ae1c0c9d8a8d4692f734f13e840017c85439a2 [INFO] running `Command { std: "docker" "start" "-a" "1b336c88c82d7fbe0c0f0cc4e0ae1c0c9d8a8d4692f734f13e840017c85439a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b336c88c82d7fbe0c0f0cc4e0ae1c0c9d8a8d4692f734f13e840017c85439a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b336c88c82d7fbe0c0f0cc4e0ae1c0c9d8a8d4692f734f13e840017c85439a2", kill_on_drop: false }` [INFO] [stdout] 1b336c88c82d7fbe0c0f0cc4e0ae1c0c9d8a8d4692f734f13e840017c85439a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7e4d63e2793f98d1acadb8375a7840688185e32dbf674597511c9dd536612962 [INFO] running `Command { std: "docker" "start" "-a" "7e4d63e2793f98d1acadb8375a7840688185e32dbf674597511c9dd536612962", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling crossbeam-utils v0.8.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking zerocopy v0.7.31 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking robust v1.1.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking wide v0.7.13 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling cpal v0.15.2 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Checking crossbeam-epoch v0.9.16 [INFO] [stderr] Checking crossbeam-channel v0.5.9 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Checking crossbeam-queue v0.3.9 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking crossbeam-deque v0.8.4 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking spade v2.4.1 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Checking alsa v0.7.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking nalgebra v0.32.3 [INFO] [stderr] Checking parry3d v0.13.5 [INFO] [stderr] Checking rapier3d v0.17.2 [INFO] [stderr] Checking acoustic_simulation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Material`, `SoundWave` [INFO] [stdout] --> src/main.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use models::models::{SoundWave, Material}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImpulseJoint` [INFO] [stdout] --> src/engine/engine.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CCDSolver, ImpulseJoint, IntegrationParameters, MultibodyJointSet, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Material`, `SoundWave` [INFO] [stdout] --> src/main.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use models::models::{SoundWave, Material}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImpulseJoint` [INFO] [stdout] --> src/engine/engine.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CCDSolver, ImpulseJoint, IntegrationParameters, MultibodyJointSet, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/tests/tests.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let engine = Engine::new(); } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/engine/engine.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | for (body_handle, body) in self.bodies.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interacted_wave` [INFO] [stdout] --> src/engine/engine.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | let interacted_wave = interact(wave, &material); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interacted_wave` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/engine/engine.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | for (body_handle, body) in self.bodies.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interacted_wave` [INFO] [stdout] --> src/engine/engine.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | let interacted_wave = interact(wave, &material); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interacted_wave` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amplitude` [INFO] [stdout] --> src/sound/sound.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let amplitude: f32 = volume; // Example calculation for amplitude [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amplitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/sound/sound.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let direction = Vector::new(1.0, 0.0, 0.0); // Example default direction [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let position: rapier3d::prelude::nalgebra::Matrix, rapier3d::prelude::nalgebra::Const<1>, ... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_wave(sample_rate: f32, frequency: f32, volume: f32, position: Vector) -> Vec { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amplitude` [INFO] [stdout] --> src/sound/sound.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let amplitude: f32 = volume; // Example calculation for amplitude [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amplitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/sound/sound.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let direction = Vector::new(1.0, 0.0, 0.0); // Example default direction [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let position: rapier3d::prelude::nalgebra::Matrix, rapier3d::prelude::nalgebra::Const<1>, ... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_wave(sample_rate: f32, frequency: f32, volume: f32, position: Vector) -> Vec { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample_rate` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let sample_rate = 44100.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frequency` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let frequency = 528.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frequency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut wave: Vec = generate_wave(44100.0, 528.0, 0.5, Vector::new(0.0, 0.0, 0.0)); [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: methods `interact_mapping`, `step`, `process_sound_wave_interactions`, and `get_material_of_body` are never used [INFO] [stdout] --> src/engine/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 39 | pub fn interact_mapping(&self, wave: &SoundWave, material: &Material) -> SoundWave { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn process_sound_wave_interactions(&mut self, wave: &SoundWave) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_material_of_body(&self, body_handle: RigidBodyHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Metal` and `Glass` are never constructed [INFO] [stdout] --> src/models/models.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Material { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | Wood { absorption_coefficient: f32 }, [INFO] [stdout] 15 | Metal { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Glass { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Material` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample_rate` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let sample_rate = 44100.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frequency` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let frequency = 528.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frequency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut wave: Vec = generate_wave(44100.0, 528.0, 0.5, Vector::new(0.0, 0.0, 0.0)); [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: function `interact` is never used [INFO] [stdout] --> src/engine/engine.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn interact(wave: &SoundWave, material: &Material) -> SoundWave { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `absorption_coefficient` is never used [INFO] [stdout] --> src/engine/engine.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Material { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 13 | fn absorption_coefficient(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `interact_mapping`, `step`, `process_sound_wave_interactions`, and `get_material_of_body` are never used [INFO] [stdout] --> src/engine/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 39 | pub fn interact_mapping(&self, wave: &SoundWave, material: &Material) -> SoundWave { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn process_sound_wave_interactions(&mut self, wave: &SoundWave) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_material_of_body(&self, body_handle: RigidBodyHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wood`, `Metal`, and `Glass` are never constructed [INFO] [stdout] --> src/models/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Material { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | Wood { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Metal { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Glass { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Material` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 14.99s [INFO] running `Command { std: "docker" "inspect" "7e4d63e2793f98d1acadb8375a7840688185e32dbf674597511c9dd536612962", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7e4d63e2793f98d1acadb8375a7840688185e32dbf674597511c9dd536612962", kill_on_drop: false }` [INFO] [stdout] 7e4d63e2793f98d1acadb8375a7840688185e32dbf674597511c9dd536612962 [INFO] checking blue-codes-yep/Acoustic-Simulation against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fblue-codes-yep%2FAcoustic-Simulation" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/blue-codes-yep/Acoustic-Simulation on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/blue-codes-yep/Acoustic-Simulation [INFO] finished tweaking git repo https://github.com/blue-codes-yep/Acoustic-Simulation [INFO] tweaked toml for git repo https://github.com/blue-codes-yep/Acoustic-Simulation written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/blue-codes-yep/Acoustic-Simulation 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f03436be1658244bdd03dbac538802a043761196acb3e1e00539e946b859290d [INFO] running `Command { std: "docker" "start" "-a" "f03436be1658244bdd03dbac538802a043761196acb3e1e00539e946b859290d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f03436be1658244bdd03dbac538802a043761196acb3e1e00539e946b859290d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f03436be1658244bdd03dbac538802a043761196acb3e1e00539e946b859290d", kill_on_drop: false }` [INFO] [stdout] f03436be1658244bdd03dbac538802a043761196acb3e1e00539e946b859290d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3de63cdf951c0c1f997772ad3c91af99d75a0eef27a4af0b1ce4b049a06986c [INFO] running `Command { std: "docker" "start" "-a" "c3de63cdf951c0c1f997772ad3c91af99d75a0eef27a4af0b1ce4b049a06986c", kill_on_drop: false }` [INFO] [stderr] Compiling libm v0.2.8 [INFO] [stderr] Compiling num-traits v0.2.17 [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling crossbeam-utils v0.8.17 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memoffset v0.9.0 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Checking bytemuck v1.14.0 [INFO] [stderr] Checking smallvec v1.11.2 [INFO] [stderr] Compiling matrixmultiply v0.3.8 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking zerocopy v0.7.31 [INFO] [stderr] Compiling ahash v0.8.6 [INFO] [stderr] Compiling pkg-config v0.3.27 [INFO] [stderr] Checking safe_arch v0.7.1 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking allocator-api2 v0.2.16 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking robust v1.1.0 [INFO] [stderr] Checking wide v0.7.13 [INFO] [stderr] Checking arrayvec v0.7.4 [INFO] [stderr] Compiling cpal v0.15.2 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Compiling alsa-sys v0.3.1 [INFO] [stderr] Checking either v1.9.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking bit-vec v0.6.3 [INFO] [stderr] Checking crossbeam-epoch v0.9.16 [INFO] [stderr] Checking crossbeam-channel v0.5.9 [INFO] [stderr] Checking hashbrown v0.14.3 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Checking crossbeam-queue v0.3.9 [INFO] [stderr] Checking dasp_sample v0.11.0 [INFO] [stderr] Checking crossbeam-deque v0.8.4 [INFO] [stderr] Checking crossbeam v0.8.2 [INFO] [stderr] Checking num-complex v0.4.4 [INFO] [stderr] Checking approx v0.5.1 [INFO] [stderr] Checking spade v2.4.1 [INFO] [stderr] Checking nix v0.24.3 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Checking alsa v0.7.1 [INFO] [stderr] Checking simba v0.8.1 [INFO] [stderr] Compiling nalgebra-macros v0.2.1 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Checking nalgebra v0.32.3 [INFO] [stderr] Checking parry3d v0.13.5 [INFO] [stderr] Checking rapier3d v0.17.2 [INFO] [stderr] Checking acoustic_simulation v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Material`, `SoundWave` [INFO] [stdout] --> src/main.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use models::models::{SoundWave, Material}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImpulseJoint` [INFO] [stdout] --> src/engine/engine.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CCDSolver, ImpulseJoint, IntegrationParameters, MultibodyJointSet, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Material`, `SoundWave` [INFO] [stdout] --> src/main.rs:4:22 [INFO] [stdout] | [INFO] [stdout] 4 | use models::models::{SoundWave, Material}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImpulseJoint` [INFO] [stdout] --> src/engine/engine.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | CCDSolver, ImpulseJoint, IntegrationParameters, MultibodyJointSet, RigidBodySet, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use std::thread; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `engine` [INFO] [stdout] --> src/tests/tests.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let engine = Engine::new(); } [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_engine` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/engine/engine.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | for (body_handle, body) in self.bodies.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interacted_wave` [INFO] [stdout] --> src/engine/engine.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | let interacted_wave = interact(wave, &material); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interacted_wave` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amplitude` [INFO] [stdout] --> src/sound/sound.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let amplitude: f32 = volume; // Example calculation for amplitude [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amplitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/sound/sound.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let direction = Vector::new(1.0, 0.0, 0.0); // Example default direction [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let position: rapier3d::prelude::nalgebra::Matrix, rapier3d::prelude::nalgebra::Const<1>, ... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_wave(sample_rate: f32, frequency: f32, volume: f32, position: Vector) -> Vec { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/engine/engine.rs:139:27 [INFO] [stdout] | [INFO] [stdout] 139 | for (body_handle, body) in self.bodies.iter() { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interacted_wave` [INFO] [stdout] --> src/engine/engine.rs:141:21 [INFO] [stdout] | [INFO] [stdout] 141 | let interacted_wave = interact(wave, &material); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interacted_wave` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amplitude` [INFO] [stdout] --> src/sound/sound.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let amplitude: f32 = volume; // Example calculation for amplitude [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amplitude` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `direction` [INFO] [stdout] --> src/sound/sound.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let direction = Vector::new(1.0, 0.0, 0.0); // Example default direction [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_direction` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let position: rapier3d::prelude::nalgebra::Matrix, rapier3d::prelude::nalgebra::Const<1>, ... [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `position` [INFO] [stdout] --> src/sound/sound.rs:8:69 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn generate_wave(sample_rate: f32, frequency: f32, volume: f32, position: Vector) -> Vec { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_position` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample_rate` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let sample_rate = 44100.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frequency` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let frequency = 528.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frequency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut wave: Vec = generate_wave(44100.0, 528.0, 0.5, Vector::new(0.0, 0.0, 0.0)); [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: function `interact` is never used [INFO] [stdout] --> src/engine/engine.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn interact(wave: &SoundWave, material: &Material) -> SoundWave { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `absorption_coefficient` is never used [INFO] [stdout] --> src/engine/engine.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Material { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 13 | fn absorption_coefficient(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `interact_mapping`, `step`, `process_sound_wave_interactions`, and `get_material_of_body` are never used [INFO] [stdout] --> src/engine/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 39 | pub fn interact_mapping(&self, wave: &SoundWave, material: &Material) -> SoundWave { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn process_sound_wave_interactions(&mut self, wave: &SoundWave) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_material_of_body(&self, body_handle: RigidBodyHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Wood`, `Metal`, and `Glass` are never constructed [INFO] [stdout] --> src/models/models.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Material { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | Wood { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | Metal { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Glass { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Material` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/engine/engine.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / impl Material { [INFO] [stdout] 13 | | fn absorption_coefficient(&self) -> f32 { [INFO] [stdout] 14 | | match self { [INFO] [stdout] 15 | | Material::Wood { absorption_coefficient } => *absorption_coefficient, [INFO] [stdout] ... | [INFO] [stdout] 19 | | } [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `interact` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sample_rate` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let sample_rate = 44100.0; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sample_rate` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `frequency` [INFO] [stdout] --> src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let frequency = 528.0; [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_frequency` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 27 | let mut wave: Vec = generate_wave(44100.0, 528.0, 0.5, Vector::new(0.0, 0.0, 0.0)); [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: methods `interact_mapping`, `step`, `process_sound_wave_interactions`, and `get_material_of_body` are never used [INFO] [stdout] --> src/engine/engine.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 38 | impl Engine { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 39 | pub fn interact_mapping(&self, wave: &SoundWave, material: &Material) -> SoundWave { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | pub fn step(&mut self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | pub fn process_sound_wave_interactions(&mut self, wave: &SoundWave) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 147 | pub fn get_material_of_body(&self, body_handle: RigidBodyHandle) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Metal` and `Glass` are never constructed [INFO] [stdout] --> src/models/models.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum Material { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 14 | Wood { absorption_coefficient: f32 }, [INFO] [stdout] 15 | Metal { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 16 | Glass { absorption_coefficient: f32 }, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Material` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/engine/engine.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | / impl Material { [INFO] [stdout] 13 | | fn absorption_coefficient(&self) -> f32 { [INFO] [stdout] 14 | | match self { [INFO] [stdout] 15 | | Material::Wood { absorption_coefficient } => *absorption_coefficient, [INFO] [stdout] ... | [INFO] [stdout] 19 | | } [INFO] [stdout] 20 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `interact` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `acoustic_simulation` (bin "acoustic_simulation") due to 2 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `acoustic_simulation` (bin "acoustic_simulation" test) due to 2 previous errors; 15 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c3de63cdf951c0c1f997772ad3c91af99d75a0eef27a4af0b1ce4b049a06986c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3de63cdf951c0c1f997772ad3c91af99d75a0eef27a4af0b1ce4b049a06986c", kill_on_drop: false }` [INFO] [stdout] c3de63cdf951c0c1f997772ad3c91af99d75a0eef27a4af0b1ce4b049a06986c