[INFO] cloning repository https://github.com/Tyler-Maclachlan/graph_physics_engine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tyler-Maclachlan/graph_physics_engine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Maclachlan%2Fgraph_physics_engine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Maclachlan%2Fgraph_physics_engine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ff26e1182410e7f85321fa0ce2fd79dc704ebdfd [INFO] checking Tyler-Maclachlan/graph_physics_engine against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTyler-Maclachlan%2Fgraph_physics_engine" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tyler-Maclachlan/graph_physics_engine on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tyler-Maclachlan/graph_physics_engine [INFO] finished tweaking git repo https://github.com/Tyler-Maclachlan/graph_physics_engine [INFO] tweaked toml for git repo https://github.com/Tyler-Maclachlan/graph_physics_engine written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/Tyler-Maclachlan/graph_physics_engine already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2ce2337332d36c584cba4c57e50fd7882a2a822b4da2dfa597461725750dae09 [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" "2ce2337332d36c584cba4c57e50fd7882a2a822b4da2dfa597461725750dae09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2ce2337332d36c584cba4c57e50fd7882a2a822b4da2dfa597461725750dae09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2ce2337332d36c584cba4c57e50fd7882a2a822b4da2dfa597461725750dae09", kill_on_drop: false }` [INFO] [stdout] 2ce2337332d36c584cba4c57e50fd7882a2a822b4da2dfa597461725750dae09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] e03bc8ed9e8ce0406a025f35a803cfd654180efa767f009231632f520c505600 [INFO] running `Command { std: "docker" "start" "-a" "e03bc8ed9e8ce0406a025f35a803cfd654180efa767f009231632f520c505600", kill_on_drop: false }` [INFO] [stderr] Checking graph_physics_engine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/quad.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 187 | if (!self.divided) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/quad.rs:191:24 [INFO] [stdout] | [INFO] [stdout] 191 | if (area.overlaps_vec2d(pos)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `structs::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use structs::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/quad.rs:187:16 [INFO] [stdout] | [INFO] [stdout] 187 | if (!self.divided) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/quad.rs:191:24 [INFO] [stdout] | [INFO] [stdout] 191 | if (area.overlaps_vec2d(pos)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `structs::*` [INFO] [stdout] --> src/main.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use structs::*; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `physics_engine` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let physics_engine = PhysicsEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_physics_engine` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inserted` is assigned to, but never used [INFO] [stdout] --> src/quad.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut inserted = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inserted` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | inserted = tl.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | inserted = tr.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | inserted = bl.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | inserted = br.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/spring_system.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | for (index, s) in springs.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CentralGravityOptions` [INFO] [stdout] --> src/central_gravity.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct CentralGravityOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update` [INFO] [stdout] --> src/central_gravity.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn update(center: &Vector2d, positions: &Vec>, forces: &mut Vec>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_force` [INFO] [stdout] --> src/central_gravity.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn calc_force(distance: f64, dx: f64, dy: f64, mass: i32) -> Force { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravitational_constant` [INFO] [stdout] --> src/force_system.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | gravitational_constant: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `theta` [INFO] [stdout] --> src/force_system.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | theta: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `options` [INFO] [stdout] --> src/force_system.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | options: ForceSystemOptions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_tree` [INFO] [stdout] --> src/force_system.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn construct_tree(&mut self, bounds: AABB, positions: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_force_contributions` [INFO] [stdout] --> src/force_system.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_force_contributions(&self, node: &ID, pos: &Vector2d, branch: &QuadTree) -> Vector2d { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc_force` [INFO] [stdout] --> src/force_system.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn calc_force(&self, mut distance: f64, mut dx: f64, dy: f64, mass: i32) -> Force { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/force_system.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `half_width` [INFO] [stdout] --> src/quad.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn half_width(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `half_height` [INFO] [stdout] --> src/quad.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn half_height(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `horizontal_midpoint` [INFO] [stdout] --> src/quad.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn horizontal_midpoint(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vertical_midpoint` [INFO] [stdout] --> src/quad.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn vertical_midpoint(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overlaps_vec2d` [INFO] [stdout] --> src/quad.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn overlaps_vec2d(&self, vec: &Vector2d) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overlaps_aabb` [INFO] [stdout] --> src/quad.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn overlaps_aabb(&self, aabb: &AABB) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `position` [INFO] [stdout] --> src/quad.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/quad.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn size(&self) -> Size { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_elements` [INFO] [stdout] --> src/quad.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | max_elements: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_depth` [INFO] [stdout] --> src/quad.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | max_depth: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/quad.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn insert(&mut self, node: &ID, position: &Vector2d) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_mass` [INFO] [stdout] --> src/quad.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn update_mass(&mut self, pos: &Vector2d, mass: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide` [INFO] [stdout] --> src/quad.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn divide(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query` [INFO] [stdout] --> src/quad.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn query(&self, area: &AABB) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mut_two` [INFO] [stdout] --> src/spring_system.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn mut_two( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update` [INFO] [stdout] --> src/spring_system.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Num` [INFO] [stdout] --> src/structs.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Num(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Str` [INFO] [stdout] --> src/structs.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Str(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_vec2d` [INFO] [stdout] --> src/structs.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn to_vec2d(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Spring` [INFO] [stdout] --> src/structs.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Spring { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Force` [INFO] [stdout] --> src/structs.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Force { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_vec2d` [INFO] [stdout] --> src/structs.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn to_vec2d(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Velocity` [INFO] [stdout] --> src/structs.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Velocity { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_vec2d` [INFO] [stdout] --> src/structs.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn to_vec2d(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Fixed` [INFO] [stdout] --> src/structs.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Fixed { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_vec` [INFO] [stdout] --> src/structs.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn add_vec(&self, vec: &Vector2d) -> Vector2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub_vec` [INFO] [stdout] --> src/structs.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn sub_vec(&self, vec: &Vector2d) -> Vector2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize` [INFO] [stdout] --> src/structs.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn normalize(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/structs.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn len(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide_scalar` [INFO] [stdout] --> src/structs.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn divide_scalar(&self, scalar: f64) -> Vector2d { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_to_vec` [INFO] [stdout] --> src/structs.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn distance_to_vec(&self, vec: &Vector2d) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update` [INFO] [stdout] --> src/velocity_verlet.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_velocity` [INFO] [stdout] --> src/velocity_verlet.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn calc_velocity(velocity: f64, force: f64, mass: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `force_system` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | force_system: ForceSystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `physics_engine` [INFO] [stdout] --> src/main.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let physics_engine = PhysicsEngine { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_physics_engine` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `inserted` is assigned to, but never used [INFO] [stdout] --> src/quad.rs:167:17 [INFO] [stdout] | [INFO] [stdout] 167 | let mut inserted = false; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_inserted` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:169:17 [INFO] [stdout] | [INFO] [stdout] 169 | inserted = tl.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:172:17 [INFO] [stdout] | [INFO] [stdout] 172 | inserted = tr.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | inserted = bl.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `inserted` is never read [INFO] [stdout] --> src/quad.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | inserted = br.insert(id, pos); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `index` [INFO] [stdout] --> src/spring_system.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 42 | for (index, s) in springs.iter().enumerate() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_index` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `CentralGravityOptions` [INFO] [stdout] --> src/central_gravity.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | struct CentralGravityOptions { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update` [INFO] [stdout] --> src/central_gravity.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn update(center: &Vector2d, positions: &Vec>, forces: &mut Vec>) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_force` [INFO] [stdout] --> src/central_gravity.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn calc_force(distance: f64, dx: f64, dy: f64, mass: i32) -> Force { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `gravitational_constant` [INFO] [stdout] --> src/force_system.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | gravitational_constant: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `theta` [INFO] [stdout] --> src/force_system.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | theta: f64, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `options` [INFO] [stdout] --> src/force_system.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | options: ForceSystemOptions, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `construct_tree` [INFO] [stdout] --> src/force_system.rs:25:12 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn construct_tree(&mut self, bounds: AABB, positions: &Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_force_contributions` [INFO] [stdout] --> src/force_system.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_force_contributions(&self, node: &ID, pos: &Vector2d, branch: &QuadTree) -> Vector2d { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calc_force` [INFO] [stdout] --> src/force_system.rs:78:8 [INFO] [stdout] | [INFO] [stdout] 78 | fn calc_force(&self, mut distance: f64, mut dx: f64, dy: f64, mass: i32) -> Force { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update` [INFO] [stdout] --> src/force_system.rs:93:12 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `half_width` [INFO] [stdout] --> src/quad.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn half_width(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `half_height` [INFO] [stdout] --> src/quad.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn half_height(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `horizontal_midpoint` [INFO] [stdout] --> src/quad.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn horizontal_midpoint(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `vertical_midpoint` [INFO] [stdout] --> src/quad.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn vertical_midpoint(&self) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overlaps_vec2d` [INFO] [stdout] --> src/quad.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn overlaps_vec2d(&self, vec: &Vector2d) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `overlaps_aabb` [INFO] [stdout] --> src/quad.rs:43:12 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn overlaps_aabb(&self, aabb: &AABB) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `position` [INFO] [stdout] --> src/quad.rs:50:12 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn position(&self) -> Position { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `size` [INFO] [stdout] --> src/quad.rs:54:12 [INFO] [stdout] | [INFO] [stdout] 54 | pub fn size(&self) -> Size { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_elements` [INFO] [stdout] --> src/quad.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | max_elements: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `max_depth` [INFO] [stdout] --> src/quad.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | max_depth: i32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `insert` [INFO] [stdout] --> src/quad.rs:92:12 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn insert(&mut self, node: &ID, position: &Vector2d) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_mass` [INFO] [stdout] --> src/quad.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn update_mass(&mut self, pos: &Vector2d, mass: i32) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide` [INFO] [stdout] --> src/quad.rs:140:8 [INFO] [stdout] | [INFO] [stdout] 140 | fn divide(&mut self) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `query` [INFO] [stdout] --> src/quad.rs:183:12 [INFO] [stdout] | [INFO] [stdout] 183 | pub fn query(&self, area: &AABB) -> Vec { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mut_two` [INFO] [stdout] --> src/spring_system.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn mut_two( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update` [INFO] [stdout] --> src/spring_system.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Num` [INFO] [stdout] --> src/structs.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | Num(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Str` [INFO] [stdout] --> src/structs.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | Str(String), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_vec2d` [INFO] [stdout] --> src/structs.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn to_vec2d(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Spring` [INFO] [stdout] --> src/structs.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Spring { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Force` [INFO] [stdout] --> src/structs.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub struct Force { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_vec2d` [INFO] [stdout] --> src/structs.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn to_vec2d(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Velocity` [INFO] [stdout] --> src/structs.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | pub struct Velocity { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `to_vec2d` [INFO] [stdout] --> src/structs.rs:65:12 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn to_vec2d(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Fixed` [INFO] [stdout] --> src/structs.rs:73:12 [INFO] [stdout] | [INFO] [stdout] 73 | pub struct Fixed { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_vec` [INFO] [stdout] --> src/structs.rs:89:12 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn add_vec(&self, vec: &Vector2d) -> Vector2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `sub_vec` [INFO] [stdout] --> src/structs.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn sub_vec(&self, vec: &Vector2d) -> Vector2d { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `normalize` [INFO] [stdout] --> src/structs.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn normalize(&self) -> Vector2d { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `len` [INFO] [stdout] --> src/structs.rs:107:12 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn len(&self) -> f64 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `divide_scalar` [INFO] [stdout] --> src/structs.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn divide_scalar(&self, scalar: f64) -> Vector2d { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `distance_to_vec` [INFO] [stdout] --> src/structs.rs:125:12 [INFO] [stdout] | [INFO] [stdout] 125 | pub fn distance_to_vec(&self, vec: &Vector2d) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update` [INFO] [stdout] --> src/velocity_verlet.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn update( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `calc_velocity` [INFO] [stdout] --> src/velocity_verlet.rs:30:4 [INFO] [stdout] | [INFO] [stdout] 30 | fn calc_velocity(velocity: f64, force: f64, mass: i32) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `force_system` [INFO] [stdout] --> src/main.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | force_system: ForceSystem, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 55 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.60s [INFO] running `Command { std: "docker" "inspect" "e03bc8ed9e8ce0406a025f35a803cfd654180efa767f009231632f520c505600", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e03bc8ed9e8ce0406a025f35a803cfd654180efa767f009231632f520c505600", kill_on_drop: false }` [INFO] [stdout] e03bc8ed9e8ce0406a025f35a803cfd654180efa767f009231632f520c505600