[INFO] cloning repository https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjay-a-bhatt%2FFluid-Simulation-hackED-2025", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjay-a-bhatt%2FFluid-Simulation-hackED-2025'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 309b37dbcbca37b57a795488d49f1e608f50fc34 [INFO] checking jay-a-bhatt/Fluid-Simulation-hackED-2025 against master#36b21637e93b038453924d3c66821089e71d8baa for pr-143164 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjay-a-bhatt%2FFluid-Simulation-hackED-2025" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025 [INFO] finished tweaking git repo https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025 [INFO] tweaked toml for git repo https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025 on toolchain 36b21637e93b038453924d3c66821089e71d8baa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jay-a-bhatt/Fluid-Simulation-hackED-2025 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" "+36b21637e93b038453924d3c66821089e71d8baa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82d70ecda82a928545c062974cf6d369afa11ba4e9463a17ece802bab7a04c71 [INFO] running `Command { std: "docker" "start" "-a" "82d70ecda82a928545c062974cf6d369afa11ba4e9463a17ece802bab7a04c71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82d70ecda82a928545c062974cf6d369afa11ba4e9463a17ece802bab7a04c71", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82d70ecda82a928545c062974cf6d369afa11ba4e9463a17ece802bab7a04c71", kill_on_drop: false }` [INFO] [stdout] 82d70ecda82a928545c062974cf6d369afa11ba4e9463a17ece802bab7a04c71 [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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+36b21637e93b038453924d3c66821089e71d8baa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2175c1c9f97db0c053201816071510989879bea46f5eae250ce9b281251030fc [INFO] running `Command { std: "docker" "start" "-a" "2175c1c9f97db0c053201816071510989879bea46f5eae250ce9b281251030fc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.25 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Checking once_cell v1.20.3 [INFO] [stderr] Checking lib-fluid v0.1.0 (/opt/rustwide/workdir/lib-fluid) [INFO] [stdout] warning: unused import: `cell` [INFO] [stdout] --> lib-fluid/src/lib.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{cell, cmp}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib-fluid/src/lib.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | if (x < min) { return min; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 8 - if (x < min) { return min; } [INFO] [stdout] 8 + if x < min { return min; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib-fluid/src/lib.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | else if (x > max) { return max; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 9 - else if (x > max) { return max; } [INFO] [stdout] 9 + else if x > max { return max; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib-fluid/src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | if (x < min) { return min; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 15 - if (x < min) { return min; } [INFO] [stdout] 15 + if x < min { return min; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib-fluid/src/lib.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | else if (x > max) { return max; } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 16 - else if (x > max) { return max; } [INFO] [stdout] 16 + else if x > max { return max; } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> lib-fluid/src/lib.rs:330:61 [INFO] [stdout] | [INFO] [stdout] 330 | ... let qx: f32 = self.particle_pos[(2 * id + 0)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 330 - let qx: f32 = self.particle_pos[(2 * id + 0)]; [INFO] [stdout] 330 + let qx: f32 = self.particle_pos[2 * id + 0]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> lib-fluid/src/lib.rs:331:61 [INFO] [stdout] | [INFO] [stdout] 331 | ... let qy: f32 = self.particle_pos[(2 * id + 1)]; [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 331 - let qy: f32 = self.particle_pos[(2 * id + 1)]; [INFO] [stdout] 331 + let qy: f32 = self.particle_pos[2 * id + 1]; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib-fluid/src/lib.rs:864:16 [INFO] [stdout] | [INFO] [stdout] 864 | if (j % 2 == 0) { offset_x = 0.0 } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 864 - if (j % 2 == 0) { offset_x = 0.0 } [INFO] [stdout] 864 + if j % 2 == 0 { offset_x = 0.0 } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> lib-fluid/src/lib.rs:929:16 [INFO] [stdout] | [INFO] [stdout] 929 | if (dist_x * dist_x + dist_y * dist_y <= (obs_rad * obs_rad)) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 929 - if (dist_x * dist_x + dist_y * dist_y <= (obs_rad * obs_rad)) [INFO] [stdout] 929 + if dist_x * dist_x + dist_y * dist_y <= (obs_rad * obs_rad) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stdout] warning: unused variable: `or2` [INFO] [stdout] --> lib-fluid/src/lib.rs:200:13 [INFO] [stdout] | [INFO] [stdout] 200 | let or2: f32 = obstacle_radius * obstacle_radius; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_or2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `colour_diffusion_coeff` [INFO] [stdout] --> lib-fluid/src/lib.rs:250:13 [INFO] [stdout] | [INFO] [stdout] 250 | let colour_diffusion_coeff: f32 = 0.001; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_colour_diffusion_coeff` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `xi` [INFO] [stdout] --> lib-fluid/src/lib.rs:260:17 [INFO] [stdout] | [INFO] [stdout] 260 | let xi: f32 = clampF32((x * self.p_inv_spacing).floor(), 0.0, (self.p_num_x - 1) as f32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_xi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `yi` [INFO] [stdout] --> lib-fluid/src/lib.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | let yi: f32 = clampF32((y * self.p_inv_spacing).floor(), 0.0, (self.p_num_y - 1) as f32); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_yi` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib-fluid/src/lib.rs:427:17 [INFO] [stdout] | [INFO] [stdout] 427 | let mut f: &mut Vec; [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: variable does not need to be mutable [INFO] [stdout] --> lib-fluid/src/lib.rs:428:17 [INFO] [stdout] | [INFO] [stdout] 428 | let mut prev_f: &mut Vec; [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] --> lib-fluid/src/lib.rs:429:17 [INFO] [stdout] | [INFO] [stdout] 429 | let mut d: &mut Vec; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> lib-fluid/src/lib.rs:680:25 [INFO] [stdout] | [INFO] [stdout] 680 | let s: f32 = self.s[center]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d0` [INFO] [stdout] --> lib-fluid/src/lib.rs:731:17 [INFO] [stdout] | [INFO] [stdout] 731 | let d0: f32 = self.particle_rest_density; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> lib-fluid/src/lib.rs:880:17 [INFO] [stdout] | [INFO] [stdout] 880 | let mut state = 1.0; // Default fluid state [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] --> lib-fluid/src/lib.rs:912:9 [INFO] [stdout] | [INFO] [stdout] 912 | let mut fluid = &mut scene.fluid; [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `frame_nr`, `paused`, `show_particles`, and `show_grid` are never read [INFO] [stdout] --> lib-fluid/src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct Scene { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] ... [INFO] [stdout] 26 | frame_nr: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | paused: bool, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 37 | show_particles: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | show_grid: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `max_particles` is never read [INFO] [stdout] --> lib-fluid/src/lib.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct FlipFluid { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 100 | max_particles: i32, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `U_FIELD` is never used [INFO] [stdout] --> lib-fluid/src/var.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub const U_FIELD: i32 = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `V_FIELD` is never used [INFO] [stdout] --> lib-fluid/src/var.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | pub const V_FIELD: i32 = 1; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clampF32` should have a snake case name [INFO] [stdout] --> lib-fluid/src/lib.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn clampF32(x: f32, min: f32, max: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `clamp_f32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `clampI32` should have a snake case name [INFO] [stdout] --> lib-fluid/src/lib.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn clampI32(x: i32, min: i32, max: i32) -> i32 [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `clamp_i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `isSolidCell` should have a snake case name [INFO] [stdout] --> lib-fluid/src/lib.rs:565:29 [INFO] [stdout] | [INFO] [stdout] 565 | let isSolidCell = self.cell_type[center] == SOLID_CELL; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `is_solid_cell` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking console_error_panic_hook v0.1.7 [INFO] [stderr] Checking Fluid-Simulation-hackED-2025 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | if (true) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - if (true) [INFO] [stdout] 176 + if true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/lib.rs:176:12 [INFO] [stdout] | [INFO] [stdout] 176 | if (true) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 176 - if (true) [INFO] [stdout] 176 + if true [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `InstanceData` is more private than the item `draw_circle` [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn draw_circle(r: f32, g: f32, b: f32, x: f32, y: f32, s_x: f32, s_y: f32, instanceData: &mut InstanceData) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `draw_circle` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `InstanceData` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct InstanceData [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `InstanceData` is more private than the item `draw_square` [INFO] [stdout] --> src/lib.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn draw_square(r: f32, g: f32, b: f32, x: f32, y: f32, s:f32, data: &mut InstanceData) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `draw_square` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `InstanceData` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct InstanceData [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Fluid_Simulation_hackED_2025` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `fluid_simulation_hack_ed_2025` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `instance_size_F32` should have a snake case name [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | instance_size_F32: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `instance_size_f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maxCircleInstances` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn init_instance_gfx_buffers(maxCircleInstances: usize, maxSquareInstances: usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_circle_instances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maxSquareInstances` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn init_instance_gfx_buffers(maxCircleInstances: usize, maxSquareInstances: usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_square_instances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `instanceData` should have a snake case name [INFO] [stdout] --> src/lib.rs:44:80 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn draw_circle(r: f32, g: f32, b: f32, x: f32, y: f32, s_x: f32, s_y: f32, instanceData: &mut InstanceData) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `instance_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | return CIRCLE_INSTANCE_DATA.instance_buffer.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | return SQUARE_INSTANCE_DATA.instance_buffer.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:104:90 [INFO] [stdout] | [INFO] [stdout] 104 | draw_circle(r, g, b, pos_x, pos_y, particle_radius * 2.0, particle_radius * 2.0, &mut CIRCLE_INSTANCE_DATA) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 104 | draw_circle(r, g, b, pos_x, pos_y, particle_radius * 2.0, particle_radius * 2.0, &raw mut CIRCLE_INSTANCE_DATA) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | &mut SQUARE_INSTANCE_DATA [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 119 | &raw mut SQUARE_INSTANCE_DATA [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:201:102 [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { draw_circle(1.0,0.0, 0.0, self.scene.obstacle_x, self.scene.obstacle_y, 0.05, 0.05, &mut CIRCLE_INSTANCE_DATA); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { draw_circle(1.0,0.0, 0.0, self.scene.obstacle_x, self.scene.obstacle_y, 0.05, 0.05, &raw mut CIRCLE_INSTANCE_DATA); } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `InstanceData` is more private than the item `draw_circle` [INFO] [stdout] --> src/lib.rs:44:1 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn draw_circle(r: f32, g: f32, b: f32, x: f32, y: f32, s_x: f32, s_y: f32, instanceData: &mut InstanceData) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `draw_circle` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `InstanceData` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct InstanceData [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(private_interfaces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `InstanceData` is more private than the item `draw_square` [INFO] [stdout] --> src/lib.rs:61:1 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn draw_square(r: f32, g: f32, b: f32, x: f32, y: f32, s:f32, data: &mut InstanceData) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ function `draw_square` is reachable at visibility `pub` [INFO] [stdout] | [INFO] [stdout] note: but type `InstanceData` is only usable at visibility `pub(crate)` [INFO] [stdout] --> src/lib.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | struct InstanceData [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `instance_size_F32` should have a snake case name [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | instance_size_F32: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `instance_size_f32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maxCircleInstances` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:34 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn init_instance_gfx_buffers(maxCircleInstances: usize, maxSquareInstances: usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_circle_instances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `maxSquareInstances` should have a snake case name [INFO] [stdout] --> src/lib.rs:26:61 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn init_instance_gfx_buffers(maxCircleInstances: usize, maxSquareInstances: usize) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `max_square_instances` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `instanceData` should have a snake case name [INFO] [stdout] --> src/lib.rs:44:80 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn draw_circle(r: f32, g: f32, b: f32, x: f32, y: f32, s_x: f32, s_y: f32, instanceData: &mut InstanceData) [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `instance_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:81:12 [INFO] [stdout] | [INFO] [stdout] 81 | return CIRCLE_INSTANCE_DATA.instance_buffer.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | return SQUARE_INSTANCE_DATA.instance_buffer.as_ptr(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:104:90 [INFO] [stdout] | [INFO] [stdout] 104 | draw_circle(r, g, b, pos_x, pos_y, particle_radius * 2.0, particle_radius * 2.0, &mut CIRCLE_INSTANCE_DATA) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 104 | draw_circle(r, g, b, pos_x, pos_y, particle_radius * 2.0, particle_radius * 2.0, &raw mut CIRCLE_INSTANCE_DATA) [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:119:25 [INFO] [stdout] | [INFO] [stdout] 119 | &mut SQUARE_INSTANCE_DATA [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 119 | &raw mut SQUARE_INSTANCE_DATA [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/lib.rs:201:102 [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { draw_circle(1.0,0.0, 0.0, self.scene.obstacle_x, self.scene.obstacle_y, 0.05, 0.05, &mut CIRCLE_INSTANCE_DATA); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] help: use `&raw mut` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 201 | unsafe { draw_circle(1.0,0.0, 0.0, self.scene.obstacle_x, self.scene.obstacle_y, 0.05, 0.05, &raw mut CIRCLE_INSTANCE_DATA); } [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.70s [INFO] running `Command { std: "docker" "inspect" "2175c1c9f97db0c053201816071510989879bea46f5eae250ce9b281251030fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2175c1c9f97db0c053201816071510989879bea46f5eae250ce9b281251030fc", kill_on_drop: false }` [INFO] [stdout] 2175c1c9f97db0c053201816071510989879bea46f5eae250ce9b281251030fc