[INFO] updating cached repository mjollnirsoftware/evolution [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/mjollnirsoftware/evolution [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/mjollnirsoftware/evolution" "work/ex/clippy-test-run/sources/stable/gh/mjollnirsoftware/evolution"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/mjollnirsoftware/evolution'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/mjollnirsoftware/evolution" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/mjollnirsoftware/evolution"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/mjollnirsoftware/evolution'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0c9e536ac05ff50178c8f6d827343753dde5241a [INFO] sha for GitHub repo mjollnirsoftware/evolution: 0c9e536ac05ff50178c8f6d827343753dde5241a [INFO] validating manifest of mjollnirsoftware/evolution 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 mjollnirsoftware/evolution 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 mjollnirsoftware/evolution [INFO] finished frobbing mjollnirsoftware/evolution [INFO] frobbed toml for mjollnirsoftware/evolution written to work/ex/clippy-test-run/sources/stable/gh/mjollnirsoftware/evolution/Cargo.toml [INFO] started frobbing mjollnirsoftware/evolution [INFO] finished frobbing mjollnirsoftware/evolution [INFO] frobbed toml for mjollnirsoftware/evolution written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/mjollnirsoftware/evolution/Cargo.toml [INFO] crate mjollnirsoftware/evolution 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 mjollnirsoftware/evolution against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/mjollnirsoftware/evolution:/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] 34e52ef34b7753c1e1cc90f50e96a36123e2d9a7dfa42edbe223284da86baaa4 [INFO] running `"docker" "start" "-a" "34e52ef34b7753c1e1cc90f50e96a36123e2d9a7dfa42edbe223284da86baaa4"` [INFO] [stderr] Checking evolution v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: this if statement can be collapsed [INFO] [stderr] --> src/board.rs:137:21 [INFO] [stderr] | [INFO] [stderr] 137 | / if ant.energy > DEFAULT_SPLIT_ENERGY { [INFO] [stderr] 138 | | if index > 0 { [INFO] [stderr] 139 | | if let BoardCell::Empty = &self.cells[index - 1] { [INFO] [stderr] 140 | | let mut born_ant = ant.split(); [INFO] [stderr] ... | [INFO] [stderr] 146 | | } [INFO] [stderr] 147 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 137 | if ant.energy > DEFAULT_SPLIT_ENERGY && index > 0 { [INFO] [stderr] 138 | if let BoardCell::Empty = &self.cells[index - 1] { [INFO] [stderr] 139 | let mut born_ant = ant.split(); [INFO] [stderr] 140 | mutations.push(BoardMutation::Born( [INFO] [stderr] 141 | index - 1, [INFO] [stderr] 142 | Rc::new(RefCell::new(born_ant)), [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: this if statement can be collapsed [INFO] [stderr] --> src/board.rs:137:21 [INFO] [stderr] | [INFO] [stderr] 137 | / if ant.energy > DEFAULT_SPLIT_ENERGY { [INFO] [stderr] 138 | | if index > 0 { [INFO] [stderr] 139 | | if let BoardCell::Empty = &self.cells[index - 1] { [INFO] [stderr] 140 | | let mut born_ant = ant.split(); [INFO] [stderr] ... | [INFO] [stderr] 146 | | } [INFO] [stderr] 147 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 137 | if ant.energy > DEFAULT_SPLIT_ENERGY && index > 0 { [INFO] [stderr] 138 | if let BoardCell::Empty = &self.cells[index - 1] { [INFO] [stderr] 139 | let mut born_ant = ant.split(); [INFO] [stderr] 140 | mutations.push(BoardMutation::Born( [INFO] [stderr] 141 | index - 1, [INFO] [stderr] 142 | Rc::new(RefCell::new(born_ant)), [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.30s [INFO] running `"docker" "inspect" "34e52ef34b7753c1e1cc90f50e96a36123e2d9a7dfa42edbe223284da86baaa4"` [INFO] running `"docker" "rm" "-f" "34e52ef34b7753c1e1cc90f50e96a36123e2d9a7dfa42edbe223284da86baaa4"` [INFO] [stdout] 34e52ef34b7753c1e1cc90f50e96a36123e2d9a7dfa42edbe223284da86baaa4