[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 master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FXFabian%2FRust-Particle-System" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/XFabian/Rust-Particle-System on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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-7/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b60534464495aa9c7421f2e1c46e7e58857275b146697213043b9d4a5bfaf699 [INFO] running `Command { std: "docker" "start" "-a" "b60534464495aa9c7421f2e1c46e7e58857275b146697213043b9d4a5bfaf699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b60534464495aa9c7421f2e1c46e7e58857275b146697213043b9d4a5bfaf699", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b60534464495aa9c7421f2e1c46e7e58857275b146697213043b9d4a5bfaf699", kill_on_drop: false }` [INFO] [stdout] b60534464495aa9c7421f2e1c46e7e58857275b146697213043b9d4a5bfaf699 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9ab372ad6b66b5358320fa90915c1d2f25be85350ddf42acac1489dc785b2b49 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9ab372ad6b66b5358320fa90915c1d2f25be85350ddf42acac1489dc785b2b49", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.43 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Checking downcast-rs v1.0.4 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking rustc-demangle v0.1.16 [INFO] [stderr] Checking takeable-option v0.4.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking parking_lot_core v0.6.2 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Compiling x11-dl v2.18.4 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking stb_truetype v0.3.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Checking rusttype v0.8.0 [INFO] [stderr] Compiling glutin_egl_sys v0.1.3 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling glium v0.25.1 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking wayland-sys v0.21.13 [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:9 [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:9 [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:9 [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:9 [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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cir2` [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] | ^^^^^^^^ 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:9 [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:9 [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:9 [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: 28 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 14s [INFO] running `Command { std: "docker" "inspect" "9ab372ad6b66b5358320fa90915c1d2f25be85350ddf42acac1489dc785b2b49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9ab372ad6b66b5358320fa90915c1d2f25be85350ddf42acac1489dc785b2b49", kill_on_drop: false }` [INFO] [stdout] 9ab372ad6b66b5358320fa90915c1d2f25be85350ddf42acac1489dc785b2b49