[INFO] crate hado 0.1.1 is already in cache [INFO] extracting crate hado 0.1.1 into work/ex/clippy-test-run/sources/stable/reg/hado/0.1.1 [INFO] extracting crate hado 0.1.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/hado/0.1.1 [INFO] validating manifest of hado-0.1.1 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 hado-0.1.1 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 hado-0.1.1 [INFO] finished frobbing hado-0.1.1 [INFO] frobbed toml for hado-0.1.1 written to work/ex/clippy-test-run/sources/stable/reg/hado/0.1.1/Cargo.toml [INFO] started frobbing hado-0.1.1 [INFO] finished frobbing hado-0.1.1 [INFO] frobbed toml for hado-0.1.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/hado/0.1.1/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 hado-0.1.1 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-2/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/hado/0.1.1:/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] b0f6c7caa4895bccadbdb171dbeafd18b587850d73184e0a4d70474d148ba979 [INFO] running `"docker" "start" "-a" "b0f6c7caa4895bccadbdb171dbeafd18b587850d73184e0a4d70474d148ba979"` [INFO] [stderr] Checking hado v0.1.1 (/opt/crater/workdir) [INFO] [stderr] error: this operation will always return zero. This is likely not the intended outcome [INFO] [stderr] --> tests/result.rs:8:69 [INFO] [stderr] | [INFO] [stderr] 8 | Monad::>::bind(Ok(1), |x: u32| Ok(x*0)) [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::erasing_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op [INFO] [stderr] [INFO] [stderr] error: this operation will always return zero. This is likely not the intended outcome [INFO] [stderr] --> tests/result.rs:14:48 [INFO] [stderr] | [INFO] [stderr] 14 | Monad::bind(Err("failed"), |x: u32| Ok(x*0)) [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: this operation will always return zero. This is likely not the intended outcome [INFO] [stderr] --> tests/option.rs:8:39 [INFO] [stderr] | [INFO] [stderr] 8 | Monad::bind(Some(1), |x| Some(x*0)) [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::erasing_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op [INFO] [stderr] [INFO] [stderr] error: Could not compile `hado`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: this operation will always return zero. This is likely not the intended outcome [INFO] [stderr] --> tests/option.rs:20:41 [INFO] [stderr] | [INFO] [stderr] 20 | Monad::bind(None, |x: u32| Some(x*0)) [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#erasing_op [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `hado`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> tests/lib.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | / hado! { [INFO] [stderr] 25 | | a <- vec![0, 1, 2]; [INFO] [stderr] 26 | | println!("a: {:?}", a); [INFO] [stderr] 27 | | b <- vec![a, a]; [INFO] [stderr] 28 | | ret(Vec) b [INFO] [stderr] 29 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_closure)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [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: redundant closure found [INFO] [stderr] --> tests/lib.rs:32:9 [INFO] [stderr] | [INFO] [stderr] 32 | / hado! { [INFO] [stderr] 33 | | a <- vec![0, 1, 2]; [INFO] [stderr] 34 | | b <- vec![a, a]; [INFO] [stderr] 35 | | ret(Vec) b [INFO] [stderr] 36 | | }, [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [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: build failed [INFO] running `"docker" "inspect" "b0f6c7caa4895bccadbdb171dbeafd18b587850d73184e0a4d70474d148ba979"` [INFO] running `"docker" "rm" "-f" "b0f6c7caa4895bccadbdb171dbeafd18b587850d73184e0a4d70474d148ba979"` [INFO] [stdout] b0f6c7caa4895bccadbdb171dbeafd18b587850d73184e0a4d70474d148ba979