[INFO] crate simple_shapes 0.1.0 is already in cache [INFO] extracting crate simple_shapes 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/simple_shapes/0.1.0 [INFO] extracting crate simple_shapes 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/simple_shapes/0.1.0 [INFO] validating manifest of simple_shapes-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 simple_shapes-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 simple_shapes-0.1.0 [INFO] finished frobbing simple_shapes-0.1.0 [INFO] frobbed toml for simple_shapes-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/simple_shapes/0.1.0/Cargo.toml [INFO] started frobbing simple_shapes-0.1.0 [INFO] finished frobbing simple_shapes-0.1.0 [INFO] frobbed toml for simple_shapes-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/simple_shapes/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 simple_shapes-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-7/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/simple_shapes/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] 22fa7690e5c94e3bfc11a34c11c4cca07ba37b1a95e6cfbbf9607cd026249e9c [INFO] running `"docker" "start" "-a" "22fa7690e5c94e3bfc11a34c11c4cca07ba37b1a95e6cfbbf9607cd026249e9c"` [INFO] [stderr] Checking simple_shapes v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: the loop variable `i` is only used to index `y`. [INFO] [stderr] --> src/lib.rs:14:14 [INFO] [stderr] | [INFO] [stderr] 14 | for i in 0..y.len() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 14 | for in &y { [INFO] [stderr] | ^^^^^^ ^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `j` is only used to index `x`. [INFO] [stderr] --> src/lib.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 15 | for j in 0..x.len() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 15 | for in &x { [INFO] [stderr] | ^^^^^^ ^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is only used to index `y_arange`. [INFO] [stderr] --> src/lib.rs:48:14 [INFO] [stderr] | [INFO] [stderr] 48 | for i in 0..y_arange.len() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 48 | for in &y_arange { [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `j` is only used to index `x_arange`. [INFO] [stderr] --> src/lib.rs:49:18 [INFO] [stderr] | [INFO] [stderr] 49 | for j in 0..x_arange.len() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 49 | for in &x_arange { [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/lib.rs:82:43 [INFO] [stderr] | [INFO] [stderr] 82 | } else if yg[i] < y_bottom_cutoff { [INFO] [stderr] | ___________________________________________^ [INFO] [stderr] 83 | | x.push(xg[i]); [INFO] [stderr] 84 | | y.push(yg[i]); [INFO] [stderr] 85 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/lib.rs:79:60 [INFO] [stderr] | [INFO] [stderr] 79 | if xg[i] < x_left_cutoff || xg[i] > x_right_cutoff { [INFO] [stderr] | ____________________________________________________________^ [INFO] [stderr] 80 | | x.push(xg[i]); [INFO] [stderr] 81 | | y.push(yg[i]); [INFO] [stderr] 82 | | } else if yg[i] < y_bottom_cutoff { [INFO] [stderr] | |_________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `simple_shapes`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: the loop variable `i` is only used to index `y`. [INFO] [stderr] --> src/lib.rs:14:14 [INFO] [stderr] | [INFO] [stderr] 14 | for i in 0..y.len() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 14 | for in &y { [INFO] [stderr] | ^^^^^^ ^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `j` is only used to index `x`. [INFO] [stderr] --> src/lib.rs:15:18 [INFO] [stderr] | [INFO] [stderr] 15 | for j in 0..x.len() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 15 | for in &x { [INFO] [stderr] | ^^^^^^ ^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is only used to index `y_arange`. [INFO] [stderr] --> src/lib.rs:48:14 [INFO] [stderr] | [INFO] [stderr] 48 | for i in 0..y_arange.len() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 48 | for in &y_arange { [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the loop variable `j` is only used to index `x_arange`. [INFO] [stderr] --> src/lib.rs:49:18 [INFO] [stderr] | [INFO] [stderr] 49 | for j in 0..x_arange.len() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 49 | for in &x_arange { [INFO] [stderr] | ^^^^^^ ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/lib.rs:82:43 [INFO] [stderr] | [INFO] [stderr] 82 | } else if yg[i] < y_bottom_cutoff { [INFO] [stderr] | ___________________________________________^ [INFO] [stderr] 83 | | x.push(xg[i]); [INFO] [stderr] 84 | | y.push(yg[i]); [INFO] [stderr] 85 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/lib.rs:79:60 [INFO] [stderr] | [INFO] [stderr] 79 | if xg[i] < x_left_cutoff || xg[i] > x_right_cutoff { [INFO] [stderr] | ____________________________________________________________^ [INFO] [stderr] 80 | | x.push(xg[i]); [INFO] [stderr] 81 | | y.push(yg[i]); [INFO] [stderr] 82 | | } else if yg[i] < y_bottom_cutoff { [INFO] [stderr] | |_________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `simple_shapes`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "22fa7690e5c94e3bfc11a34c11c4cca07ba37b1a95e6cfbbf9607cd026249e9c"` [INFO] running `"docker" "rm" "-f" "22fa7690e5c94e3bfc11a34c11c4cca07ba37b1a95e6cfbbf9607cd026249e9c"` [INFO] [stdout] 22fa7690e5c94e3bfc11a34c11c4cca07ba37b1a95e6cfbbf9607cd026249e9c