[INFO] cloning repository https://github.com/enilsson18/Rust-Hard-Physics-Sim
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/enilsson18/Rust-Hard-Physics-Sim" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fenilsson18%2FRust-Hard-Physics-Sim", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fenilsson18%2FRust-Hard-Physics-Sim'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fdb4f153e48b28a15faa6e413c13669de95711c0
[INFO] checking enilsson18/Rust-Hard-Physics-Sim against master#4eb62535fc12dd1a63fd43a4173e224e79313c4d for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fenilsson18%2FRust-Hard-Physics-Sim" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/enilsson18/Rust-Hard-Physics-Sim
[INFO] finished tweaking git repo https://github.com/enilsson18/Rust-Hard-Physics-Sim
[INFO] tweaked toml for git repo https://github.com/enilsson18/Rust-Hard-Physics-Sim written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/enilsson18/Rust-Hard-Physics-Sim on toolchain 4eb62535fc12dd1a63fd43a4173e224e79313c4d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/enilsson18/Rust-Hard-Physics-Sim 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" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded vecmath v1.0.0
[INFO] [stderr]   Downloaded piston-float v1.0.1
[INFO] [stderr]   Downloaded num-iter v0.1.42
[INFO] [stderr]   Downloaded pollster v0.2.4
[INFO] [stderr]   Downloaded scoped_threadpool v0.1.9
[INFO] [stderr]   Downloaded approx v0.4.0
[INFO] [stderr]   Downloaded memoffset v0.6.4
[INFO] [stderr]   Downloaded termcolor v1.1.2
[INFO] [stderr]   Downloaded num-rational v0.3.2
[INFO] [stderr]   Downloaded bytemuck v1.7.2
[INFO] [stderr]   Downloaded weezl v0.1.5
[INFO] [stderr]   Downloaded crossbeam-epoch v0.9.5
[INFO] [stderr]   Downloaded miniz_oxide v0.3.7
[INFO] [stderr]   Downloaded gif v0.11.3
[INFO] [stderr]   Downloaded rayon-core v1.9.1
[INFO] [stderr]   Downloaded deflate v0.8.6
[INFO] [stderr]   Downloaded png v0.16.8
[INFO] [stderr]   Downloaded memchr v2.4.1
[INFO] [stderr]   Downloaded crossbeam-channel v0.5.1
[INFO] [stderr]   Downloaded crc32fast v1.2.1
[INFO] [stderr]   Downloaded cgmath v0.18.0
[INFO] [stderr]   Downloaded sdl2 v0.35.1
[INFO] [stderr]   Downloaded rayon v1.5.1
[INFO] [stderr]   Downloaded image v0.23.14
[INFO] [stderr]   Downloaded libc v0.2.104
[INFO] [stderr]   Downloaded tiff v0.6.1
[INFO] [stderr]   Downloaded sdl2-sys v0.35.1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020
[INFO] running `Command { std: "docker" "start" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling libc v0.2.104
[INFO] [stderr]    Compiling crossbeam-utils v0.8.5
[INFO] [stderr]    Compiling crossbeam-epoch v0.9.5
[INFO] [stderr]    Compiling rayon-core v1.9.1
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling version-compare v0.1.0
[INFO] [stderr]    Compiling crc32fast v1.2.1
[INFO] [stderr]     Checking either v1.6.1
[INFO] [stderr]     Checking adler32 v1.2.0
[INFO] [stderr]     Checking weezl v0.1.5
[INFO] [stderr]    Compiling log v0.4.14
[INFO] [stderr]    Compiling sdl2 v0.35.1
[INFO] [stderr]     Checking regex-syntax v0.6.25
[INFO] [stderr]    Compiling cgmath v0.18.0
[INFO] [stderr]     Checking color_quant v1.1.0
[INFO] [stderr]     Checking miniz_oxide v0.3.7
[INFO] [stderr]     Checking deflate v0.8.6
[INFO] [stderr]     Checking termcolor v1.1.2
[INFO] [stderr]     Checking bytemuck v1.7.2
[INFO] [stderr]     Checking scoped_threadpool v0.1.9
[INFO] [stderr]     Checking piston-float v1.0.1
[INFO] [stderr]    Compiling sdl2-sys v0.35.1
[INFO] [stderr]     Checking humantime v2.1.0
[INFO] [stderr]     Checking pollster v0.2.4
[INFO] [stderr]     Checking vecmath v1.0.0
[INFO] [stderr]    Compiling memoffset v0.6.4
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling rayon v1.5.1
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling miniz_oxide v0.4.4
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling num-rational v0.3.2
[INFO] [stderr]     Checking gif v0.11.3
[INFO] [stderr]     Checking crossbeam-channel v0.5.1
[INFO] [stderr]     Checking png v0.16.8
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]     Checking num_cpus v1.13.0
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking approx v0.4.0
[INFO] [stderr]     Checking crossbeam-deque v0.8.1
[INFO] [stderr]     Checking regex v1.5.4
[INFO] [stderr]     Checking env_logger v0.9.0
[INFO] [stderr]     Checking jpeg-decoder v0.1.22
[INFO] [stderr]     Checking tiff v0.6.1
[INFO] [stderr]     Checking image v0.23.14
[INFO] [stderr]     Checking Rust-Hard-Physics-Sim v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `vec2_neg`
[INFO] [stdout]   --> src/main.rs:12:57
[INFO] [stdout]    |
[INFO] [stdout] 12 |     vec2_add, vec2_cross, vec2_dot, vec2_len, vec2_mul, vec2_neg, vec2_normalized, vec2_scale,
[INFO] [stdout]    |                                                         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]     --> src/main.rs:1060:12
[INFO] [stdout]      |
[INFO] [stdout] 1060 |         if (vec2_len(vec2_sub(p_rect.pos, p_rect_b.pos)) < 10.0) {
[INFO] [stdout]      |            ^                                                   ^
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]      |
[INFO] [stdout] 1060 -         if (vec2_len(vec2_sub(p_rect.pos, p_rect_b.pos)) < 10.0) {
[INFO] [stdout] 1060 +         if vec2_len(vec2_sub(p_rect.pos, p_rect_b.pos)) < 10.0 {
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `vec2_neg`
[INFO] [stdout]   --> src/main.rs:12:57
[INFO] [stdout]    |
[INFO] [stdout] 12 |     vec2_add, vec2_cross, vec2_dot, vec2_len, vec2_mul, vec2_neg, vec2_normalized, vec2_scale,
[INFO] [stdout]    |                                                         ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around `if` condition
[INFO] [stdout]     --> src/main.rs:1060:12
[INFO] [stdout]      |
[INFO] [stdout] 1060 |         if (vec2_len(vec2_sub(p_rect.pos, p_rect_b.pos)) < 10.0) {
[INFO] [stdout]      |            ^                                                   ^
[INFO] [stdout]      |
[INFO] [stdout]      = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]      |
[INFO] [stdout] 1060 -         if (vec2_len(vec2_sub(p_rect.pos, p_rect_b.pos)) < 10.0) {
[INFO] [stdout] 1060 +         if vec2_len(vec2_sub(p_rect.pos, p_rect_b.pos)) < 10.0 {
[INFO] [stdout]      |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:306:9
[INFO] [stdout]     |
[INFO] [stdout] 306 |     let mut projection = rect.get_impulse_corners(dt);
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `norm_line`
[INFO] [stdout]    --> src/main.rs:307:9
[INFO] [stdout]     |
[INFO] [stdout] 307 |     let norm_line = vec2_normalized(vec2_sub(line[1], line[0]));
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_norm_line`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:642:33
[INFO] [stdout]     |
[INFO] [stdout] 642 | ...                   let mut normal_a = normals[c as usize];
[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:643:33
[INFO] [stdout]     |
[INFO] [stdout] 643 | ...                   let mut normal_b = normals[c as usize];
[INFO] [stdout]     |                           ----^^^^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `iter_count`
[INFO] [stdout]    --> src/main.rs:621:9
[INFO] [stdout]     |
[INFO] [stdout] 621 |     for iter_count in 0..iter {
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iter_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/main.rs:741:13
[INFO] [stdout]     |
[INFO] [stdout] 741 |         for i in 0..1 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/main.rs:811:13
[INFO] [stdout]     |
[INFO] [stdout] 811 |         for j in (i + 1)..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]     --> src/main.rs:1061:28
[INFO] [stdout]      |
[INFO] [stdout] 1061 |             let (collided, error, contacts, points, normals) =
[INFO] [stdout]      |                            ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `contacts`
[INFO] [stdout]     --> src/main.rs:1061:35
[INFO] [stdout]      |
[INFO] [stdout] 1061 |             let (collided, error, contacts, points, normals) =
[INFO] [stdout]      |                                   ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/main.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 65 | impl Impulse {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 66 |     pub fn new() -> Impulse {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_total_impulse` and `get_impulse_velocity_dt` are never used
[INFO] [stdout]    --> src/main.rs:146:12
[INFO] [stdout]     |
[INFO] [stdout]  96 | impl PhysicsRect {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn get_total_impulse(&self) -> Impulse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     pub fn get_impulse_velocity_dt(&self, dt: f32) -> Vector2<f32> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_vec2` is never used
[INFO] [stdout]    --> src/main.rs:264:4
[INFO] [stdout]     |
[INFO] [stdout] 264 | fn print_vec2(vec: Vector2<f32>) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:30:18
[INFO] [stdout]    |
[INFO] [stdout] 30 |         creator: &sdl2::render::TextureCreator<sdl2::video::WindowContext>,
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the lifetime is elided here
[INFO] [stdout] 31 |     ) -> Result<RenderRect, String> {
[INFO] [stdout]    |                 ^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 31 |     ) -> Result<RenderRect<'_>, String> {
[INFO] [stdout]    |                           ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `checkAxisOverlap` should have a snake case name
[INFO] [stdout]    --> src/main.rs:341:4
[INFO] [stdout]     |
[INFO] [stdout] 341 | fn checkAxisOverlap(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_axis_overlap`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:306:9
[INFO] [stdout]     |
[INFO] [stdout] 306 |     let mut projection = rect.get_impulse_corners(dt);
[INFO] [stdout]     |         ----^^^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `norm_line`
[INFO] [stdout]    --> src/main.rs:307:9
[INFO] [stdout]     |
[INFO] [stdout] 307 |     let norm_line = vec2_normalized(vec2_sub(line[1], line[0]));
[INFO] [stdout]     |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_norm_line`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:826:5
[INFO] [stdout]     |
[INFO] [stdout] 826 | /     canvas
[INFO] [stdout] 827 | |         .with_texture_canvas(texture, |texture_canvas| {
[INFO] [stdout] 828 | |             texture_canvas.clear();
[INFO] [stdout] 829 | |             texture_canvas.set_draw_color(color);
[INFO] [stdout] ...   |
[INFO] [stdout] 833 | |         })
[INFO] [stdout] 834 | |         .map_err(|e| e.to_string());
[INFO] [stdout]     | |___________________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 826 |     let _ = canvas
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:838:5
[INFO] [stdout]     |
[INFO] [stdout] 838 | /     canvas.copy_ex(
[INFO] [stdout] 839 | |         &texture,
[INFO] [stdout] 840 | |         None,
[INFO] [stdout] 841 | |         dst,
[INFO] [stdout] ...   |
[INFO] [stdout] 845 | |         false,
[INFO] [stdout] 846 | |     );
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 838 |     let _ = canvas.copy_ex(
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:642:33
[INFO] [stdout]     |
[INFO] [stdout] 642 | ...                   let mut normal_a = normals[c as usize];
[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:643:33
[INFO] [stdout]     |
[INFO] [stdout] 643 | ...                   let mut normal_b = normals[c as usize];
[INFO] [stdout]     |                           ----^^^^^^^^
[INFO] [stdout]     |                           |
[INFO] [stdout]     |                           help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `iter_count`
[INFO] [stdout]    --> src/main.rs:621:9
[INFO] [stdout]     |
[INFO] [stdout] 621 |     for iter_count in 0..iter {
[INFO] [stdout]     |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_iter_count`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/main.rs:741:13
[INFO] [stdout]     |
[INFO] [stdout] 741 |         for i in 0..1 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]    --> src/main.rs:811:13
[INFO] [stdout]     |
[INFO] [stdout] 811 |         for j in (i + 1)..size {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `error`
[INFO] [stdout]     --> src/main.rs:1061:28
[INFO] [stdout]      |
[INFO] [stdout] 1061 |             let (collided, error, contacts, points, normals) =
[INFO] [stdout]      |                            ^^^^^ help: if this is intentional, prefix it with an underscore: `_error`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `contacts`
[INFO] [stdout]     --> src/main.rs:1061:35
[INFO] [stdout]      |
[INFO] [stdout] 1061 |             let (collided, error, contacts, points, normals) =
[INFO] [stdout]      |                                   ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contacts`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]   --> src/main.rs:66:12
[INFO] [stdout]    |
[INFO] [stdout] 65 | impl Impulse {
[INFO] [stdout]    | ------------ associated function in this implementation
[INFO] [stdout] 66 |     pub fn new() -> Impulse {
[INFO] [stdout]    |            ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_total_impulse` and `get_impulse_velocity_dt` are never used
[INFO] [stdout]    --> src/main.rs:146:12
[INFO] [stdout]     |
[INFO] [stdout]  96 | impl PhysicsRect {
[INFO] [stdout]     | ---------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 146 |     pub fn get_total_impulse(&self) -> Impulse {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 157 |     pub fn get_impulse_velocity_dt(&self, dt: f32) -> Vector2<f32> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `print_vec2` is never used
[INFO] [stdout]    --> src/main.rs:264:4
[INFO] [stdout]     |
[INFO] [stdout] 264 | fn print_vec2(vec: Vector2<f32>) {
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:30:18
[INFO] [stdout]    |
[INFO] [stdout] 30 |         creator: &sdl2::render::TextureCreator<sdl2::video::WindowContext>,
[INFO] [stdout]    |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the lifetime is elided here
[INFO] [stdout] 31 |     ) -> Result<RenderRect, String> {
[INFO] [stdout]    |                 ^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 31 |     ) -> Result<RenderRect<'_>, String> {
[INFO] [stdout]    |                           ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `checkAxisOverlap` should have a snake case name
[INFO] [stdout]    --> src/main.rs:341:4
[INFO] [stdout]     |
[INFO] [stdout] 341 | fn checkAxisOverlap(
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `check_axis_overlap`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:826:5
[INFO] [stdout]     |
[INFO] [stdout] 826 | /     canvas
[INFO] [stdout] 827 | |         .with_texture_canvas(texture, |texture_canvas| {
[INFO] [stdout] 828 | |             texture_canvas.clear();
[INFO] [stdout] 829 | |             texture_canvas.set_draw_color(color);
[INFO] [stdout] ...   |
[INFO] [stdout] 833 | |         })
[INFO] [stdout] 834 | |         .map_err(|e| e.to_string());
[INFO] [stdout]     | |___________________________________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]     = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 826 |     let _ = canvas
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]    --> src/main.rs:838:5
[INFO] [stdout]     |
[INFO] [stdout] 838 | /     canvas.copy_ex(
[INFO] [stdout] 839 | |         &texture,
[INFO] [stdout] 840 | |         None,
[INFO] [stdout] 841 | |         dst,
[INFO] [stdout] ...   |
[INFO] [stdout] 845 | |         false,
[INFO] [stdout] 846 | |     );
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]     |
[INFO] [stdout] 838 |     let _ = canvas.copy_ex(
[INFO] [stdout]     |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.19s
[INFO] running `Command { std: "docker" "inspect" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020", kill_on_drop: false }`
[INFO] [stdout] 3398a103d776d8422644cb4fd82a917be82a03e17c15d35e6bdfbca5921ce020
