[INFO] updating cached repository Yatekii/rust_playground [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Yatekii/rust_playground [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Yatekii/rust_playground" "work/ex/clippy-test-run/sources/stable/gh/Yatekii/rust_playground"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/Yatekii/rust_playground'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Yatekii/rust_playground" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Yatekii/rust_playground"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Yatekii/rust_playground'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 6554962b673616b69e892d2ae94b598f387d0070 [INFO] sha for GitHub repo Yatekii/rust_playground: 6554962b673616b69e892d2ae94b598f387d0070 [INFO] validating manifest of Yatekii/rust_playground 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 Yatekii/rust_playground 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 Yatekii/rust_playground [INFO] finished frobbing Yatekii/rust_playground [INFO] frobbed toml for Yatekii/rust_playground written to work/ex/clippy-test-run/sources/stable/gh/Yatekii/rust_playground/Cargo.toml [INFO] started frobbing Yatekii/rust_playground [INFO] finished frobbing Yatekii/rust_playground [INFO] frobbed toml for Yatekii/rust_playground written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/Yatekii/rust_playground/Cargo.toml [INFO] crate Yatekii/rust_playground 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 Yatekii/rust_playground against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/Yatekii/rust_playground:/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] 505f49bdfbbf2a1e2bc220a8644b5818147ce8418f68d6873c3b8935e2180a9e [INFO] running `"docker" "start" "-a" "505f49bdfbbf2a1e2bc220a8644b5818147ce8418f68d6873c3b8935e2180a9e"` [INFO] [stderr] warning: An explicit [[bench]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other benchmark targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a benchmark target: [INFO] [stderr] [INFO] [stderr] * /opt/crater/workdir/benches/cell.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a benchmark target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobenches = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] Checking elapsed v0.1.2 [INFO] [stderr] Checking num-complex v0.2.0 [INFO] [stderr] Checking alga v0.6.0 [INFO] [stderr] Checking nalgebra v0.15.3 [INFO] [stderr] Checking ncollide2d v0.16.1 [INFO] [stderr] Checking rust_playground v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: the loop variable `i` is used to index `idx_and_bounding_boxes` [INFO] [stderr] --> src/dbvt.rs:35:18 [INFO] [stderr] | [INFO] [stderr] 35 | for i in 0..num_aabb { [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] 35 | for (i, ) in idx_and_bounding_boxes.iter().enumerate().take(num_aabb) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: empty `loop {}` detected. You may want to either use `panic!()` or add `std::thread::sleep(..);` to the loop body. [INFO] [stderr] --> src/dbvt.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | loop {} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::empty_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `idx_and_bounding_boxes` [INFO] [stderr] --> src/dbvt.rs:35:18 [INFO] [stderr] | [INFO] [stderr] 35 | for i in 0..num_aabb { [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] 35 | for (i, ) in idx_and_bounding_boxes.iter().enumerate().take(num_aabb) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: empty `loop {}` detected. You may want to either use `panic!()` or add `std::thread::sleep(..);` to the loop body. [INFO] [stderr] --> src/dbvt.rs:72:5 [INFO] [stderr] | [INFO] [stderr] 72 | loop {} [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::empty_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_loop [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> benches/bvt.rs:6:1 [INFO] [stderr] | [INFO] [stderr] 6 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> benches/bvt.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> benches/bvt.rs:24:9 [INFO] [stderr] | [INFO] [stderr] 24 | for i in 0..10000 { [INFO] [stderr] | ^ help: consider using `_i` instead [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_variables)] on by default [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `idx_and_bounding_boxes` [INFO] [stderr] --> benches/bvt.rs:34:14 [INFO] [stderr] | [INFO] [stderr] 34 | for i in 0..10000 { [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] 34 | for (i, ) in idx_and_bounding_boxes.iter().enumerate().take(10000) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> benches/bvt.rs:47:107 [INFO] [stderr] | [INFO] [stderr] 47 | let f_dbvt_insert_remove_fast = Fun::new("Insert and Remove nodes with high frequency", |b, _| b.iter(|| dbvt_insert_remove_fast())); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `dbvt_insert_remove_fast` [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] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 53.61s [INFO] running `"docker" "inspect" "505f49bdfbbf2a1e2bc220a8644b5818147ce8418f68d6873c3b8935e2180a9e"` [INFO] running `"docker" "rm" "-f" "505f49bdfbbf2a1e2bc220a8644b5818147ce8418f68d6873c3b8935e2180a9e"` [INFO] [stdout] 505f49bdfbbf2a1e2bc220a8644b5818147ce8418f68d6873c3b8935e2180a9e