[INFO] crate cast_trait 0.1.2 is already in cache [INFO] extracting crate cast_trait 0.1.2 into work/ex/clippy-test-run/sources/stable/reg/cast_trait/0.1.2 [INFO] extracting crate cast_trait 0.1.2 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cast_trait/0.1.2 [INFO] validating manifest of cast_trait-0.1.2 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 cast_trait-0.1.2 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 cast_trait-0.1.2 [INFO] finished frobbing cast_trait-0.1.2 [INFO] frobbed toml for cast_trait-0.1.2 written to work/ex/clippy-test-run/sources/stable/reg/cast_trait/0.1.2/Cargo.toml [INFO] started frobbing cast_trait-0.1.2 [INFO] finished frobbing cast_trait-0.1.2 [INFO] frobbed toml for cast_trait-0.1.2 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cast_trait/0.1.2/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 cast_trait-0.1.2 against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/cast_trait/0.1.2:/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 -Dclippy::into_iter_on_array" "-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] b22b5f5c8dd8d196e9e8afb79fa8d899991631294eb61a71ba00c6b1f3ca2e95 [INFO] running `"docker" "start" "-a" "b22b5f5c8dd8d196e9e8afb79fa8d899991631294eb61a71ba00c6b1f3ca2e95"` [INFO] [stderr] Checking cast_trait v0.1.2 (/opt/crater/workdir) [INFO] [stderr] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes [INFO] [stderr] --> src/cast.rs:155:1 [INFO] [stderr] | [INFO] [stderr] 155 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::deprecated_cfg_attr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stderr] [INFO] [stderr] warning: `cfg_attr` is deprecated for rustfmt and got replaced by tool_attributes [INFO] [stderr] --> src/cast.rs:155:1 [INFO] [stderr] | [INFO] [stderr] 155 | #[cfg_attr(rustfmt, rustfmt_skip)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use: `#[rustfmt::skip]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::deprecated_cfg_attr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#deprecated_cfg_attr [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________^ help: try: `i16::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________^ help: try: `i16::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________________________^ help: try: `u16::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |______________________________________________________^ help: try: `u32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |___________________________________________________________^ help: try: `u64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |______________________________________________________^ help: try: `u32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |___________________________________________________________^ help: try: `u64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |___________________________________________________________^ help: try: `u64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting f32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: this if-then-else expression returns a bool literal [INFO] [stderr] --> src/cast.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | if self == 0 {false} else {true} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(self == 0)` [INFO] [stderr] ... [INFO] [stderr] 89 | impl_cast_bool!(int, i8, i16, i32, i64, isize, u8, u16, u32, u64, usize); [INFO] [stderr] | ------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stderr] [INFO] [stderr] warning: this if-then-else expression returns a bool literal [INFO] [stderr] --> src/cast.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | if self == 0 {false} else {true} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(self == 0)` [INFO] [stderr] ... [INFO] [stderr] 89 | impl_cast_bool!(int, i8, i16, i32, i64, isize, u8, u16, u32, u64, usize); [INFO] [stderr] | ------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stderr] [INFO] [stderr] warning: this if-then-else expression returns a bool literal [INFO] [stderr] --> src/cast.rs:82:21 [INFO] [stderr] | [INFO] [stderr] 82 | if self == 0.0 {false} else {true} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(self == 0.0)` [INFO] [stderr] ... [INFO] [stderr] 90 | impl_cast_bool!(float, f32, f64); [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________^ help: try: `i16::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i16 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i16 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________^ help: try: `i16::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u16 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________________________^ help: try: `u16::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |______________________________________________________^ help: try: `u32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |___________________________________________________________^ help: try: `u64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u8 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to i32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________^ help: try: `i32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |______________________________________________________^ help: try: `u32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |___________________________________________________________^ help: try: `u64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to f32 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_______________________________________________________________________^ help: try: `f32::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u16 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to i64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |_________________________________^ help: try: `i64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |___________________________________________________________^ help: try: `u64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting f32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/cast.rs:27:17 [INFO] [stderr] | [INFO] [stderr] 27 | / self as $T [INFO] [stderr] 28 | | } [INFO] [stderr] 29 | | } [INFO] [stderr] 30 | | )*); [INFO] [stderr] ... | [INFO] [stderr] 37 | | $F, [INFO] [stderr] 38 | | i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64 [INFO] [stderr] | |____________________________________________________________________________^ help: try: `f64::from(self)` [INFO] [stderr] ... [INFO] [stderr] 49 | impl_cast_primitive!(i8, i16, i32, i64, isize, u8, u16, u32, u64, usize, f32, f64); [INFO] [stderr] | ----------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: this if-then-else expression returns a bool literal [INFO] [stderr] --> src/cast.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | if self == 0 {false} else {true} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(self == 0)` [INFO] [stderr] ... [INFO] [stderr] 89 | impl_cast_bool!(int, i8, i16, i32, i64, isize, u8, u16, u32, u64, usize); [INFO] [stderr] | ------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stderr] [INFO] [stderr] warning: this if-then-else expression returns a bool literal [INFO] [stderr] --> src/cast.rs:66:21 [INFO] [stderr] | [INFO] [stderr] 66 | if self == 0 {false} else {true} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(self == 0)` [INFO] [stderr] ... [INFO] [stderr] 89 | impl_cast_bool!(int, i8, i16, i32, i64, isize, u8, u16, u32, u64, usize); [INFO] [stderr] | ------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stderr] [INFO] [stderr] warning: this if-then-else expression returns a bool literal [INFO] [stderr] --> src/cast.rs:82:21 [INFO] [stderr] | [INFO] [stderr] 82 | if self == 0.0 {false} else {true} [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `!(self == 0.0)` [INFO] [stderr] ... [INFO] [stderr] 90 | impl_cast_bool!(float, f32, f64); [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `x` [INFO] [stderr] --> src/cast.rs:164:14 [INFO] [stderr] | [INFO] [stderr] 164 | for i in 0..32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 164 | for (i, ) in x.iter_mut().enumerate() { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `y` [INFO] [stderr] --> src/cast.rs:170:14 [INFO] [stderr] | [INFO] [stderr] 170 | for i in 0..32 { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 170 | for (i, ) in y.iter_mut().enumerate() { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `"docker" "inspect" "b22b5f5c8dd8d196e9e8afb79fa8d899991631294eb61a71ba00c6b1f3ca2e95"` [INFO] running `"docker" "rm" "-f" "b22b5f5c8dd8d196e9e8afb79fa8d899991631294eb61a71ba00c6b1f3ca2e95"` [INFO] [stdout] b22b5f5c8dd8d196e9e8afb79fa8d899991631294eb61a71ba00c6b1f3ca2e95