[INFO] crate unchecked-index 0.2.2 is already in cache [INFO] extracting crate unchecked-index 0.2.2 into work/ex/clippy-test-run/sources/stable/reg/unchecked-index/0.2.2 [INFO] extracting crate unchecked-index 0.2.2 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/unchecked-index/0.2.2 [INFO] validating manifest of unchecked-index-0.2.2 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 unchecked-index-0.2.2 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 unchecked-index-0.2.2 [INFO] finished frobbing unchecked-index-0.2.2 [INFO] frobbed toml for unchecked-index-0.2.2 written to work/ex/clippy-test-run/sources/stable/reg/unchecked-index/0.2.2/Cargo.toml [INFO] started frobbing unchecked-index-0.2.2 [INFO] finished frobbing unchecked-index-0.2.2 [INFO] frobbed toml for unchecked-index-0.2.2 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/unchecked-index/0.2.2/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 unchecked-index-0.2.2 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/reg/unchecked-index/0.2.2:/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] 61dc20f5d13a2493c766f4561761f1243bf26387682709c53e344a98299bfc82 [INFO] running `"docker" "start" "-a" "61dc20f5d13a2493c766f4561761f1243bf26387682709c53e344a98299bfc82"` [INFO] [stderr] Checking unchecked-index v0.2.2 (/opt/crater/workdir) [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 52 | / impl_for_slice!(index, usize, self, index, { [INFO] [stderr] 53 | | assert!(*index < self.len(), [INFO] [stderr] 54 | | "assertion index < len failed: index out of bounds: \ [INFO] [stderr] 55 | | index = {}, len = {}", [INFO] [stderr] 56 | | index, self.len()) [INFO] [stderr] 57 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::useless_attribute)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 52 | / impl_for_slice!(index, usize, self, index, { [INFO] [stderr] 53 | | assert!(*index < self.len(), [INFO] [stderr] 54 | | "assertion index < len failed: index out of bounds: \ [INFO] [stderr] 55 | | index = {}, len = {}", [INFO] [stderr] 56 | | index, self.len()) [INFO] [stderr] 57 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 59 | / impl_for_slice!(range, Range, self, index, { [INFO] [stderr] 60 | | assert!(index.start <= index.end, [INFO] [stderr] 61 | | "assertion start <= end failed: start = {}, end = {}, len = {}", [INFO] [stderr] 62 | | index.start, index.end, self.len()); [INFO] [stderr] ... | [INFO] [stderr] 65 | | index.end, self.len()); [INFO] [stderr] 66 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 68 | / impl_for_slice!(rangeto, RangeTo, self, index, { [INFO] [stderr] 69 | | assert!(index.end <= self.len(), [INFO] [stderr] 70 | | "assertion end <= len failed: end = {}, len = {}", [INFO] [stderr] 71 | | index.end, self.len()); [INFO] [stderr] 72 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 74 | / impl_for_slice!(rangefrom,RangeFrom, self, index, { [INFO] [stderr] 75 | | assert!(index.start <= self.len(), [INFO] [stderr] 76 | | "assertion start <= len failed: start = {}, len = {}", [INFO] [stderr] 77 | | index.start, self.len()); [INFO] [stderr] 78 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 80 | impl_for_slice!(rangefull, RangeFull, self, _index, { }); [INFO] [stderr] | --------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `unchecked-index`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 52 | / impl_for_slice!(index, usize, self, index, { [INFO] [stderr] 53 | | assert!(*index < self.len(), [INFO] [stderr] 54 | | "assertion index < len failed: index out of bounds: \ [INFO] [stderr] 55 | | index = {}, len = {}", [INFO] [stderr] 56 | | index, self.len()) [INFO] [stderr] 57 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::useless_attribute)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 52 | / impl_for_slice!(index, usize, self, index, { [INFO] [stderr] 53 | | assert!(*index < self.len(), [INFO] [stderr] 54 | | "assertion index < len failed: index out of bounds: \ [INFO] [stderr] 55 | | index = {}, len = {}", [INFO] [stderr] 56 | | index, self.len()) [INFO] [stderr] 57 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 59 | / impl_for_slice!(range, Range, self, index, { [INFO] [stderr] 60 | | assert!(index.start <= index.end, [INFO] [stderr] 61 | | "assertion start <= end failed: start = {}, end = {}, len = {}", [INFO] [stderr] 62 | | index.start, index.end, self.len()); [INFO] [stderr] ... | [INFO] [stderr] 65 | | index.end, self.len()); [INFO] [stderr] 66 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 68 | / impl_for_slice!(rangeto, RangeTo, self, index, { [INFO] [stderr] 69 | | assert!(index.end <= self.len(), [INFO] [stderr] 70 | | "assertion end <= len failed: end = {}, len = {}", [INFO] [stderr] 71 | | index.end, self.len()); [INFO] [stderr] 72 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 74 | / impl_for_slice!(rangefrom,RangeFrom, self, index, { [INFO] [stderr] 75 | | assert!(index.start <= self.len(), [INFO] [stderr] 76 | | "assertion start <= len failed: start = {}, len = {}", [INFO] [stderr] 77 | | index.start, self.len()); [INFO] [stderr] 78 | | }); [INFO] [stderr] | |___- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] error: useless lint attribute [INFO] [stderr] --> src/slice_impls.rs:17:1 [INFO] [stderr] | [INFO] [stderr] 17 | #[allow(unused)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(unused)]` [INFO] [stderr] ... [INFO] [stderr] 80 | impl_for_slice!(rangefull, RangeFull, self, _index, { }); [INFO] [stderr] | --------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `data` [INFO] [stderr] --> src/lib.rs:234:22 [INFO] [stderr] | [INFO] [stderr] 234 | for i in 0..data.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] 234 | for (i, ) in data.iter_mut().enumerate() { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `unchecked-index`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "61dc20f5d13a2493c766f4561761f1243bf26387682709c53e344a98299bfc82"` [INFO] running `"docker" "rm" "-f" "61dc20f5d13a2493c766f4561761f1243bf26387682709c53e344a98299bfc82"` [INFO] [stdout] 61dc20f5d13a2493c766f4561761f1243bf26387682709c53e344a98299bfc82