[INFO] crate pcx 0.2.3 is already in cache [INFO] extracting crate pcx 0.2.3 into work/ex/clippy-test-run/sources/stable/reg/pcx/0.2.3 [INFO] extracting crate pcx 0.2.3 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/pcx/0.2.3 [INFO] validating manifest of pcx-0.2.3 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 pcx-0.2.3 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 pcx-0.2.3 [INFO] finished frobbing pcx-0.2.3 [INFO] frobbed toml for pcx-0.2.3 written to work/ex/clippy-test-run/sources/stable/reg/pcx/0.2.3/Cargo.toml [INFO] started frobbing pcx-0.2.3 [INFO] finished frobbing pcx-0.2.3 [INFO] frobbed toml for pcx-0.2.3 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/pcx/0.2.3/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 pcx-0.2.3 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/pcx/0.2.3:/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] 4b81cf69c45a7b9db3ff564127b2ce84453d7d774e816886a831e8eb5a16e78f [INFO] running `"docker" "start" "-a" "4b81cf69c45a7b9db3ff564127b2ce84453d7d774e816886a831e8eb5a16e78f"` [INFO] [stderr] Checking pcx v0.2.3 (/opt/crater/workdir) [INFO] [stderr] Checking image v0.20.1 [INFO] [stderr] warning: casting u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/test_samples.rs:18:16 [INFO] [stderr] | [INFO] [stderr] 18 | assert_eq!(pcx.width() as u32, reference_image.width()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: try: `u32::from(pcx.width())` [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 u16 to u32 may become silently lossy if types change [INFO] [stderr] --> src/test_samples.rs:19:16 [INFO] [stderr] | [INFO] [stderr] 19 | assert_eq!(pcx.height() as u32, reference_image.height()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `u32::from(pcx.height())` [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: the operation is ineffective. Consider reducing it to `i * 3` [INFO] [stderr] --> src/test_samples.rs:36:37 [INFO] [stderr] | [INFO] [stderr] 36 | let pcx_r = palette[i * 3 + 0]; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::identity_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `(x as usize) * 3` [INFO] [stderr] --> src/test_samples.rs:62:47 [INFO] [stderr] | [INFO] [stderr] 62 | let pcx_r = image[y as usize][(x as usize) * 3 + 0]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.07s [INFO] running `"docker" "inspect" "4b81cf69c45a7b9db3ff564127b2ce84453d7d774e816886a831e8eb5a16e78f"` [INFO] running `"docker" "rm" "-f" "4b81cf69c45a7b9db3ff564127b2ce84453d7d774e816886a831e8eb5a16e78f"` [INFO] [stdout] 4b81cf69c45a7b9db3ff564127b2ce84453d7d774e816886a831e8eb5a16e78f