[INFO] crate u256 0.1.0 is already in cache [INFO] extracting crate u256 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/u256/0.1.0 [INFO] extracting crate u256 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/u256/0.1.0 [INFO] validating manifest of u256-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 u256-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 u256-0.1.0 [INFO] finished frobbing u256-0.1.0 [INFO] frobbed toml for u256-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/u256/0.1.0/Cargo.toml [INFO] started frobbing u256-0.1.0 [INFO] finished frobbing u256-0.1.0 [INFO] frobbed toml for u256-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/u256/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 u256-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/u256/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] 532cc5b5d224c5f256184d06389b42fc1ad4f8a1dd6a067bc56fb006aa381614 [INFO] running `"docker" "start" "-a" "532cc5b5d224c5f256184d06389b42fc1ad4f8a1dd6a067bc56fb006aa381614"` [INFO] [stderr] Checking u256 v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/lib.rs:45:50 [INFO] [stderr] | [INFO] [stderr] 45 | let lower = other as u64 * (arr[i] & 0xFFFFFFFF); [INFO] [stderr] | ^^^^^^^^^^ help: consider: `0xFFFF_FFFF` [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: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:44:25 [INFO] [stderr] | [INFO] [stderr] 44 | let upper = other as u64 * (arr[i] >> 32); [INFO] [stderr] | ^^^^^^^^^^^^ help: try: `u64::from(other)` [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 u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:45:25 [INFO] [stderr] | [INFO] [stderr] 45 | let lower = other as u64 * (arr[i] & 0xFFFFFFFF); [INFO] [stderr] | ^^^^^^^^^^^^ help: try: `u64::from(other)` [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/lib.rs:103:28 [INFO] [stderr] | [INFO] [stderr] 103 | u256.0[pos] += (val[i] as u64) << ((rev % 8) * 8); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: try: `u64::from(val[i])` [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] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:185:33 [INFO] [stderr] | [INFO] [stderr] 185 | let mut shift = my_bits - your_bits; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::suspicious_arithmetic_impl)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:186:33 [INFO] [stderr] | [INFO] [stderr] 186 | shift_copy = shift_copy << shift; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:190:37 [INFO] [stderr] | [INFO] [stderr] 190 | sub_copy = sub_copy - shift_copy; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:192:37 [INFO] [stderr] | [INFO] [stderr] 192 | shift_copy = shift_copy >> 1; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `u256`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: long literal lacking separators [INFO] [stderr] --> src/lib.rs:45:50 [INFO] [stderr] | [INFO] [stderr] 45 | let lower = other as u64 * (arr[i] & 0xFFFFFFFF); [INFO] [stderr] | ^^^^^^^^^^ help: consider: `0xFFFF_FFFF` [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: casting u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:44:25 [INFO] [stderr] | [INFO] [stderr] 44 | let upper = other as u64 * (arr[i] >> 32); [INFO] [stderr] | ^^^^^^^^^^^^ help: try: `u64::from(other)` [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 u32 to u64 may become silently lossy if types change [INFO] [stderr] --> src/lib.rs:45:25 [INFO] [stderr] | [INFO] [stderr] 45 | let lower = other as u64 * (arr[i] & 0xFFFFFFFF); [INFO] [stderr] | ^^^^^^^^^^^^ help: try: `u64::from(other)` [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/lib.rs:103:28 [INFO] [stderr] | [INFO] [stderr] 103 | u256.0[pos] += (val[i] as u64) << ((rev % 8) * 8); [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: try: `u64::from(val[i])` [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] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:185:33 [INFO] [stderr] | [INFO] [stderr] 185 | let mut shift = my_bits - your_bits; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::suspicious_arithmetic_impl)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:186:33 [INFO] [stderr] | [INFO] [stderr] 186 | shift_copy = shift_copy << shift; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:190:37 [INFO] [stderr] | [INFO] [stderr] 190 | sub_copy = sub_copy - shift_copy; [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: Suspicious use of binary operator in `Div` impl [INFO] [stderr] --> src/lib.rs:192:37 [INFO] [stderr] | [INFO] [stderr] 192 | shift_copy = shift_copy >> 1; [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#suspicious_arithmetic_impl [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `u256`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "532cc5b5d224c5f256184d06389b42fc1ad4f8a1dd6a067bc56fb006aa381614"` [INFO] running `"docker" "rm" "-f" "532cc5b5d224c5f256184d06389b42fc1ad4f8a1dd6a067bc56fb006aa381614"` [INFO] [stdout] 532cc5b5d224c5f256184d06389b42fc1ad4f8a1dd6a067bc56fb006aa381614