[INFO] cloning repository https://github.com/XFabian/Rust-Particle-System [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/XFabian/Rust-Particle-System" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXFabian%2FRust-Particle-System", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXFabian%2FRust-Particle-System'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66f02fd74817adee7469dbaf83080d711c82d128 [INFO] checking XFabian/Rust-Particle-System against try#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXFabian%2FRust-Particle-System" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/XFabian/Rust-Particle-System on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/XFabian/Rust-Particle-System [INFO] finished tweaking git repo https://github.com/XFabian/Rust-Particle-System [INFO] tweaked toml for git repo https://github.com/XFabian/Rust-Particle-System written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/XFabian/Rust-Particle-System already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded glutin_egl_sys v0.1.3 [INFO] [stderr] Downloaded glutin_emscripten_sys v0.1.0 [INFO] [stderr] Downloaded winit v0.19.3 [INFO] [stderr] Downloaded num-traits v0.2.8 [INFO] [stderr] Downloaded backtrace-sys v0.1.31 [INFO] [stderr] Downloaded lock_api v0.3.1 [INFO] [stderr] Downloaded takeable-option v0.4.0 [INFO] [stderr] Downloaded x11-dl v2.18.4 [INFO] [stderr] Downloaded glutin v0.21.1 [INFO] [stderr] Downloaded arrayvec v0.4.11 [INFO] [stderr] Downloaded glutin_gles2_sys v0.1.3 [INFO] [stderr] Downloaded downcast-rs v1.0.4 [INFO] [stderr] Downloaded glutin_glx_sys v0.1.5 [INFO] [stderr] Downloaded derivative v1.0.3 [INFO] [stderr] Downloaded glutin_wgl_sys v0.1.3 [INFO] [stderr] Downloaded rusttype v0.8.0 [INFO] [stderr] Downloaded glium v0.25.1 [INFO] [stderr] Downloaded walkdir v2.2.9 [INFO] [stderr] Downloaded cc v1.0.43 [INFO] [stderr] Downloaded gl_generator v0.11.0 [INFO] [stderr] Downloaded same-file v1.0.5 [INFO] [stderr] Downloaded autocfg v0.1.6 [INFO] [stderr] Downloaded backtrace v0.3.37 [INFO] [stderr] Downloaded stb_truetype v0.3.0 [INFO] [stderr] Downloaded libc v0.2.62 [INFO] [stderr] Downloaded cocoa v0.18.4 [INFO] [stderr] Downloaded pkg-config v0.3.15 [INFO] [stderr] Downloaded objc v0.2.6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ecf4563a048ab38da4b8f5e2e7d5cb572db870237ec8c0ff20962259a0b4493c [INFO] running `Command { std: "docker" "start" "-a" "ecf4563a048ab38da4b8f5e2e7d5cb572db870237ec8c0ff20962259a0b4493c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ecf4563a048ab38da4b8f5e2e7d5cb572db870237ec8c0ff20962259a0b4493c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ecf4563a048ab38da4b8f5e2e7d5cb572db870237ec8c0ff20962259a0b4493c", kill_on_drop: false }` [INFO] [stdout] ecf4563a048ab38da4b8f5e2e7d5cb572db870237ec8c0ff20962259a0b4493c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c3fc800d16209fdbb032605c3952c50f9976a165fb163a87736b83d8d34ab929 [INFO] running `Command { std: "docker" "start" "-a" "c3fc800d16209fdbb032605c3952c50f9976a165fb163a87736b83d8d34ab929", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling cc v1.0.43 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Checking nodrop v0.1.13 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking takeable-option v0.4.0 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Checking stb_truetype v0.3.0 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling x11-dl v2.18.4 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking rusttype v0.8.0 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling glutin_egl_sys v0.1.3 [INFO] [stderr] Compiling glium v0.25.1 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking backtrace v0.3.37 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Compiling derivative v1.0.3 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking winit v0.19.3 [INFO] [stderr] Checking glutin v0.21.1 [INFO] [stderr] Checking particles v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/circle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glium::VertexBuffer` [INFO] [stdout] --> src/circle.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use glium::VertexBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Attr_line` should have an upper camel case name [INFO] [stdout] --> src/shaders.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Attr_line { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `AttrLine` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Occupied`, `Vacant` [INFO] [stdout] --> src/main.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | use std::collections::hash_map::Entry::{Vacant, Occupied}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> src/circle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `glium::VertexBuffer` [INFO] [stdout] --> src/circle.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use glium::VertexBuffer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Attr_line` should have an upper camel case name [INFO] [stdout] --> src/shaders.rs:3:16 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Attr_line { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `AttrLine` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Occupied`, `Vacant` [INFO] [stdout] --> src/main.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | use std::collections::hash_map::Entry::{Vacant, Occupied}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir2` [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut cir2 = Circle::new(0.1, 0.1,RADIUS, 0.01, 0.01); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cir2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir3` [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut cir3 = Circle::new(0.1,0.6,RADIUS, 0.01, 0.01); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cir3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir4` [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut cir4 = Circle::new(-0.9,0.9,RADIUS, 0.01, 0.01); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cir4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vert_buf_border` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let vert_buf_border: glium::VertexBuffer = glium::VertexBuffer::new(&display, &test.draw_borders()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vert_buf_border` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_border` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let program_border = glium::Program::from_source(&display, shaders::vertex_shader_src, shaders::fragment_line_shader_src, None).unwr... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_border` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `comparisons` is assigned to, but never used [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut comparisons = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_comparisons` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/main.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let delta_time = next_frame_time.elapsed().subsec_nanos() as f64 * 1e-9; // delta time in seconds [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | for i in 0..circles.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/spatialHashing.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | for x in 0..(2*cols) { // we jsut want to draw some lines [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/spatialHashing.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | for y in 0..(2*rows) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin` [INFO] [stdout] --> src/spatialHashing.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | for (bin, list) in &mut self.cell_map { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut cir2 = Circle::new(0.1, 0.1,RADIUS, 0.01, 0.01); [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] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut cir3 = Circle::new(0.1,0.6,RADIUS, 0.01, 0.01); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut cir4 = Circle::new(-0.9,0.9,RADIUS, 0.01, 0.01); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut cir_cent = Circle::new(0.0, 0.0, RADIUS, 0.01, 0.01); // we can ignore velocity [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut per_instance_line_attr = glium::vertex::VertexBuffer::new(&display, &line_alpha_vec).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | ... let mut per_instance_circle_attr = glium::vertex::VertexBuffer::new(&display, &circle_attrs).unwrap(); // fixed size so better and ... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_collision_point` [INFO] [stdout] --> src/circle.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_collision_point(circle1: Circle, circle2: Circle) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invert_direction` [INFO] [stdout] --> src/circle.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | fn invert_direction(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash_id` [INFO] [stdout] --> src/spatialHashing.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | fn hash_id(&self, circle: &Circle) -> (i32, i32){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/spatialHashing.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn add(&mut self, circle: Circle) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw_circle` [INFO] [stdout] --> src/main.rs:256:4 [INFO] [stdout] | [INFO] [stdout] 256 | fn draw_circle(cx :f32, cy: f32, r: f32, num_segments: i32, num_circle: u32) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `spatialHashing` should have a snake case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | mod spatialHashing; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `spatial_hashing` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resolveCollision` should have a snake case name [INFO] [stdout] --> src/circle.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn resolveCollision(circle1: &mut Circle, circle2: &mut Circle){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `resolve_collision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir2` [INFO] [stdout] --> src/main.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | let mut cir2 = Circle::new(0.1, 0.1,RADIUS, 0.01, 0.01); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cir2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir3` [INFO] [stdout] --> src/main.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | let mut cir3 = Circle::new(0.1,0.6,RADIUS, 0.01, 0.01); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cir3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir4` [INFO] [stdout] --> src/main.rs:64:13 [INFO] [stdout] | [INFO] [stdout] 64 | let mut cir4 = Circle::new(-0.9,0.9,RADIUS, 0.01, 0.01); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_cir4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vert_buf_border` [INFO] [stdout] --> src/main.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | let vert_buf_border: glium::VertexBuffer = glium::VertexBuffer::new(&display, &test.draw_borders()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vert_buf_border` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `program_border` [INFO] [stdout] --> src/main.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | let program_border = glium::Program::from_source(&display, shaders::vertex_shader_src, shaders::fragment_line_shader_src, None).unwr... [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program_border` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `comparisons` is assigned to, but never used [INFO] [stdout] --> src/main.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let mut comparisons = 0; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_comparisons` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `delta_time` [INFO] [stdout] --> src/main.rs:103:13 [INFO] [stdout] | [INFO] [stdout] 103 | let delta_time = next_frame_time.elapsed().subsec_nanos() as f64 * 1e-9; // delta time in seconds [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_delta_time` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/main.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | for i in 0..circles.len() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/spatialHashing.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | for x in 0..(2*cols) { // we jsut want to draw some lines [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/spatialHashing.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | for y in 0..(2*rows) { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bin` [INFO] [stdout] --> src/spatialHashing.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | for (bin, list) in &mut self.cell_map { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_bin` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut cir2 = Circle::new(0.1, 0.1,RADIUS, 0.01, 0.01); [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] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let mut cir3 = Circle::new(0.1,0.6,RADIUS, 0.01, 0.01); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:64:9 [INFO] [stdout] | [INFO] [stdout] 64 | let mut cir4 = Circle::new(-0.9,0.9,RADIUS, 0.01, 0.01); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:97:9 [INFO] [stdout] | [INFO] [stdout] 97 | let mut cir_cent = Circle::new(0.0, 0.0, RADIUS, 0.01, 0.01); // we can ignore velocity [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:192:13 [INFO] [stdout] | [INFO] [stdout] 192 | let mut per_instance_line_attr = glium::vertex::VertexBuffer::new(&display, &line_alpha_vec).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:206:13 [INFO] [stdout] | [INFO] [stdout] 206 | ... let mut per_instance_circle_attr = glium::vertex::VertexBuffer::new(&display, &circle_attrs).unwrap(); // fixed size so better and ... [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_collision_point` [INFO] [stdout] --> src/circle.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | pub fn get_collision_point(circle1: Circle, circle2: Circle) -> Vec2 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `invert_direction` [INFO] [stdout] --> src/circle.rs:148:8 [INFO] [stdout] | [INFO] [stdout] 148 | fn invert_direction(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `hash_id` [INFO] [stdout] --> src/spatialHashing.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | fn hash_id(&self, circle: &Circle) -> (i32, i32){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add` [INFO] [stdout] --> src/spatialHashing.rs:144:12 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn add(&mut self, circle: Circle) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `draw_circle` [INFO] [stdout] --> src/main.rs:256:4 [INFO] [stdout] | [INFO] [stdout] 256 | fn draw_circle(cx :f32, cy: f32, r: f32, num_segments: i32, num_circle: u32) -> (Vec, Vec) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `spatialHashing` should have a snake case name [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | mod spatialHashing; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `spatial_hashing` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `resolveCollision` should have a snake case name [INFO] [stdout] --> src/circle.rs:102:12 [INFO] [stdout] | [INFO] [stdout] 102 | pub fn resolveCollision(circle1: &mut Circle, circle2: &mut Circle){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `resolve_collision` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.81s [INFO] running `Command { std: "docker" "inspect" "c3fc800d16209fdbb032605c3952c50f9976a165fb163a87736b83d8d34ab929", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c3fc800d16209fdbb032605c3952c50f9976a165fb163a87736b83d8d34ab929", kill_on_drop: false }` [INFO] [stdout] c3fc800d16209fdbb032605c3952c50f9976a165fb163a87736b83d8d34ab929