[INFO] crate map_in_place 0.1.0 is already in cache [INFO] extracting crate map_in_place 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/map_in_place/0.1.0 [INFO] extracting crate map_in_place 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/map_in_place/0.1.0 [INFO] validating manifest of map_in_place-0.1.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 map_in_place-0.1.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 map_in_place-0.1.0 [INFO] removed 0 missing tests [INFO] finished frobbing map_in_place-0.1.0 [INFO] frobbed toml for map_in_place-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/map_in_place/0.1.0/Cargo.toml [INFO] started frobbing map_in_place-0.1.0 [INFO] removed 0 missing tests [INFO] finished frobbing map_in_place-0.1.0 [INFO] frobbed toml for map_in_place-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/map_in_place/0.1.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 map_in_place-0.1.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/map_in_place/0.1.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] 9ad7c68b6cf7ecc2636bcc22d8f9373add9a3a2ee93cfdd825495090a1a71e00 [INFO] running `"docker" "start" "-a" "9ad7c68b6cf7ecc2636bcc22d8f9373add9a3a2ee93cfdd825495090a1a71e00"` [INFO] [stderr] Checking scopeguard v0.2.0 [INFO] [stderr] Checking map_in_place v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> lib.rs:98:27 [INFO] [stderr] | [INFO] [stderr] 98 | let a = ptr::read(read.offset(i as isize)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `read.add(i)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> lib.rs:101:36 [INFO] [stderr] | [INFO] [stderr] 101 | ptr::drop_in_place(read.offset(ii as isize)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `read.add(ii)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> lib.rs:106:24 [INFO] [stderr] | [INFO] [stderr] 106 | ptr::write(write.offset(wrote as isize), b); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `write.add(wrote)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> lib.rs:98:27 [INFO] [stderr] | [INFO] [stderr] 98 | let a = ptr::read(read.offset(i as isize)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `read.add(i)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> lib.rs:101:36 [INFO] [stderr] | [INFO] [stderr] 101 | ptr::drop_in_place(read.offset(ii as isize)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `read.add(ii)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> lib.rs:106:24 [INFO] [stderr] | [INFO] [stderr] 106 | ptr::write(write.offset(wrote as isize), b); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `write.add(wrote)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> tests.rs:32:52 [INFO] [stderr] | [INFO] [stderr] 32 | let v = nfv(|e|e).filter_map(|e| if e>=2 {Some(e as u64)} else {None}); [INFO] [stderr] | ^^^^^^^^ help: try: `u64::from(e)` [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 u8 to u16 may become silently lossy if types change [INFO] [stderr] --> tests.rs:36:48 [INFO] [stderr] | [INFO] [stderr] 36 | fn vec_fallback() {assert_eq!(&nv(1u8).map(|e| e as u16 ), &[1,1,1,1]);} [INFO] [stderr] | ^^^^^^^^ help: try: `u16::from(e)` [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] --> tests.rs:38:65 [INFO] [stderr] | [INFO] [stderr] 38 | fn vec_alignment() {let _ = nv((1u8,2u8)).map_in_place(|(a,b)| ((a as u16)<<8) | b as u16 );} [INFO] [stderr] | ^^^^^^^^^^ help: try: `u16::from(a)` [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] --> tests.rs:38:82 [INFO] [stderr] | [INFO] [stderr] 38 | fn vec_alignment() {let _ = nv((1u8,2u8)).map_in_place(|(a,b)| ((a as u16)<<8) | b as u16 );} [INFO] [stderr] | ^^^^^^^^ help: try: `u16::from(b)` [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] --> tests.rs:48:50 [INFO] [stderr] | [INFO] [stderr] 48 | fn slice_fallback() {assert_eq!(&ns(1u8).map(|e| e as u16 )[..], &[1,1,1,1]);} [INFO] [stderr] | ^^^^^^^^ help: try: `u16::from(e)` [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] --> tests.rs:50:67 [INFO] [stderr] | [INFO] [stderr] 50 | fn slice_alignment() {let _ = ns((1u8,2u8)).map_in_place(|(a,b)| ((a as u16)<<8) | b as u16 );} [INFO] [stderr] | ^^^^^^^^^^ help: try: `u16::from(a)` [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] --> tests.rs:50:84 [INFO] [stderr] | [INFO] [stderr] 50 | fn slice_alignment() {let _ = ns((1u8,2u8)).map_in_place(|(a,b)| ((a as u16)<<8) | b as u16 );} [INFO] [stderr] | ^^^^^^^^ help: try: `u16::from(b)` [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] Finished dev [unoptimized + debuginfo] target(s) in 1.98s [INFO] running `"docker" "inspect" "9ad7c68b6cf7ecc2636bcc22d8f9373add9a3a2ee93cfdd825495090a1a71e00"` [INFO] running `"docker" "rm" "-f" "9ad7c68b6cf7ecc2636bcc22d8f9373add9a3a2ee93cfdd825495090a1a71e00"` [INFO] [stdout] 9ad7c68b6cf7ecc2636bcc22d8f9373add9a3a2ee93cfdd825495090a1a71e00