[INFO] crate rhusics 0.2.0 is already in cache
[INFO] extracting crate rhusics 0.2.0 into work/ex/clippy-test-run/sources/stable/reg/rhusics/0.2.0
[INFO] extracting crate rhusics 0.2.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/rhusics/0.2.0
[INFO] validating manifest of rhusics-0.2.0 on toolchain stable
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] validating manifest of rhusics-0.2.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"`
[INFO] started frobbing rhusics-0.2.0
[INFO] removed 4 missing examples
[INFO] finished frobbing rhusics-0.2.0
[INFO] frobbed toml for rhusics-0.2.0 written to work/ex/clippy-test-run/sources/stable/reg/rhusics/0.2.0/Cargo.toml
[INFO] started frobbing rhusics-0.2.0
[INFO] removed 4 missing examples
[INFO] finished frobbing rhusics-0.2.0
[INFO] frobbed toml for rhusics-0.2.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/rhusics/0.2.0/Cargo.toml
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"`
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"`
[INFO] linting rhusics-0.2.0 against stable for clippy-test-run
[INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/rhusics/0.2.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"`
[INFO] [stdout] 7eb75a072600f59fd914afd04cb9c07c099101d133e8ff186d0cccb54a40358e
[INFO] running `"docker" "start" "-a" "7eb75a072600f59fd914afd04cb9c07c099101d133e8ff186d0cccb54a40358e"`
[INFO] [stderr] warning: An explicit [[example]] section is specified in Cargo.toml which currently
[INFO] [stderr] disables Cargo from automatically inferring other example targets.
[INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following
[INFO] [stderr] files will be included as a example target:
[INFO] [stderr]
[INFO] [stderr] * /opt/crater/workdir/examples/basic2d.rs
[INFO] [stderr] * /opt/crater/workdir/examples/spatial2d.rs
[INFO] [stderr] * /opt/crater/workdir/examples/spatial3d.rs
[INFO] [stderr] * /opt/crater/workdir/examples/basic3d.rs
[INFO] [stderr]
[INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be
[INFO] [stderr] ready to be compiled as a example target today. You can future-proof yourself
[INFO] [stderr] and disable this warning by adding `autoexamples = false` to your [package]
[INFO] [stderr] section. You may also move the files to a location where Cargo would not
[INFO] [stderr] automatically infer them to be a target, such as in subfolders.
[INFO] [stderr]
[INFO] [stderr] For more information on this warning you can consult
[INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330
[INFO] [stderr] Checking collision v0.14.0
[INFO] [stderr] Checking rhusics v0.2.0 (/opt/crater/workdir)
[INFO] [stderr] warning: long literal lacking separators
[INFO] [stderr] --> src/collide/narrow.rs:227:25
[INFO] [stderr] |
[INFO] [stderr] 227 | assert_ulps_eq!(0.16666666666666666, contact.time_of_impact);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider: `0.166_666_666_666_666_66`
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::unreadable_literal)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
[INFO] [stderr]
[INFO] [stderr] warning: long literal lacking separators
[INFO] [stderr] --> src/collide/narrow.rs:267:25
[INFO] [stderr] |
[INFO] [stderr] 267 | assert_ulps_eq!(0.16666666666666666, contact.time_of_impact);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider: `0.166_666_666_666_666_66`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
[INFO] [stderr]
[INFO] [stderr] warning: long literal lacking separators
[INFO] [stderr] --> src/physics/resolution.rs:323:38
[INFO] [stderr] |
[INFO] [stderr] 323 | Point2::new(-0.04900000075250864, 0.),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider: `0.049_000_000_752_508_64`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
[INFO] [stderr]
[INFO] [stderr] warning: long literal lacking separators
[INFO] [stderr] --> src/physics/resolution.rs:332:37
[INFO] [stderr] |
[INFO] [stderr] 332 | Point2::new(1.0490000007525087, 0.),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: consider: `1.049_000_000_752_508_7`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
[INFO] [stderr]
[INFO] [stderr] warning: long literal lacking separators
[INFO] [stderr] --> src/physics/resolution.rs:379:38
[INFO] [stderr] |
[INFO] [stderr] 379 | Point2::new(-0.04900000075250864, 0.),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider: `0.049_000_000_752_508_64`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
[INFO] [stderr]
[INFO] [stderr] warning: long literal lacking separators
[INFO] [stderr] --> src/physics/resolution.rs:388:37
[INFO] [stderr] |
[INFO] [stderr] 388 | Point2::new(1.0490000007525087, 0.),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: consider: `1.049_000_000_752_508_7`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal
[INFO] [stderr]
[INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices.
[INFO] [stderr] --> src/collide/mod.rs:250:35
[INFO] [stderr] |
[INFO] [stderr] 250 | fn get_bound
(primitives: &Vec<(P, T)>) -> B
[INFO] [stderr] | ^^^^^^^^^^^^ help: change this to: `&[(P, T)]`
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
[INFO] [stderr]
[INFO] [stderr] warning: use of `unwrap_or` followed by a call to `default`
[INFO] [stderr] --> src/physics/resolution.rs:142:22
[INFO] [stderr] |
[INFO] [stderr] 142 | let a_velocity = a.velocity
[INFO] [stderr] | ______________________^
[INFO] [stderr] 143 | | .map(|v| v.value.clone())
[INFO] [stderr] 144 | | .unwrap_or(Velocity::default());
[INFO] [stderr] | |_______________________________________^
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
[INFO] [stderr] help: try this
[INFO] [stderr] |
[INFO] [stderr] 142 | let a_velocity = a.velocity
[INFO] [stderr] 143 | .map(|v| v.value.clone()).unwrap_or_default();
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: use of `unwrap_or` followed by a call to `default`
[INFO] [stderr] --> src/physics/resolution.rs:145:22
[INFO] [stderr] |
[INFO] [stderr] 145 | let b_velocity = b.velocity
[INFO] [stderr] | ______________________^
[INFO] [stderr] 146 | | .map(|v| v.value.clone())
[INFO] [stderr] 147 | | .unwrap_or(Velocity::default());
[INFO] [stderr] | |_______________________________________^
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
[INFO] [stderr] help: try this
[INFO] [stderr] |
[INFO] [stderr] 145 | let b_velocity = b.velocity
[INFO] [stderr] 146 | .map(|v| v.value.clone()).unwrap_or_default();
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions
[INFO] [stderr] --> src/physics/resolution.rs:247:6
[INFO] [stderr] |
[INFO] [stderr] 247 | ) -> (Option>, Option>)
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::type_complexity)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/physics/resolution.rs:275:9
[INFO] [stderr] |
[INFO] [stderr] 275 | next_frame.rotation().clone(),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*next_frame.rotation()`
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] warning: use of `unwrap_or` followed by a function call
[INFO] [stderr] --> src/physics/mass.rs:89:40
[INFO] [stderr] |
[INFO] [stderr] 89 | SquareMatrix::invert(self).unwrap_or(Matrix3::zero())
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(Matrix3::zero)`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
[INFO] [stderr]
[INFO] [stderr] warning: you should consider adding a `Default` implementation for `physics::force::ForceAccumulator`
[INFO] [stderr] --> src/physics/force.rs:27:5
[INFO] [stderr] |
[INFO] [stderr] 27 | / pub fn new() -> Self {
[INFO] [stderr] 28 | | Self {
[INFO] [stderr] 29 | | force: F::zero(),
[INFO] [stderr] 30 | | torque: T::zero(),
[INFO] [stderr] 31 | | }
[INFO] [stderr] 32 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
[INFO] [stderr] help: try this
[INFO] [stderr] |
[INFO] [stderr] 21 | impl Default for physics::force::ForceAccumulator {
[INFO] [stderr] 22 | fn default() -> Self {
[INFO] [stderr] 23 | Self::new()
[INFO] [stderr] 24 | }
[INFO] [stderr] 25 | }
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/physics/force.rs:74:17
[INFO] [stderr] |
[INFO] [stderr] 74 | let v = self.force.clone();
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.force`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/physics/force.rs:83:17
[INFO] [stderr] |
[INFO] [stderr] 83 | let v = self.torque.clone();
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.torque`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/lib.rs:173:13
[INFO] [stderr] |
[INFO] [stderr] 173 | other.rotation.clone(),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `other.rotation`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] warning: float has excessive precision
[INFO] [stderr] --> src/collide/narrow.rs:227:25
[INFO] [stderr] |
[INFO] [stderr] 227 | assert_ulps_eq!(0.16666666666666666, contact.time_of_impact);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.166_666_67`
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::excessive_precision)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
[INFO] [stderr]
[INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices.
[INFO] [stderr] --> src/collide/mod.rs:250:35
[INFO] [stderr] |
[INFO] [stderr] 250 | fn get_bound(primitives: &Vec<(P, T)>) -> B
[INFO] [stderr] | ^^^^^^^^^^^^ help: change this to: `&[(P, T)]`
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
[INFO] [stderr]
[INFO] [stderr] warning: use of `unwrap_or` followed by a call to `default`
[INFO] [stderr] --> src/physics/resolution.rs:142:22
[INFO] [stderr] |
[INFO] [stderr] 142 | let a_velocity = a.velocity
[INFO] [stderr] | ______________________^
[INFO] [stderr] 143 | | .map(|v| v.value.clone())
[INFO] [stderr] 144 | | .unwrap_or(Velocity::default());
[INFO] [stderr] | |_______________________________________^
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::or_fun_call)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
[INFO] [stderr] help: try this
[INFO] [stderr] |
[INFO] [stderr] 142 | let a_velocity = a.velocity
[INFO] [stderr] 143 | .map(|v| v.value.clone()).unwrap_or_default();
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: use of `unwrap_or` followed by a call to `default`
[INFO] [stderr] --> src/physics/resolution.rs:145:22
[INFO] [stderr] |
[INFO] [stderr] 145 | let b_velocity = b.velocity
[INFO] [stderr] | ______________________^
[INFO] [stderr] 146 | | .map(|v| v.value.clone())
[INFO] [stderr] 147 | | .unwrap_or(Velocity::default());
[INFO] [stderr] | |_______________________________________^
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
[INFO] [stderr] help: try this
[INFO] [stderr] |
[INFO] [stderr] 145 | let b_velocity = b.velocity
[INFO] [stderr] 146 | .map(|v| v.value.clone()).unwrap_or_default();
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: very complex type used. Consider factoring parts into `type` definitions
[INFO] [stderr] --> src/physics/resolution.rs:247:6
[INFO] [stderr] |
[INFO] [stderr] 247 | ) -> (Option>, Option>)
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::type_complexity)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/physics/resolution.rs:275:9
[INFO] [stderr] |
[INFO] [stderr] 275 | next_frame.rotation().clone(),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*next_frame.rotation()`
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::clone_on_copy)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] warning: float has excessive precision
[INFO] [stderr] --> src/physics/resolution.rs:323:38
[INFO] [stderr] |
[INFO] [stderr] 323 | Point2::new(-0.04900000075250864, 0.),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `0.049_000_002`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
[INFO] [stderr]
[INFO] [stderr] warning: float has excessive precision
[INFO] [stderr] --> src/physics/resolution.rs:332:37
[INFO] [stderr] |
[INFO] [stderr] 332 | Point2::new(1.0490000007525087, 0.),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: consider changing the type or truncating it to: `1.049`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#excessive_precision
[INFO] [stderr]
[INFO] [stderr] warning: use of `unwrap_or` followed by a function call
[INFO] [stderr] --> src/physics/mass.rs:89:40
[INFO] [stderr] |
[INFO] [stderr] 89 | SquareMatrix::invert(self).unwrap_or(Matrix3::zero())
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `unwrap_or_else(Matrix3::zero)`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_call
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/velocity.rs:240:9
[INFO] [stderr] |
[INFO] [stderr] 240 | assert_eq!(0.2, orientation);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/velocity.rs:240:9
[INFO] [stderr] |
[INFO] [stderr] 240 | assert_eq!(0.2, orientation);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/velocity.rs:328:9
[INFO] [stderr] |
[INFO] [stderr] 328 | assert_eq!(0.2, orientation);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/velocity.rs:328:9
[INFO] [stderr] |
[INFO] [stderr] 328 | assert_eq!(0.2, orientation);
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] warning: you should consider adding a `Default` implementation for `physics::force::ForceAccumulator`
[INFO] [stderr] --> src/physics/force.rs:27:5
[INFO] [stderr] |
[INFO] [stderr] 27 | / pub fn new() -> Self {
[INFO] [stderr] 28 | | Self {
[INFO] [stderr] 29 | | force: F::zero(),
[INFO] [stderr] 30 | | torque: T::zero(),
[INFO] [stderr] 31 | | }
[INFO] [stderr] 32 | | }
[INFO] [stderr] | |_____^
[INFO] [stderr] |
[INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default
[INFO] [stderr] help: try this
[INFO] [stderr] |
[INFO] [stderr] 21 | impl Default for physics::force::ForceAccumulator {
[INFO] [stderr] 22 | fn default() -> Self {
[INFO] [stderr] 23 | Self::new()
[INFO] [stderr] 24 | }
[INFO] [stderr] 25 | }
[INFO] [stderr] |
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/physics/force.rs:74:17
[INFO] [stderr] |
[INFO] [stderr] 74 | let v = self.force.clone();
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.force`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/physics/force.rs:83:17
[INFO] [stderr] |
[INFO] [stderr] 83 | let v = self.torque.clone();
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.torque`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:104:9
[INFO] [stderr] |
[INFO] [stderr] 104 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:104:9
[INFO] [stderr] |
[INFO] [stderr] 104 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:111:9
[INFO] [stderr] |
[INFO] [stderr] 111 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:111:9
[INFO] [stderr] |
[INFO] [stderr] 111 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:121:9
[INFO] [stderr] |
[INFO] [stderr] 121 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:121:9
[INFO] [stderr] |
[INFO] [stderr] 121 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:128:9
[INFO] [stderr] |
[INFO] [stderr] 128 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:128:9
[INFO] [stderr] |
[INFO] [stderr] 128 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:137:9
[INFO] [stderr] |
[INFO] [stderr] 137 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:137:9
[INFO] [stderr] |
[INFO] [stderr] 137 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:145:9
[INFO] [stderr] |
[INFO] [stderr] 145 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:145:9
[INFO] [stderr] |
[INFO] [stderr] 145 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:153:9
[INFO] [stderr] |
[INFO] [stderr] 153 | assert_eq!(-1., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:153:9
[INFO] [stderr] |
[INFO] [stderr] 153 | assert_eq!(-1., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:201:9
[INFO] [stderr] |
[INFO] [stderr] 201 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:201:9
[INFO] [stderr] |
[INFO] [stderr] 201 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:208:9
[INFO] [stderr] |
[INFO] [stderr] 208 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:208:9
[INFO] [stderr] |
[INFO] [stderr] 208 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:218:9
[INFO] [stderr] |
[INFO] [stderr] 218 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:218:9
[INFO] [stderr] |
[INFO] [stderr] 218 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:225:9
[INFO] [stderr] |
[INFO] [stderr] 225 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:225:9
[INFO] [stderr] |
[INFO] [stderr] 225 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:234:9
[INFO] [stderr] |
[INFO] [stderr] 234 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:234:9
[INFO] [stderr] |
[INFO] [stderr] 234 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:242:9
[INFO] [stderr] |
[INFO] [stderr] 242 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:242:9
[INFO] [stderr] |
[INFO] [stderr] 242 | assert_eq!(0., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] error: strict comparison of f32 or f64
[INFO] [stderr] --> src/physics/force.rs:250:9
[INFO] [stderr] |
[INFO] [stderr] 250 | assert_eq!(-1., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] |
[INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available.
[INFO] [stderr] --> src/physics/force.rs:250:9
[INFO] [stderr] |
[INFO] [stderr] 250 | assert_eq!(-1., forces.consume_torque());
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp
[INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
[INFO] [stderr]
[INFO] [stderr] warning: using `clone` on a `Copy` type
[INFO] [stderr] --> src/lib.rs:173:13
[INFO] [stderr] |
[INFO] [stderr] 173 | other.rotation.clone(),
[INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `other.rotation`
[INFO] [stderr] |
[INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
[INFO] [stderr]
[INFO] [stderr] error: aborting due to 16 previous errors
[INFO] [stderr]
[INFO] [stderr] error: Could not compile `rhusics`.
[INFO] [stderr]
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] running `"docker" "inspect" "7eb75a072600f59fd914afd04cb9c07c099101d133e8ff186d0cccb54a40358e"`
[INFO] running `"docker" "rm" "-f" "7eb75a072600f59fd914afd04cb9c07c099101d133e8ff186d0cccb54a40358e"`
[INFO] [stdout] 7eb75a072600f59fd914afd04cb9c07c099101d133e8ff186d0cccb54a40358e