[INFO] updating cached repository data-pup/simple-rust-regex-example [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/data-pup/simple-rust-regex-example [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/data-pup/simple-rust-regex-example" "work/ex/clippy-test-run/sources/stable/gh/data-pup/simple-rust-regex-example"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/data-pup/simple-rust-regex-example'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/data-pup/simple-rust-regex-example" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/data-pup/simple-rust-regex-example"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/data-pup/simple-rust-regex-example'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 98c589505c6fd8dd8d2def0bb0c6222dc8b08f43 [INFO] sha for GitHub repo data-pup/simple-rust-regex-example: 98c589505c6fd8dd8d2def0bb0c6222dc8b08f43 [INFO] validating manifest of data-pup/simple-rust-regex-example 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 data-pup/simple-rust-regex-example 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 data-pup/simple-rust-regex-example [INFO] finished frobbing data-pup/simple-rust-regex-example [INFO] frobbed toml for data-pup/simple-rust-regex-example written to work/ex/clippy-test-run/sources/stable/gh/data-pup/simple-rust-regex-example/Cargo.toml [INFO] started frobbing data-pup/simple-rust-regex-example [INFO] finished frobbing data-pup/simple-rust-regex-example [INFO] frobbed toml for data-pup/simple-rust-regex-example written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/data-pup/simple-rust-regex-example/Cargo.toml [INFO] crate data-pup/simple-rust-regex-example has a lockfile. skipping [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 data-pup/simple-rust-regex-example against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/data-pup/simple-rust-regex-example:/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] fd1c8e0e56c519b1380c0251e1f84454a12439a5af727d613de720e288e1ab08 [INFO] running `"docker" "start" "-a" "fd1c8e0e56c519b1380c0251e1f84454a12439a5af727d613de720e288e1ab08"` [INFO] [stderr] Checking simple-rust-regex-example v0.1.0 (/opt/crater/workdir) [INFO] [stderr] error: this .into_iter() call is equivalent to .iter() and will not move the array [INFO] [stderr] --> src/main.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | .into_iter() [INFO] [stderr] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::into_iter_on_array)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array [INFO] [stderr] [INFO] [stderr] warning: this `.fold` can be written more succinctly using another method [INFO] [stderr] --> src/main.rs:29:40 [INFO] [stderr] | [INFO] [stderr] 29 | .map(|r| r.is_match(&item)) [INFO] [stderr] | ________________________________________^ [INFO] [stderr] 30 | | .fold(false, |res, curr| res || curr); [INFO] [stderr] | |_________________________________________________^ help: try: `.any(|curr| curr)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unnecessary_fold)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `simple-rust-regex-example`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: this .into_iter() call is equivalent to .iter() and will not move the array [INFO] [stderr] --> src/main.rs:11:10 [INFO] [stderr] | [INFO] [stderr] 11 | .into_iter() [INFO] [stderr] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::into_iter_on_array)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array [INFO] [stderr] [INFO] [stderr] warning: this `.fold` can be written more succinctly using another method [INFO] [stderr] --> src/main.rs:29:40 [INFO] [stderr] | [INFO] [stderr] 29 | .map(|r| r.is_match(&item)) [INFO] [stderr] | ________________________________________^ [INFO] [stderr] 30 | | .fold(false, |res, curr| res || curr); [INFO] [stderr] | |_________________________________________________^ help: try: `.any(|curr| curr)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::unnecessary_fold)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_fold [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `simple-rust-regex-example`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "fd1c8e0e56c519b1380c0251e1f84454a12439a5af727d613de720e288e1ab08"` [INFO] running `"docker" "rm" "-f" "fd1c8e0e56c519b1380c0251e1f84454a12439a5af727d613de720e288e1ab08"` [INFO] [stdout] fd1c8e0e56c519b1380c0251e1f84454a12439a5af727d613de720e288e1ab08