[INFO] crate neural_network 0.1.3 is already in cache [INFO] extracting crate neural_network 0.1.3 into work/ex/clippy-test-run/sources/stable/reg/neural_network/0.1.3 [INFO] extracting crate neural_network 0.1.3 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/neural_network/0.1.3 [INFO] validating manifest of neural_network-0.1.3 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 neural_network-0.1.3 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 neural_network-0.1.3 [INFO] finished frobbing neural_network-0.1.3 [INFO] frobbed toml for neural_network-0.1.3 written to work/ex/clippy-test-run/sources/stable/reg/neural_network/0.1.3/Cargo.toml [INFO] started frobbing neural_network-0.1.3 [INFO] finished frobbing neural_network-0.1.3 [INFO] frobbed toml for neural_network-0.1.3 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/neural_network/0.1.3/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 neural_network-0.1.3 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/neural_network/0.1.3:/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] 95b76292e55b6eb3d89230803f3dba7c68230eb7a51da4a959d595da5d6cf65a [INFO] running `"docker" "start" "-a" "95b76292e55b6eb3d89230803f3dba7c68230eb7a51da4a959d595da5d6cf65a"` [INFO] [stderr] Checking fast_io v1.2.2 [INFO] [stderr] Checking neural_network v0.1.3 (/opt/crater/workdir) [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/nn/neural_operator.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | return 1.0; [INFO] [stderr] | ^^^^^^^^^^^ help: remove `return` as shown: `1.0` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/nn/neural_operator.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | return 0.0; [INFO] [stderr] | ^^^^^^^^^^^ help: remove `return` as shown: `0.0` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/nn/neural_operator.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | return 1.0; [INFO] [stderr] | ^^^^^^^^^^^ help: remove `return` as shown: `1.0` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/nn/neural_operator.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | return 0.0; [INFO] [stderr] | ^^^^^^^^^^^ help: remove `return` as shown: `0.0` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (10/7) [INFO] [stderr] --> src/nn/back_prop/mod.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / pub fn new(input_count: usize, hidden_counts: &[usize], output_count: usize, [INFO] [stderr] 27 | | learning_rate: f64, momentum: f64, weight_decay: f64, [INFO] [stderr] 28 | | hidden_activation: fn(f64) -> f64, hidden_derivative: fn(f64) -> f64, [INFO] [stderr] 29 | | output_activation: fn(f64) -> f64, output_derivative: fn(f64) -> f64) -> Self { [INFO] [stderr] ... | [INFO] [stderr] 39 | | } [INFO] [stderr] 40 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::too_many_arguments)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/nn/back_prop/mod.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | / pub fn train(&mut self, min_error: f64, max_epochs: Option, max_duration: Option, [INFO] [stderr] 104 | | train_inputs: &[&[f64]], train_targets: &[&[f64]], [INFO] [stderr] 105 | | test_inputs: &[&[f64]], test_targets: &[&[f64]]) -> TrainingResult { [INFO] [stderr] 106 | | let mut rng = thread_rng(); [INFO] [stderr] ... | [INFO] [stderr] 156 | | } [INFO] [stderr] 157 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/nn/mod.rs:72:52 [INFO] [stderr] | [INFO] [stderr] 72 | fn pulse_layer(layer: &mut Vec, prev_layer: &Vec, activation: fn(f64) -> f64) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (10/7) [INFO] [stderr] --> src/nn/back_prop/mod.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | / pub fn new(input_count: usize, hidden_counts: &[usize], output_count: usize, [INFO] [stderr] 27 | | learning_rate: f64, momentum: f64, weight_decay: f64, [INFO] [stderr] 28 | | hidden_activation: fn(f64) -> f64, hidden_derivative: fn(f64) -> f64, [INFO] [stderr] 29 | | output_activation: fn(f64) -> f64, output_derivative: fn(f64) -> f64) -> Self { [INFO] [stderr] ... | [INFO] [stderr] 39 | | } [INFO] [stderr] 40 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::too_many_arguments)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: this function has too many arguments (8/7) [INFO] [stderr] --> src/nn/back_prop/mod.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | / pub fn train(&mut self, min_error: f64, max_epochs: Option, max_duration: Option, [INFO] [stderr] 104 | | train_inputs: &[&[f64]], train_targets: &[&[f64]], [INFO] [stderr] 105 | | test_inputs: &[&[f64]], test_targets: &[&[f64]]) -> TrainingResult { [INFO] [stderr] 106 | | let mut rng = thread_rng(); [INFO] [stderr] ... | [INFO] [stderr] 156 | | } [INFO] [stderr] 157 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/nn/mod.rs:72:52 [INFO] [stderr] | [INFO] [stderr] 72 | fn pulse_layer(layer: &mut Vec, prev_layer: &Vec, activation: fn(f64) -> f64) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&[N]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.62s [INFO] running `"docker" "inspect" "95b76292e55b6eb3d89230803f3dba7c68230eb7a51da4a959d595da5d6cf65a"` [INFO] running `"docker" "rm" "-f" "95b76292e55b6eb3d89230803f3dba7c68230eb7a51da4a959d595da5d6cf65a"` [INFO] [stdout] 95b76292e55b6eb3d89230803f3dba7c68230eb7a51da4a959d595da5d6cf65a