[INFO] updating cached repository CallumJHays/rust-ann [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/CallumJHays/rust-ann [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/CallumJHays/rust-ann" "work/ex/clippy-test-run/sources/stable/gh/CallumJHays/rust-ann"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/CallumJHays/rust-ann'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/CallumJHays/rust-ann" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/CallumJHays/rust-ann"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/CallumJHays/rust-ann'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 093be3e9ebe0340b22d2a36404d63d2bece115aa [INFO] sha for GitHub repo CallumJHays/rust-ann: 093be3e9ebe0340b22d2a36404d63d2bece115aa [INFO] validating manifest of CallumJHays/rust-ann 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 CallumJHays/rust-ann 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 CallumJHays/rust-ann [INFO] finished frobbing CallumJHays/rust-ann [INFO] frobbed toml for CallumJHays/rust-ann written to work/ex/clippy-test-run/sources/stable/gh/CallumJHays/rust-ann/Cargo.toml [INFO] started frobbing CallumJHays/rust-ann [INFO] finished frobbing CallumJHays/rust-ann [INFO] frobbed toml for CallumJHays/rust-ann written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/CallumJHays/rust-ann/Cargo.toml [INFO] crate CallumJHays/rust-ann 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 CallumJHays/rust-ann 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/gh/CallumJHays/rust-ann:/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] 0276f4d0e2fa1c6a18bbaf39732a417d3ff5679289b6e10d7311cfddfb999372 [INFO] running `"docker" "start" "-a" "0276f4d0e2fa1c6a18bbaf39732a417d3ff5679289b6e10d7311cfddfb999372"` [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking env_logger v0.3.5 [INFO] [stderr] Checking pretty_env_logger v0.1.0 [INFO] [stderr] Checking linear_regression v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/network/layer/mod.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | num_nodes: num_nodes, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `num_nodes` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/network/layer/mod.rs:46:13 [INFO] [stderr] | [INFO] [stderr] 46 | activator: activator, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `activator` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/network/mod.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | num_nodes: num_nodes, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `num_nodes` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/network/layer/mod.rs:43:13 [INFO] [stderr] | [INFO] [stderr] 43 | num_nodes: num_nodes, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `num_nodes` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/network/layer/mod.rs:46:13 [INFO] [stderr] | [INFO] [stderr] 46 | activator: activator, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `activator` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/network/mod.rs:21:13 [INFO] [stderr] | [INFO] [stderr] 21 | num_nodes: num_nodes, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: replace it with: `num_nodes` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/main.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #[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] --> src/main.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> src/network/mod.rs:51:33 [INFO] [stderr] | [INFO] [stderr] 51 | assert!(input_weights.len() > 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!input_weights.is_empty()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_zero)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] warning: length comparison to zero [INFO] [stderr] --> src/network/mod.rs:51:33 [INFO] [stderr] | [INFO] [stderr] 51 | assert!(input_weights.len() > 0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `!input_weights.is_empty()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_zero)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.42s [INFO] running `"docker" "inspect" "0276f4d0e2fa1c6a18bbaf39732a417d3ff5679289b6e10d7311cfddfb999372"` [INFO] running `"docker" "rm" "-f" "0276f4d0e2fa1c6a18bbaf39732a417d3ff5679289b6e10d7311cfddfb999372"` [INFO] [stdout] 0276f4d0e2fa1c6a18bbaf39732a417d3ff5679289b6e10d7311cfddfb999372