[INFO] cloning repository https://github.com/Zatom1/ElectricVectorField [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zatom1/ElectricVectorField" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZatom1%2FElectricVectorField", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZatom1%2FElectricVectorField'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] dbc1a3ec548ca18b00fbe6da63e421e6587c6ec8 [INFO] testing Zatom1/ElectricVectorField against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZatom1%2FElectricVectorField" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Zatom1/ElectricVectorField [INFO] finished tweaking git repo https://github.com/Zatom1/ElectricVectorField [INFO] tweaked toml for git repo https://github.com/Zatom1/ElectricVectorField written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Zatom1/ElectricVectorField on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Zatom1/ElectricVectorField 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "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-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dce5cc7216a364bf622adeedb803e64f700a2bc45365637e8043e477689eb611 [INFO] running `Command { std: "docker" "start" "-a" "dce5cc7216a364bf622adeedb803e64f700a2bc45365637e8043e477689eb611", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dce5cc7216a364bf622adeedb803e64f700a2bc45365637e8043e477689eb611", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dce5cc7216a364bf622adeedb803e64f700a2bc45365637e8043e477689eb611", kill_on_drop: false }` [INFO] [stdout] dce5cc7216a364bf622adeedb803e64f700a2bc45365637e8043e477689eb611 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d643ddd6426f71d7c65416596cb3dd07ff7a70a981515831a1599323114ca498 [INFO] running `Command { std: "docker" "start" "-a" "d643ddd6426f71d7c65416596cb3dd07ff7a70a981515831a1599323114ca498", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling xml-rs v0.8.21 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling libloading v0.8.5 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling adler v1.0.2 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling crc32fast v1.4.2 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling serde v1.0.209 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling bytemuck v1.17.1 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling unicode-width v0.1.13 [INFO] [stderr] Compiling adler2 v2.0.0 [INFO] [stderr] Compiling khronos-egl v4.1.0 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling simd-adler32 v0.3.7 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling ash v0.37.3+1.3.251 [INFO] [stderr] Compiling allocator-api2 v0.2.18 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling miniz_oxide v0.8.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling syn v2.0.76 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling num-rational v0.3.2 [INFO] [stderr] Compiling gpu-descriptor-types v0.1.2 [INFO] [stderr] Compiling gpu-alloc-types v0.3.0 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling unicode-xid v0.2.5 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling hexf-parse v0.2.1 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling gpu-alloc v0.6.0 [INFO] [stderr] Compiling flate2 v1.0.33 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling spirv v0.2.0+1.5.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling euclid v0.22.11 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling miniz_oxide v0.3.7 [INFO] [stderr] Compiling deflate v0.8.6 [INFO] [stderr] Compiling fdeflate v0.3.4 [INFO] [stderr] Compiling miniz_oxide v0.7.4 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling lyon_geom v0.17.7 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling wgpu-types v0.17.0 [INFO] [stderr] Compiling ttf-parser v0.24.1 [INFO] [stderr] Compiling futures-io v0.3.30 [INFO] [stderr] Compiling color_quant v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling vec_map v0.8.2 [INFO] [stderr] Compiling glow v0.12.3 [INFO] [stderr] Compiling palette v0.5.0 [INFO] [stderr] Compiling xcursor v0.3.8 [INFO] [stderr] Compiling renderdoc-sys v1.1.0 [INFO] [stderr] Compiling arrayref v0.3.8 [INFO] [stderr] Compiling profiling v1.0.15 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling lyon_path v0.17.7 [INFO] [stderr] Compiling png v0.16.8 [INFO] [stderr] Compiling png v0.17.13 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling tiff v0.6.1 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling palette_derive v0.5.0 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling owned_ttf_parser v0.24.0 [INFO] [stderr] Compiling image v0.23.14 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling ab_glyph v0.2.28 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling float_next_after v0.1.5 [INFO] [stderr] Compiling sid v0.6.1 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling serde_json v1.0.127 [INFO] [stderr] Compiling lyon_algorithms v0.17.7 [INFO] [stderr] Compiling lyon_tessellation v0.17.10 [INFO] [stderr] Compiling crossbeam-deque v0.7.4 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling serde_derive v1.0.209 [INFO] [stderr] Compiling futures-macro v0.3.30 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling rand_xorshift v0.2.0 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling ryu v1.0.18 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling itoa v1.0.11 [INFO] [stderr] Compiling linked-hash-map v0.5.6 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling tokio v1.39.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling lyon v0.17.10 [INFO] [stderr] Compiling pennereq v0.3.1 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling find_folder v0.3.0 [INFO] [stderr] Compiling notosans v0.1.0 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling naga v0.13.0 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling gpu-descriptor v0.2.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling noise v0.7.0 [INFO] [stderr] Compiling futures-executor v0.3.30 [INFO] [stderr] Compiling futures v0.3.30 [INFO] [stderr] Compiling glam v0.17.3 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling wgpu-hal v0.17.2 [INFO] [stderr] Compiling nannou_core v0.19.0 [INFO] [stderr] Compiling nannou_mesh v0.19.0 [INFO] [stderr] Compiling wgpu-core v0.17.1 [INFO] [stderr] Compiling wgpu v0.17.2 [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling nannou_wgpu v0.19.0 [INFO] [stderr] Compiling nannou v0.19.0 [INFO] [stderr] Compiling ElectricVectorField v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `event::ElementState` [INFO] [stdout] --> src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use nannou::{event::ElementState, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | / ( [INFO] [stdout] 193 | | mouse.x as f32 + [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 197 | &point_charges)[0]*150.0 [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 198 | | ) , [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 ~ mouse.x as f32 + [INFO] [stdout] 193 | field_simulate( [INFO] [stdout] 194 | mouse.x, [INFO] [stdout] 195 | mouse.y, [INFO] [stdout] 196 ~ &point_charges)[0]*150.0 , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | / ( [INFO] [stdout] 200 | | mouse.y as f32 + [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | &point_charges)[1]*150.0 [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 205 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 199 ~ mouse.y as f32 + [INFO] [stdout] 200 | field_simulate( [INFO] [stdout] 201 | mouse.x, [INFO] [stdout] 202 | mouse.y, [INFO] [stdout] 203 ~ &point_charges)[1]*150.0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/main.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{sync::{Once, ONCE_INIT}, vec}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | static INIT: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 12 - static INIT: Once = ONCE_INIT; [INFO] [stdout] 12 + static INIT: Once = Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `real::Real` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use real::Real; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let t = app.time; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ratio` is never read [INFO] [stdout] --> src/main.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | let mut ratio: f32 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let mut arrow_end: Vec2 = pt2(x2, y2); [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: `half` [INFO] [stdout] --> src/main.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let half: f32 = 0.5; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_half` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_start` [INFO] [stdout] --> src/main.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | let line_start = pt2(particle_x, particle_y); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_end` [INFO] [stdout] --> src/main.rs:364:13 [INFO] [stdout] | [INFO] [stdout] 364 | let line_end= pt2(particle_x-x_velo, particle_y-y_velo); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_PARTICLES` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const N_PARTICLES: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `fluids_init` is never used [INFO] [stdout] --> src/main.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | static mut fluids_init: Option>> = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fluid_simulate` is never used [INFO] [stdout] --> src/main.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn fluid_simulate(w: f32, h: f32, charges: &Vec>, mut fluids_array: Vec>){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `point_charges_init` should have an upper case name [INFO] [stdout] --> src/main.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | static mut point_charges_init: Option>> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - static mut point_charges_init: Option>> = None; [INFO] [stdout] 13 + static mut POINT_CHARGES_INIT: Option>> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `fluids_init` should have an upper case name [INFO] [stdout] --> src/main.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | static mut fluids_init: Option>> = None; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FLUIDS_INIT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | point_charges_init.clone().unwrap() // Access the initialized variable [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "d643ddd6426f71d7c65416596cb3dd07ff7a70a981515831a1599323114ca498", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d643ddd6426f71d7c65416596cb3dd07ff7a70a981515831a1599323114ca498", kill_on_drop: false }` [INFO] [stdout] d643ddd6426f71d7c65416596cb3dd07ff7a70a981515831a1599323114ca498 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] da0b70047a0396b6f57ba8bf65235033b2864d0daa3f62dcf3c5969c8e42dfaf [INFO] running `Command { std: "docker" "start" "-a" "da0b70047a0396b6f57ba8bf65235033b2864d0daa3f62dcf3c5969c8e42dfaf", kill_on_drop: false }` [INFO] [stderr] Compiling ElectricVectorField v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `event::ElementState` [INFO] [stdout] --> src/main.rs:1:14 [INFO] [stdout] | [INFO] [stdout] 1 | use nannou::{event::ElementState, prelude::*}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::prelude::*` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use rand::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | / ( [INFO] [stdout] 193 | | mouse.x as f32 + [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 197 | &point_charges)[0]*150.0 [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 198 | | ) , [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 192 ~ mouse.x as f32 + [INFO] [stdout] 193 | field_simulate( [INFO] [stdout] 194 | mouse.x, [INFO] [stdout] 195 | mouse.y, [INFO] [stdout] 196 ~ &point_charges)[0]*150.0 , [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/main.rs:199:13 [INFO] [stdout] | [INFO] [stdout] 199 | / ( [INFO] [stdout] 200 | | mouse.y as f32 + [INFO] [stdout] | |________________^ [INFO] [stdout] ... [INFO] [stdout] 204 | &point_charges)[1]*150.0 [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 205 | | ) [INFO] [stdout] | |_________________^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 199 ~ mouse.y as f32 + [INFO] [stdout] 200 | field_simulate( [INFO] [stdout] 201 | mouse.x, [INFO] [stdout] 202 | mouse.y, [INFO] [stdout] 203 ~ &point_charges)[1]*150.0 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/main.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{sync::{Once, ONCE_INIT}, vec}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/main.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | static INIT: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 12 - static INIT: Once = ONCE_INIT; [INFO] [stdout] 12 + static INIT: Once = Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `real::Real` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use real::Real; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let t = app.time; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ratio` is never read [INFO] [stdout] --> src/main.rs:130:29 [INFO] [stdout] | [INFO] [stdout] 130 | let mut ratio: f32 = 0.0; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let mut arrow_end: Vec2 = pt2(x2, y2); [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: `half` [INFO] [stdout] --> src/main.rs:275:9 [INFO] [stdout] | [INFO] [stdout] 275 | let half: f32 = 0.5; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_half` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_start` [INFO] [stdout] --> src/main.rs:363:13 [INFO] [stdout] | [INFO] [stdout] 363 | let line_start = pt2(particle_x, particle_y); [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_start` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_end` [INFO] [stdout] --> src/main.rs:364:13 [INFO] [stdout] | [INFO] [stdout] 364 | let line_end= pt2(particle_x-x_velo, particle_y-y_velo); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_end` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `N_PARTICLES` is never used [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const N_PARTICLES: usize = 10; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `fluids_init` is never used [INFO] [stdout] --> src/main.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | static mut fluids_init: Option>> = None; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fluid_simulate` is never used [INFO] [stdout] --> src/main.rs:325:4 [INFO] [stdout] | [INFO] [stdout] 325 | fn fluid_simulate(w: f32, h: f32, charges: &Vec>, mut fluids_array: Vec>){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `point_charges_init` should have an upper case name [INFO] [stdout] --> src/main.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | static mut point_charges_init: Option>> = None; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 13 - static mut point_charges_init: Option>> = None; [INFO] [stdout] 13 + static mut POINT_CHARGES_INIT: Option>> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static variable `fluids_init` should have an upper case name [INFO] [stdout] --> src/main.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | static mut fluids_init: Option>> = None; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FLUIDS_INIT` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | point_charges_init.clone().unwrap() // Access the initialized variable [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.05s [INFO] running `Command { std: "docker" "inspect" "da0b70047a0396b6f57ba8bf65235033b2864d0daa3f62dcf3c5969c8e42dfaf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da0b70047a0396b6f57ba8bf65235033b2864d0daa3f62dcf3c5969c8e42dfaf", kill_on_drop: false }` [INFO] [stdout] da0b70047a0396b6f57ba8bf65235033b2864d0daa3f62dcf3c5969c8e42dfaf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e6cc7ea0bffc21cac6c705c9ddcc0807a652b497654fe617ca58b9f690047541 [INFO] running `Command { std: "docker" "start" "-a" "e6cc7ea0bffc21cac6c705c9ddcc0807a652b497654fe617ca58b9f690047541", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `event::ElementState` [INFO] [stderr] --> src/main.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use nannou::{event::ElementState, prelude::*}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `rand::prelude::*` [INFO] [stderr] --> src/main.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use rand::prelude::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/main.rs:192:13 [INFO] [stderr] | [INFO] [stderr] 192 | / ( [INFO] [stderr] 193 | | mouse.x as f32 + [INFO] [stderr] | |________________^ [INFO] [stderr] ... [INFO] [stderr] 197 | &point_charges)[0]*150.0 [INFO] [stderr] | _____________________________________________^ [INFO] [stderr] 198 | | ) , [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 192 ~ mouse.x as f32 + [INFO] [stderr] 193 | field_simulate( [INFO] [stderr] 194 | mouse.x, [INFO] [stderr] 195 | mouse.y, [INFO] [stderr] 196 ~ &point_charges)[0]*150.0 , [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around function argument [INFO] [stderr] --> src/main.rs:199:13 [INFO] [stderr] | [INFO] [stderr] 199 | / ( [INFO] [stderr] 200 | | mouse.y as f32 + [INFO] [stderr] | |________________^ [INFO] [stderr] ... [INFO] [stderr] 204 | &point_charges)[1]*150.0 [INFO] [stderr] | _____________________________________________^ [INFO] [stderr] 205 | | ) [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 199 ~ mouse.y as f32 + [INFO] [stderr] 200 | field_simulate( [INFO] [stderr] 201 | mouse.x, [INFO] [stderr] 202 | mouse.y, [INFO] [stderr] 203 ~ &point_charges)[1]*150.0 [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stderr] --> src/main.rs:4:24 [INFO] [stderr] | [INFO] [stderr] 4 | use std::{sync::{Once, ONCE_INIT}, vec}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stderr] --> src/main.rs:12:21 [INFO] [stderr] | [INFO] [stderr] 12 | static INIT: Once = ONCE_INIT; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: replace the use of the deprecated constant [INFO] [stderr] | [INFO] [stderr] 12 - static INIT: Once = ONCE_INIT; [INFO] [stderr] 12 + static INIT: Once = Once::new(); [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `real::Real` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use real::Real; [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `t` [INFO] [stderr] --> src/main.rs:63:9 [INFO] [stderr] | [INFO] [stderr] 63 | let t = app.time; [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: value assigned to `ratio` is never read [INFO] [stderr] --> src/main.rs:130:29 [INFO] [stderr] | [INFO] [stderr] 130 | let mut ratio: f32 = 0.0; [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:152:21 [INFO] [stderr] | [INFO] [stderr] 152 | let mut arrow_end: Vec2 = pt2(x2, y2); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `half` [INFO] [stderr] --> src/main.rs:275:9 [INFO] [stderr] | [INFO] [stderr] 275 | let half: f32 = 0.5; [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_half` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `line_start` [INFO] [stderr] --> src/main.rs:363:13 [INFO] [stderr] | [INFO] [stderr] 363 | let line_start = pt2(particle_x, particle_y); [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_start` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `line_end` [INFO] [stderr] --> src/main.rs:364:13 [INFO] [stderr] | [INFO] [stderr] 364 | let line_end= pt2(particle_x-x_velo, particle_y-y_velo); [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_end` [INFO] [stderr] [INFO] [stderr] warning: constant `N_PARTICLES` is never used [INFO] [stderr] --> src/main.rs:6:7 [INFO] [stderr] | [INFO] [stderr] 6 | const N_PARTICLES: usize = 10; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static `fluids_init` is never used [INFO] [stderr] --> src/main.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | static mut fluids_init: Option>> = None; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `fluid_simulate` is never used [INFO] [stderr] --> src/main.rs:325:4 [INFO] [stderr] | [INFO] [stderr] 325 | fn fluid_simulate(w: f32, h: f32, charges: &Vec>, mut fluids_array: Vec>){ [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: static variable `point_charges_init` should have an upper case name [INFO] [stderr] --> src/main.rs:13:12 [INFO] [stderr] | [INFO] [stderr] 13 | static mut point_charges_init: Option>> = None; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stderr] help: convert the identifier to upper case [INFO] [stderr] | [INFO] [stderr] 13 - static mut point_charges_init: Option>> = None; [INFO] [stderr] 13 + static mut POINT_CHARGES_INIT: Option>> = None; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: static variable `fluids_init` should have an upper case name [INFO] [stderr] --> src/main.rs:14:12 [INFO] [stderr] | [INFO] [stderr] 14 | static mut fluids_init: Option>> = None; [INFO] [stderr] | ^^^^^^^^^^^ help: convert the identifier to upper case: `FLUIDS_INIT` [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/main.rs:29:9 [INFO] [stderr] | [INFO] [stderr] 29 | point_charges_init.clone().unwrap() // Access the initialized variable [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `ElectricVectorField` (bin "ElectricVectorField" test) generated 19 warnings (run `cargo fix --bin "ElectricVectorField" --tests` to apply 8 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.20s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/ElectricVectorField-e7aaa2bd8d378bfc) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "e6cc7ea0bffc21cac6c705c9ddcc0807a652b497654fe617ca58b9f690047541", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e6cc7ea0bffc21cac6c705c9ddcc0807a652b497654fe617ca58b9f690047541", kill_on_drop: false }` [INFO] [stdout] e6cc7ea0bffc21cac6c705c9ddcc0807a652b497654fe617ca58b9f690047541