[INFO] fetching crate physics2d 0.6.0...
[INFO] testing physics2d-0.6.0 against 1.60.0 for beta-1.61-1
[INFO] extracting crate physics2d 0.6.0 into /workspace/builds/worker-11/source
[INFO] validating manifest of crates.io crate physics2d 0.6.0 on toolchain 1.60.0
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate physics2d 0.6.0
[INFO] finished tweaking crates.io crate physics2d 0.6.0
[INFO] tweaked toml for crates.io crate physics2d 0.6.0 written to /workspace/builds/worker-11/source/Cargo.toml
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }`
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] Blocking waiting for file lock on package cache
[INFO] [stderr] Downloading crates ...
[INFO] [stderr] Downloaded csfml-audio-sys v0.4.0
[INFO] [stderr] Downloaded csfml-graphics-sys v0.4.0
[INFO] [stderr] Downloaded csfml-system-sys v0.4.0
[INFO] [stderr] Downloaded csfml-window-sys v0.4.0
[INFO] [stderr] Downloaded sfml-build v0.2.0
[INFO] [stderr] Downloaded sfml v0.14.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 16b0d450ae1586ff0ad60fc3a139391d2a20ba127ebe6f7956864990c59cd826
[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" "16b0d450ae1586ff0ad60fc3a139391d2a20ba127ebe6f7956864990c59cd826", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "16b0d450ae1586ff0ad60fc3a139391d2a20ba127ebe6f7956864990c59cd826", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "16b0d450ae1586ff0ad60fc3a139391d2a20ba127ebe6f7956864990c59cd826", kill_on_drop: false }`
[INFO] [stdout] 16b0d450ae1586ff0ad60fc3a139391d2a20ba127ebe6f7956864990c59cd826
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--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] b1f9c59d44eaba81a0c91cb144169452a7bdd719ee512936c762310a4c508a04
[INFO] running `Command { std: "docker" "start" "-a" "b1f9c59d44eaba81a0c91cb144169452a7bdd719ee512936c762310a4c508a04", kill_on_drop: false }`
[INFO] [stderr] Compiling physics2d v0.6.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused macro definition: `match_owned_fn_to_variants`
[INFO] [stdout] --> src/util/mod.rs:3:14
[INFO] [stdout] |
[INFO] [stdout] 3 | macro_rules! match_owned_fn_to_variants {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused macro definition: `generate_match_owned_fn_macro_for_enum`
[INFO] [stdout] --> src/util/mod.rs:33:14
[INFO] [stdout] |
[INFO] [stdout] 33 | macro_rules! generate_match_owned_fn_macro_for_enum {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `BodyPair`
[INFO] [stdout] --> src/collision/broad_phase/mod.rs:7:37
[INFO] [stdout] |
[INFO] [stdout] 7 | use world::{Bodies, ConstraintsMap, BodyPair, Body};
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `collision::Contact`
[INFO] [stdout] --> src/world/collections.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use collision::Contact;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::collections::hash_map::Values`
[INFO] [stdout] --> src/world/collections.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::collections::hash_map::Values;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::cell::RefCell`
[INFO] [stdout] --> src/world/body/mod.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use std::cell::RefCell;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Vec2`
[INFO] [stdout] --> src/world/debug.rs:2:14
[INFO] [stdout] |
[INFO] [stdout] 2 | use ::math::{Vec2};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `NaiveBroadPhase`
[INFO] [stdout] --> src/world/mod.rs:13:42
[INFO] [stdout] |
[INFO] [stdout] 13 | use collision::broad_phase::{BroadPhase, NaiveBroadPhase, BoundsTreeBroadPhase};
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `rel_vel_normal`
[INFO] [stdout] --> src/collision/solver.rs:71:13
[INFO] [stdout] |
[INFO] [stdout] 71 | let rel_vel_normal = contact.normal.dot(&rel_vel);
[INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rel_vel_normal`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:65:59
[INFO] [stdout] |
[INFO] [stdout] 65 | fn initialize_velocity(&mut self, a: &Body, b: &Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:97:67
[INFO] [stdout] |
[INFO] [stdout] 97 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/collision/solver.rs:108:39
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/collision/solver.rs:108:53
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:108:67
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:110:62
[INFO] [stdout] |
[INFO] [stdout] 110 | fn solve_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:152:62
[INFO] [stdout] |
[INFO] [stdout] 152 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:111:67
[INFO] [stdout] |
[INFO] [stdout] 111 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/joint/spring.rs:118:39
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/joint/spring.rs:118:53
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:118:67
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/joint/spring.rs:137:34
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/joint/spring.rs:137:48
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:137:62
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/util/pool.rs:25:13
[INFO] [stdout] |
[INFO] [stdout] 25 | let mut node_pool = Vec::with_capacity(initial_capacity);
[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/collision/broad_phase/bounds_tree/mod.rs:74:13
[INFO] [stdout] |
[INFO] [stdout] 74 | let mut pool = pool::Pool::default();
[INFO] [stdout] | ----^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/world/collections.rs:19:12
[INFO] [stdout] |
[INFO] [stdout] 19 | pub fn new() -> Bodies {
[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: `remove`
[INFO] [stdout] --> src/world/collections.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn remove(&mut self, id: BodyId) -> Option
{
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `get_root`
[INFO] [stdout] --> src/collision/broad_phase/bounds_tree/mod.rs:81:12
[INFO] [stdout] |
[INFO] [stdout] 81 | pub fn get_root(&self) -> &Node {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `get_root_mut`
[INFO] [stdout] --> src/collision/broad_phase/bounds_tree/mod.rs:85:12
[INFO] [stdout] |
[INFO] [stdout] 85 | pub fn get_root_mut(&mut self) -> &mut Node {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `with_mut`
[INFO] [stdout] --> src/world/body/pair.rs:33:12
[INFO] [stdout] |
[INFO] [stdout] 33 | pub fn with_mut(&self, bodies: &mut Bodies, mut f: F) -> R
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stdout] --> src/world/collections.rs:93:28
[INFO] [stdout] |
[INFO] [stdout] 93 | pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stdout] |
[INFO] [stdout] 93 - pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] 93 + pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 31 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.21s
[INFO] running `Command { std: "docker" "inspect" "b1f9c59d44eaba81a0c91cb144169452a7bdd719ee512936c762310a4c508a04", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b1f9c59d44eaba81a0c91cb144169452a7bdd719ee512936c762310a4c508a04", kill_on_drop: false }`
[INFO] [stdout] b1f9c59d44eaba81a0c91cb144169452a7bdd719ee512936c762310a4c508a04
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] d82d9fd16c8c98ec6e626cdb64ae81b6867dca4c8b3df607f0ff631f20acf50c
[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" "d82d9fd16c8c98ec6e626cdb64ae81b6867dca4c8b3df607f0ff631f20acf50c", kill_on_drop: false }`
[INFO] [stderr] Compiling sfml-build v0.2.0
[INFO] [stdout] warning: unused macro definition: `match_owned_fn_to_variants`
[INFO] [stdout] --> src/util/mod.rs:3:14
[INFO] [stdout] |
[INFO] [stdout] 3 | macro_rules! match_owned_fn_to_variants {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused macro definition: `generate_match_owned_fn_macro_for_enum`
[INFO] [stdout] --> src/util/mod.rs:33:14
[INFO] [stdout] |
[INFO] [stdout] 33 | macro_rules! generate_match_owned_fn_macro_for_enum {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `BodyPair`
[INFO] [stdout] --> src/collision/broad_phase/mod.rs:7:37
[INFO] [stdout] |
[INFO] [stdout] 7 | use world::{Bodies, ConstraintsMap, BodyPair, Body};
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `collision::Contact`
[INFO] [stdout] --> src/world/collections.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use collision::Contact;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::collections::hash_map::Values`
[INFO] [stdout] --> src/world/collections.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::collections::hash_map::Values;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::cell::RefCell`
[INFO] [stdout] --> src/world/body/mod.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use std::cell::RefCell;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Vec2`
[INFO] [stdout] --> src/world/debug.rs:2:14
[INFO] [stdout] |
[INFO] [stdout] 2 | use ::math::{Vec2};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `NaiveBroadPhase`
[INFO] [stdout] --> src/world/mod.rs:13:42
[INFO] [stdout] |
[INFO] [stdout] 13 | use collision::broad_phase::{BroadPhase, NaiveBroadPhase, BoundsTreeBroadPhase};
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `rel_vel_normal`
[INFO] [stdout] --> src/collision/solver.rs:71:13
[INFO] [stdout] |
[INFO] [stdout] 71 | let rel_vel_normal = contact.normal.dot(&rel_vel);
[INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rel_vel_normal`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:65:59
[INFO] [stdout] |
[INFO] [stdout] 65 | fn initialize_velocity(&mut self, a: &Body, b: &Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:97:67
[INFO] [stdout] |
[INFO] [stdout] 97 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/collision/solver.rs:108:39
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/collision/solver.rs:108:53
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:108:67
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:110:62
[INFO] [stdout] |
[INFO] [stdout] 110 | fn solve_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:152:62
[INFO] [stdout] |
[INFO] [stdout] 152 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:111:67
[INFO] [stdout] |
[INFO] [stdout] 111 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/joint/spring.rs:118:39
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/joint/spring.rs:118:53
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:118:67
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/joint/spring.rs:137:34
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/joint/spring.rs:137:48
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:137:62
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/util/pool.rs:25:13
[INFO] [stdout] |
[INFO] [stdout] 25 | let mut node_pool = Vec::with_capacity(initial_capacity);
[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/collision/broad_phase/bounds_tree/mod.rs:74:13
[INFO] [stdout] |
[INFO] [stdout] 74 | let mut pool = pool::Pool::default();
[INFO] [stdout] | ----^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/world/collections.rs:19:12
[INFO] [stdout] |
[INFO] [stdout] 19 | pub fn new() -> Bodies {
[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: `remove`
[INFO] [stdout] --> src/world/collections.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn remove(&mut self, id: BodyId) -> Option {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `get_root`
[INFO] [stdout] --> src/collision/broad_phase/bounds_tree/mod.rs:81:12
[INFO] [stdout] |
[INFO] [stdout] 81 | pub fn get_root(&self) -> &Node {
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `get_root_mut`
[INFO] [stdout] --> src/collision/broad_phase/bounds_tree/mod.rs:85:12
[INFO] [stdout] |
[INFO] [stdout] 85 | pub fn get_root_mut(&mut self) -> &mut Node {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `with_mut`
[INFO] [stdout] --> src/world/body/pair.rs:33:12
[INFO] [stdout] |
[INFO] [stdout] 33 | pub fn with_mut(&self, bodies: &mut Bodies, mut f: F) -> R
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stdout] --> src/world/collections.rs:93:28
[INFO] [stdout] |
[INFO] [stdout] 93 | pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stdout] |
[INFO] [stdout] 93 - pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] 93 + pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 31 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Compiling csfml-system-sys v0.4.0
[INFO] [stderr] Compiling csfml-window-sys v0.4.0
[INFO] [stderr] Compiling csfml-audio-sys v0.4.0
[INFO] [stderr] Compiling csfml-graphics-sys v0.4.0
[INFO] [stderr] Compiling sfml v0.14.0
[INFO] [stderr] Compiling physics2d v0.6.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout] --> examples/stacks.rs:55:17
[INFO] [stdout] |
[INFO] [stdout] 55 | for j in i..N {
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout] --> examples/polygon_collisions.rs:47:29
[INFO] [stdout] |
[INFO] [stdout] 47 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> examples/polygon_collisions.rs:59:59
[INFO] [stdout] |
[INFO] [stdout] 59 | fn sfml_draw(&mut self, canvas: &mut testbed::Canvas, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/springs.rs:42:13
[INFO] [stdout] |
[INFO] [stdout] 42 | let mut circle_body = Body::new(circle.into_shape(), 10.0, Material::new(0.8, 0.8));
[INFO] [stdout] | ----^^^^^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout] --> examples/pyramid.rs:56:17
[INFO] [stdout] |
[INFO] [stdout] 56 | for j in i..N {
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/springs.rs:135:9
[INFO] [stdout] |
[INFO] [stdout] 135 | let mut testbed = SpringsTestbed::new(&config);
[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] --> examples/stacks.rs:126:9
[INFO] [stdout] |
[INFO] [stdout] 126 | let mut testbed = StacksTestbed::new(&config);
[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: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/polygon_collisions.rs:28:13
[INFO] [stdout] |
[INFO] [stdout] 28 | let mut b = Body::new(poly_b.into_shape(), 10.0, Material::default());
[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] --> examples/polygon_collisions.rs:79:9
[INFO] [stdout] |
[INFO] [stdout] 79 | let mut testbed = PolygonCollisionsTestbed::new();
[INFO] [stdout] | ----^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `draw_line`
[INFO] [stdout] --> examples/testbed/canvas.rs:142:12
[INFO] [stdout] |
[INFO] [stdout] 142 | pub fn draw_line(&mut self, a: Vec2, b: Vec2) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_text`
[INFO] [stdout] --> examples/testbed/canvas.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn draw_text(&mut self, text: String, size: u32) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/pyramid.rs:128:9
[INFO] [stdout] |
[INFO] [stdout] 128 | let mut testbed = PyramidTestbed::new(&config);
[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: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout] --> examples/testbed/canvas.rs:31:25
[INFO] [stdout] |
[INFO] [stdout] 31 | draw_queue: Vec>,
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout] = note: for more information, see
[INFO] [stdout] help: use `dyn`
[INFO] [stdout] |
[INFO] [stdout] 31 - draw_queue: Vec>,
[INFO] [stdout] 31 + draw_queue: Vec>,
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout] --> examples/circle_polygon_collisions.rs:46:29
[INFO] [stdout] |
[INFO] [stdout] 46 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> examples/circle_polygon_collisions.rs:58:59
[INFO] [stdout] |
[INFO] [stdout] 58 | fn sfml_draw(&mut self, canvas: &mut testbed::Canvas, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout] --> examples/polygons.rs:20:29
[INFO] [stdout] |
[INFO] [stdout] 20 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout] --> examples/circle_collisions.rs:39:29
[INFO] [stdout] |
[INFO] [stdout] 39 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> examples/circle_collisions.rs:51:59
[INFO] [stdout] |
[INFO] [stdout] 51 | fn sfml_draw(&mut self, canvas: &mut testbed::Canvas, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused macro definition: `match_owned_fn_to_variants`
[INFO] [stdout] --> src/util/mod.rs:3:14
[INFO] [stdout] |
[INFO] [stdout] 3 | macro_rules! match_owned_fn_to_variants {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_macros)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused macro definition: `generate_match_owned_fn_macro_for_enum`
[INFO] [stdout] --> src/util/mod.rs:33:14
[INFO] [stdout] |
[INFO] [stdout] 33 | macro_rules! generate_match_owned_fn_macro_for_enum {
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `BodyPair`
[INFO] [stdout] --> src/collision/broad_phase/mod.rs:7:37
[INFO] [stdout] |
[INFO] [stdout] 7 | use world::{Bodies, ConstraintsMap, BodyPair, Body};
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `collision::Contact`
[INFO] [stdout] --> src/world/collections.rs:4:5
[INFO] [stdout] |
[INFO] [stdout] 4 | use collision::Contact;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::collections::hash_map::Values`
[INFO] [stdout] --> src/world/collections.rs:9:5
[INFO] [stdout] |
[INFO] [stdout] 9 | use std::collections::hash_map::Values;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `std::cell::RefCell`
[INFO] [stdout] --> src/world/body/mod.rs:10:5
[INFO] [stdout] |
[INFO] [stdout] 10 | use std::cell::RefCell;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `Vec2`
[INFO] [stdout] --> src/world/debug.rs:2:14
[INFO] [stdout] |
[INFO] [stdout] 2 | use ::math::{Vec2};
[INFO] [stdout] | ^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused import: `NaiveBroadPhase`
[INFO] [stdout] --> src/world/mod.rs:13:42
[INFO] [stdout] |
[INFO] [stdout] 13 | use collision::broad_phase::{BroadPhase, NaiveBroadPhase, BoundsTreeBroadPhase};
[INFO] [stdout] | ^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/circle_collisions.rs:21:13
[INFO] [stdout] |
[INFO] [stdout] 21 | let mut b = Body::new(circle_b.into_shape(), 10.0, Material::new(0.3, 0.3));
[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] --> examples/circle_collisions.rs:71:9
[INFO] [stdout] |
[INFO] [stdout] 71 | let mut testbed = CircleCollisionsTestbed::new();
[INFO] [stdout] | ----^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `draw_line`
[INFO] [stdout] --> examples/testbed/canvas.rs:142:12
[INFO] [stdout] |
[INFO] [stdout] 142 | pub fn draw_line(&mut self, a: Vec2, b: Vec2) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_text`
[INFO] [stdout] --> examples/testbed/canvas.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn draw_text(&mut self, text: String, size: u32) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/circle_polygon_collisions.rs:27:13
[INFO] [stdout] |
[INFO] [stdout] 27 | let mut b = Body::new(circle.into_shape(), 10.0, Material::new(0.3, 0.3));
[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] --> examples/circle_polygon_collisions.rs:78:9
[INFO] [stdout] |
[INFO] [stdout] 78 | let mut testbed = CirclePolygonCollisionsTestbed::new();
[INFO] [stdout] | ----^^^^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout] --> examples/circles.rs:20:29
[INFO] [stdout] |
[INFO] [stdout] 20 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `draw_line`
[INFO] [stdout] --> examples/testbed/canvas.rs:142:12
[INFO] [stdout] |
[INFO] [stdout] 142 | pub fn draw_line(&mut self, a: Vec2, b: Vec2) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_text`
[INFO] [stdout] --> examples/testbed/canvas.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn draw_text(&mut self, text: String, size: u32) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:63:31
[INFO] [stdout] |
[INFO] [stdout] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `sfml_pos`
[INFO] [stdout] --> examples/testbed/canvas.rs:89:32
[INFO] [stdout] |
[INFO] [stdout] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `alt`
[INFO] [stdout] --> examples/testbed/input.rs:46:39
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `ctrl`
[INFO] [stdout] --> examples/testbed/input.rs:46:44
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `shift`
[INFO] [stdout] --> examples/testbed/input.rs:46:50
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `system`
[INFO] [stdout] --> examples/testbed/input.rs:46:57
[INFO] [stdout] |
[INFO] [stdout] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stdout] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `draw_point`
[INFO] [stdout] --> examples/testbed/canvas.rs:121:12
[INFO] [stdout] |
[INFO] [stdout] 121 | pub fn draw_point(&mut self, point: Vec2) {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant is never used: `WIDTH`
[INFO] [stdout] --> examples/testbed/canvas.rs:123:9
[INFO] [stdout] |
[INFO] [stdout] 123 | const WIDTH: f32 = 2.0;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_line`
[INFO] [stdout] --> examples/testbed/canvas.rs:142:12
[INFO] [stdout] |
[INFO] [stdout] 142 | pub fn draw_line(&mut self, a: Vec2, b: Vec2) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_text`
[INFO] [stdout] --> examples/testbed/canvas.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn draw_text(&mut self, text: String, size: u32) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> examples/collisions.rs:92:9
[INFO] [stdout] |
[INFO] [stdout] 92 | let mut testbed = CollisionsTestbed::new(&config);
[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: associated function is never used: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `config_shape`
[INFO] [stdout] --> examples/testbed/canvas.rs:53:8
[INFO] [stdout] |
[INFO] [stdout] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[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: `draw_point`
[INFO] [stdout] --> examples/testbed/canvas.rs:121:12
[INFO] [stdout] |
[INFO] [stdout] 121 | pub fn draw_point(&mut self, point: Vec2) {
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: constant is never used: `WIDTH`
[INFO] [stdout] --> examples/testbed/canvas.rs:123:9
[INFO] [stdout] |
[INFO] [stdout] 123 | const WIDTH: f32 = 2.0;
[INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_line`
[INFO] [stdout] --> examples/testbed/canvas.rs:142:12
[INFO] [stdout] |
[INFO] [stdout] 142 | pub fn draw_line(&mut self, a: Vec2, b: Vec2) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `draw_text`
[INFO] [stdout] --> examples/testbed/canvas.rs:158:12
[INFO] [stdout] |
[INFO] [stdout] 158 | pub fn draw_text(&mut self, text: String, size: u32) {
[INFO] [stdout] | ^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `rel_vel_normal`
[INFO] [stdout] --> src/collision/solver.rs:71:13
[INFO] [stdout] |
[INFO] [stdout] 71 | let rel_vel_normal = contact.normal.dot(&rel_vel);
[INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rel_vel_normal`
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:65:59
[INFO] [stdout] |
[INFO] [stdout] 65 | fn initialize_velocity(&mut self, a: &Body, b: &Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:97:67
[INFO] [stdout] |
[INFO] [stdout] 97 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/collision/solver.rs:108:39
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/collision/solver.rs:108:53
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:108:67
[INFO] [stdout] |
[INFO] [stdout] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:110:62
[INFO] [stdout] |
[INFO] [stdout] 110 | fn solve_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/collision/solver.rs:152:62
[INFO] [stdout] |
[INFO] [stdout] 152 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:111:67
[INFO] [stdout] |
[INFO] [stdout] 111 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/joint/spring.rs:118:39
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/joint/spring.rs:118:53
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:118:67
[INFO] [stdout] |
[INFO] [stdout] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/joint/spring.rs:137:34
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `b`
[INFO] [stdout] --> src/joint/spring.rs:137:48
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `dt`
[INFO] [stdout] --> src/joint/spring.rs:137:62
[INFO] [stdout] |
[INFO] [stdout] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `a`
[INFO] [stdout] --> src/util/pool.rs:99:14
[INFO] [stdout] |
[INFO] [stdout] 99 | let (a, b, c) = (pool.allocate(), pool.allocate(), pool.allocate());
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: unused variable: `c`
[INFO] [stdout] --> src/util/pool.rs:99:20
[INFO] [stdout] |
[INFO] [stdout] 99 | let (a, b, c) = (pool.allocate(), pool.allocate(), pool.allocate());
[INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout] --> src/util/pool.rs:25:13
[INFO] [stdout] |
[INFO] [stdout] 25 | let mut node_pool = Vec::with_capacity(initial_capacity);
[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/collision/broad_phase/bounds_tree/mod.rs:74:13
[INFO] [stdout] |
[INFO] [stdout] 74 | let mut pool = pool::Pool::default();
[INFO] [stdout] | ----^^^^
[INFO] [stdout] | |
[INFO] [stdout] | help: remove this `mut`
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `new`
[INFO] [stdout] --> src/world/collections.rs:19:12
[INFO] [stdout] |
[INFO] [stdout] 19 | pub fn new() -> Bodies {
[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: `remove`
[INFO] [stdout] --> src/world/collections.rs:64:12
[INFO] [stdout] |
[INFO] [stdout] 64 | pub fn remove(&mut self, id: BodyId) -> Option {
[INFO] [stdout] | ^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `get_root_mut`
[INFO] [stdout] --> src/collision/broad_phase/bounds_tree/mod.rs:85:12
[INFO] [stdout] |
[INFO] [stdout] 85 | pub fn get_root_mut(&mut self) -> &mut Node {
[INFO] [stdout] | ^^^^^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: associated function is never used: `with_mut`
[INFO] [stdout] --> src/world/body/pair.rs:33:12
[INFO] [stdout] |
[INFO] [stdout] 33 | pub fn with_mut(&self, bodies: &mut Bodies, mut f: F) -> R
[INFO] [stdout] | ^^^^^^^^
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stdout] --> src/world/collections.rs:93:28
[INFO] [stdout] |
[INFO] [stdout] 93 | pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] | ^^^^^^^^^^
[INFO] [stdout] |
[INFO] [stdout] = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stdout] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stdout] |
[INFO] [stdout] 93 - pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] 93 + pub type ConstraintsMap = FnvHashMap>;
[INFO] [stdout] |
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 14 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 14 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 14 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 13 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 13 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 10 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 32 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] warning: 9 warnings emitted
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 13.41s
[INFO] running `Command { std: "docker" "inspect" "d82d9fd16c8c98ec6e626cdb64ae81b6867dca4c8b3df607f0ff631f20acf50c", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d82d9fd16c8c98ec6e626cdb64ae81b6867dca4c8b3df607f0ff631f20acf50c", kill_on_drop: false }`
[INFO] [stdout] d82d9fd16c8c98ec6e626cdb64ae81b6867dca4c8b3df607f0ff631f20acf50c
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] e99c8c9db1765527184b07f81ee2f8fd95c1eed7b2fcc7ea4248d74b1472ba67
[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" "e99c8c9db1765527184b07f81ee2f8fd95c1eed7b2fcc7ea4248d74b1472ba67", kill_on_drop: false }`
[INFO] [stderr] warning: unused macro definition: `match_owned_fn_to_variants`
[INFO] [stderr] --> src/util/mod.rs:3:14
[INFO] [stderr] |
[INFO] [stderr] 3 | macro_rules! match_owned_fn_to_variants {
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_macros)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused macro definition: `generate_match_owned_fn_macro_for_enum`
[INFO] [stderr] --> src/util/mod.rs:33:14
[INFO] [stderr] |
[INFO] [stderr] 33 | macro_rules! generate_match_owned_fn_macro_for_enum {
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `BodyPair`
[INFO] [stderr] --> src/collision/broad_phase/mod.rs:7:37
[INFO] [stderr] |
[INFO] [stderr] 7 | use world::{Bodies, ConstraintsMap, BodyPair, Body};
[INFO] [stderr] | ^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `collision::Contact`
[INFO] [stderr] --> src/world/collections.rs:4:5
[INFO] [stderr] |
[INFO] [stderr] 4 | use collision::Contact;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `std::collections::hash_map::Values`
[INFO] [stderr] --> src/world/collections.rs:9:5
[INFO] [stderr] |
[INFO] [stderr] 9 | use std::collections::hash_map::Values;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `std::cell::RefCell`
[INFO] [stderr] --> src/world/body/mod.rs:10:5
[INFO] [stderr] |
[INFO] [stderr] 10 | use std::cell::RefCell;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `Vec2`
[INFO] [stderr] --> src/world/debug.rs:2:14
[INFO] [stderr] |
[INFO] [stderr] 2 | use ::math::{Vec2};
[INFO] [stderr] | ^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused import: `NaiveBroadPhase`
[INFO] [stderr] --> src/world/mod.rs:13:42
[INFO] [stderr] |
[INFO] [stderr] 13 | use collision::broad_phase::{BroadPhase, NaiveBroadPhase, BoundsTreeBroadPhase};
[INFO] [stderr] | ^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `rel_vel_normal`
[INFO] [stderr] --> src/collision/solver.rs:71:13
[INFO] [stderr] |
[INFO] [stderr] 71 | let rel_vel_normal = contact.normal.dot(&rel_vel);
[INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rel_vel_normal`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/collision/solver.rs:65:59
[INFO] [stderr] |
[INFO] [stderr] 65 | fn initialize_velocity(&mut self, a: &Body, b: &Body, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/collision/solver.rs:97:67
[INFO] [stderr] |
[INFO] [stderr] 97 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr] --> src/collision/solver.rs:108:39
[INFO] [stderr] |
[INFO] [stderr] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr] --> src/collision/solver.rs:108:53
[INFO] [stderr] |
[INFO] [stderr] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/collision/solver.rs:108:67
[INFO] [stderr] |
[INFO] [stderr] 108 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/collision/solver.rs:110:62
[INFO] [stderr] |
[INFO] [stderr] 110 | fn solve_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/collision/solver.rs:152:62
[INFO] [stderr] |
[INFO] [stderr] 152 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/joint/spring.rs:111:67
[INFO] [stderr] |
[INFO] [stderr] 111 | fn warm_start_velocity(&mut self, a: &mut Body, b: &mut Body, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr] --> src/joint/spring.rs:118:39
[INFO] [stderr] |
[INFO] [stderr] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr] --> src/joint/spring.rs:118:53
[INFO] [stderr] |
[INFO] [stderr] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/joint/spring.rs:118:67
[INFO] [stderr] |
[INFO] [stderr] 118 | fn warm_start_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr] --> src/joint/spring.rs:137:34
[INFO] [stderr] |
[INFO] [stderr] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `b`
[INFO] [stderr] --> src/joint/spring.rs:137:48
[INFO] [stderr] |
[INFO] [stderr] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_b`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> src/joint/spring.rs:137:62
[INFO] [stderr] |
[INFO] [stderr] 137 | fn solve_position(&mut self, a: &mut Body, b: &mut Body, dt: f32) {}
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> src/util/pool.rs:25:13
[INFO] [stderr] |
[INFO] [stderr] 25 | let mut node_pool = Vec::with_capacity(initial_capacity);
[INFO] [stderr] | ----^^^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> src/collision/broad_phase/bounds_tree/mod.rs:74:13
[INFO] [stderr] |
[INFO] [stderr] 74 | let mut pool = pool::Pool::default();
[INFO] [stderr] | ----^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `new`
[INFO] [stderr] --> src/world/collections.rs:19:12
[INFO] [stderr] |
[INFO] [stderr] 19 | pub fn new() -> Bodies {
[INFO] [stderr] | ^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(dead_code)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `remove`
[INFO] [stderr] --> src/world/collections.rs:64:12
[INFO] [stderr] |
[INFO] [stderr] 64 | pub fn remove(&mut self, id: BodyId) -> Option {
[INFO] [stderr] | ^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `get_root`
[INFO] [stderr] --> src/collision/broad_phase/bounds_tree/mod.rs:81:12
[INFO] [stderr] |
[INFO] [stderr] 81 | pub fn get_root(&self) -> &Node {
[INFO] [stderr] | ^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `get_root_mut`
[INFO] [stderr] --> src/collision/broad_phase/bounds_tree/mod.rs:85:12
[INFO] [stderr] |
[INFO] [stderr] 85 | pub fn get_root_mut(&mut self) -> &mut Node {
[INFO] [stderr] | ^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `with_mut`
[INFO] [stderr] --> src/world/body/pair.rs:33:12
[INFO] [stderr] |
[INFO] [stderr] 33 | pub fn with_mut(&self, bodies: &mut Bodies, mut f: F) -> R
[INFO] [stderr] | ^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: bounds on generic parameters are not enforced in type aliases
[INFO] [stderr] --> src/world/collections.rs:93:28
[INFO] [stderr] |
[INFO] [stderr] 93 | pub type ConstraintsMap = FnvHashMap>;
[INFO] [stderr] | ^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(type_alias_bounds)]` on by default
[INFO] [stderr] help: the bound will not be checked when the type alias is used, and should be removed
[INFO] [stderr] |
[INFO] [stderr] 93 - pub type ConstraintsMap = FnvHashMap>;
[INFO] [stderr] 93 + pub type ConstraintsMap = FnvHashMap>;
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: `physics2d` (lib) generated 31 warnings
[INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stderr] --> examples/testbed/canvas.rs:31:25
[INFO] [stderr] |
[INFO] [stderr] 31 | draw_queue: Vec>,
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default
[INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr] = note: for more information, see
[INFO] [stderr] help: use `dyn`
[INFO] [stderr] |
[INFO] [stderr] 31 - draw_queue: Vec>,
[INFO] [stderr] 31 + draw_queue: Vec>,
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `sfml_pos`
[INFO] [stderr] --> examples/testbed/canvas.rs:63:31
[INFO] [stderr] |
[INFO] [stderr] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `sfml_pos`
[INFO] [stderr] --> examples/testbed/canvas.rs:89:32
[INFO] [stderr] |
[INFO] [stderr] 89 | fn draw_polygon(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `alt`
[INFO] [stderr] --> examples/testbed/input.rs:46:39
[INFO] [stderr] |
[INFO] [stderr] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stderr] | ^^^ help: try ignoring the field: `alt: _`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `ctrl`
[INFO] [stderr] --> examples/testbed/input.rs:46:44
[INFO] [stderr] |
[INFO] [stderr] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stderr] | ^^^^ help: try ignoring the field: `ctrl: _`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `shift`
[INFO] [stderr] --> examples/testbed/input.rs:46:50
[INFO] [stderr] |
[INFO] [stderr] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stderr] | ^^^^^ help: try ignoring the field: `shift: _`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `system`
[INFO] [stderr] --> examples/testbed/input.rs:46:57
[INFO] [stderr] |
[INFO] [stderr] 46 | Event::KeyPressed { code, alt, ctrl, shift, system } => {
[INFO] [stderr] | ^^^^^^ help: try ignoring the field: `system: _`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/springs.rs:42:13
[INFO] [stderr] |
[INFO] [stderr] 42 | let mut circle_body = Body::new(circle.into_shape(), 10.0, Material::new(0.8, 0.8));
[INFO] [stderr] | ----^^^^^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/springs.rs:135:9
[INFO] [stderr] |
[INFO] [stderr] 135 | let mut testbed = SpringsTestbed::new(&config);
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `config_shape`
[INFO] [stderr] --> examples/testbed/canvas.rs:53:8
[INFO] [stderr] |
[INFO] [stderr] 53 | fn config_shape<'a, T: sfml::graphics::Shape<'a>>(&self, shape: &mut T) {
[INFO] [stderr] | ^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(dead_code)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `j`
[INFO] [stderr] --> examples/pyramid.rs:56:17
[INFO] [stderr] |
[INFO] [stderr] 56 | for j in i..N {
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `sfml_pos`
[INFO] [stderr] --> examples/testbed/canvas.rs:63:31
[INFO] [stderr] |
[INFO] [stderr] 63 | fn draw_circle(&mut self, sfml_pos: sfml::system::Vector2f,
[INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_sfml_pos`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/pyramid.rs:128:9
[INFO] [stderr] |
[INFO] [stderr] 128 | let mut testbed = PyramidTestbed::new(&config);
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `input`
[INFO] [stderr] --> examples/polygon_collisions.rs:47:29
[INFO] [stderr] |
[INFO] [stderr] 47 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> examples/polygon_collisions.rs:59:59
[INFO] [stderr] |
[INFO] [stderr] 59 | fn sfml_draw(&mut self, canvas: &mut testbed::Canvas, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/polygon_collisions.rs:28:13
[INFO] [stderr] |
[INFO] [stderr] 28 | let mut b = Body::new(poly_b.into_shape(), 10.0, Material::default());
[INFO] [stderr] | ----^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/polygon_collisions.rs:79:9
[INFO] [stderr] |
[INFO] [stderr] 79 | let mut testbed = PolygonCollisionsTestbed::new();
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `draw_line`
[INFO] [stderr] --> examples/testbed/canvas.rs:142:12
[INFO] [stderr] |
[INFO] [stderr] 142 | pub fn draw_line(&mut self, a: Vec2, b: Vec2) {
[INFO] [stderr] | ^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `draw_text`
[INFO] [stderr] --> examples/testbed/canvas.rs:158:12
[INFO] [stderr] |
[INFO] [stderr] 158 | pub fn draw_text(&mut self, text: String, size: u32) {
[INFO] [stderr] | ^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/collisions.rs:92:9
[INFO] [stderr] |
[INFO] [stderr] 92 | let mut testbed = CollisionsTestbed::new(&config);
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `input`
[INFO] [stderr] --> examples/circles.rs:20:29
[INFO] [stderr] |
[INFO] [stderr] 20 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: associated function is never used: `draw_point`
[INFO] [stderr] --> examples/testbed/canvas.rs:121:12
[INFO] [stderr] |
[INFO] [stderr] 121 | pub fn draw_point(&mut self, point: Vec2) {
[INFO] [stderr] | ^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: constant is never used: `WIDTH`
[INFO] [stderr] --> examples/testbed/canvas.rs:123:9
[INFO] [stderr] |
[INFO] [stderr] 123 | const WIDTH: f32 = 2.0;
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `input`
[INFO] [stderr] --> examples/circle_polygon_collisions.rs:46:29
[INFO] [stderr] |
[INFO] [stderr] 46 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> examples/circle_polygon_collisions.rs:58:59
[INFO] [stderr] |
[INFO] [stderr] 58 | fn sfml_draw(&mut self, canvas: &mut testbed::Canvas, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/circle_polygon_collisions.rs:27:13
[INFO] [stderr] |
[INFO] [stderr] 27 | let mut b = Body::new(circle.into_shape(), 10.0, Material::new(0.3, 0.3));
[INFO] [stderr] | ----^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/circle_polygon_collisions.rs:78:9
[INFO] [stderr] |
[INFO] [stderr] 78 | let mut testbed = CirclePolygonCollisionsTestbed::new();
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `a`
[INFO] [stderr] --> src/util/pool.rs:99:14
[INFO] [stderr] |
[INFO] [stderr] 99 | let (a, b, c) = (pool.allocate(), pool.allocate(), pool.allocate());
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_a`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `c`
[INFO] [stderr] --> src/util/pool.rs:99:20
[INFO] [stderr] |
[INFO] [stderr] 99 | let (a, b, c) = (pool.allocate(), pool.allocate(), pool.allocate());
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_c`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `j`
[INFO] [stderr] --> examples/stacks.rs:55:17
[INFO] [stderr] |
[INFO] [stderr] 55 | for j in i..N {
[INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/stacks.rs:126:9
[INFO] [stderr] |
[INFO] [stderr] 126 | let mut testbed = StacksTestbed::new(&config);
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `input`
[INFO] [stderr] --> examples/circle_collisions.rs:39:29
[INFO] [stderr] |
[INFO] [stderr] 39 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `dt`
[INFO] [stderr] --> examples/circle_collisions.rs:51:59
[INFO] [stderr] |
[INFO] [stderr] 51 | fn sfml_draw(&mut self, canvas: &mut testbed::Canvas, dt: f32) {
[INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_dt`
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/circle_collisions.rs:21:13
[INFO] [stderr] |
[INFO] [stderr] 21 | let mut b = Body::new(circle_b.into_shape(), 10.0, Material::new(0.3, 0.3));
[INFO] [stderr] | ----^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr] --> examples/circle_collisions.rs:71:9
[INFO] [stderr] |
[INFO] [stderr] 71 | let mut testbed = CircleCollisionsTestbed::new();
[INFO] [stderr] | ----^^^^^^^
[INFO] [stderr] | |
[INFO] [stderr] | help: remove this `mut`
[INFO] [stderr]
[INFO] [stderr] warning: unused variable: `input`
[INFO] [stderr] --> examples/polygons.rs:20:29
[INFO] [stderr] |
[INFO] [stderr] 20 | fn sfml_loop(&mut self, input: &testbed::Input, dt: f32) {
[INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stderr] |
[INFO] [stderr] = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr]
[INFO] [stderr] warning: `physics2d` (example "springs") generated 10 warnings
[INFO] [stderr] warning: `physics2d` (example "pyramid") generated 10 warnings (7 duplicates)
[INFO] [stderr] warning: `physics2d` (example "polygon_collisions") generated 14 warnings (8 duplicates)
[INFO] [stderr] warning: `physics2d` (example "collisions") generated 9 warnings (8 duplicates)
[INFO] [stderr] warning: `physics2d` (example "circles") generated 13 warnings (10 duplicates)
[INFO] [stderr] warning: `physics2d` (example "circle_polygon_collisions") generated 14 warnings (10 duplicates)
[INFO] [stderr] warning: `physics2d` (lib test) generated 32 warnings (30 duplicates)
[INFO] [stderr] warning: `physics2d` (example "stacks") generated 10 warnings (8 duplicates)
[INFO] [stderr] warning: `physics2d` (example "circle_collisions") generated 14 warnings (10 duplicates)
[INFO] [stderr] warning: `physics2d` (example "polygons") generated 13 warnings (12 duplicates)
[INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/physics2d-3a92be7146104927)
[INFO] [stdout]
[INFO] [stdout] running 5 tests
[INFO] [stderr] Doc-tests physics2d
[INFO] [stdout] test collision::broad_phase::bounds_tree::tests::balance ... ok
[INFO] [stdout] test collision::broad_phase::bounds_tree::tests::remove_leaf ... ok
[INFO] [stdout] test util::pool::tests::allocate ... ok
[INFO] [stdout] test collision::broad_phase::bounds_tree::tests::insert_leaf ... ok
[INFO] [stdout] test util::pool::tests::free ... ok
[INFO] [stdout]
[INFO] [stdout] test result: ok. 5 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout]
[INFO] [stdout]
[INFO] [stdout] running 20 tests
[INFO] [stdout] test src/math/bounds.rs - math::bounds::Bounds::center_extents (line 33) ... ok
[INFO] [stdout] test src/math/mat2.rs - math::mat2::Mat2::rotation (line 37) ... ok
[INFO] [stdout] test src/math/vec2.rs - math::vec2::Vec2::len (line 25) ... ok
[INFO] [stdout] test src/math/bounds.rs - math::bounds::Bounds::contains (line 81) ... ok
[INFO] [stdout] test src/math/vec2.rs - math::vec2::Vec2::dot (line 54) ... ok
[INFO] [stdout] test src/math/mod.rs - math::clamp01 (line 46) ... ok
[INFO] [stdout] test src/math/bounds.rs - math::bounds::Bounds::expand (line 117) ... ok
[INFO] [stdout] test src/math/bounds.rs - math::bounds::Bounds::intersects (line 59) ... ok
[INFO] [stdout] test src/math/vec2.rs - math::vec2::Vec2::min (line 94) ... ok
[INFO] [stdout] test src/math/mod.rs - math::clamp (line 23) ... ok
[INFO] [stdout] test src/math/vec2.rs - math::vec2::Vec2::normalized (line 70) ... ok
[INFO] [stdout] test src/math/mat2.rs - math::mat2::Mat2::transpose (line 57) ... ok
[INFO] [stdout] test src/math/bounds.rs - math::bounds::Bounds::union (line 96) ... ok
[INFO] [stdout] test src/math/vec2.rs - math::vec2::Vec2::max (line 111) ... ok
[INFO] [stdout] test src/math/vec2.rs - math::vec2::Vec2::sqr_len (line 39) ... ok
[INFO] [stdout] test src/math/bounds.rs - math::bounds::Bounds::perimeter (line 45) ... ok
[INFO] [stdout] test src/world/transform.rs - world::transform::Transform::local_dir (line 88) ... ok
[INFO] [stdout] test src/world/transform.rs - world::transform::Transform::world_dir (line 52) ... ok
[INFO] [stdout] test src/world/transform.rs - world::transform::Transform::world_pos (line 34) ... ok
[INFO] [stdout] test src/world/transform.rs - world::transform::Transform::local_pos (line 70) ... ok
[INFO] [stdout]
[INFO] [stdout] test result: ok. 20 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.22s
[INFO] [stdout]
[INFO] running `Command { std: "docker" "inspect" "e99c8c9db1765527184b07f81ee2f8fd95c1eed7b2fcc7ea4248d74b1472ba67", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e99c8c9db1765527184b07f81ee2f8fd95c1eed7b2fcc7ea4248d74b1472ba67", kill_on_drop: false }`
[INFO] [stdout] e99c8c9db1765527184b07f81ee2f8fd95c1eed7b2fcc7ea4248d74b1472ba67