[INFO] updating cached repository tlowry/rust-ai-samples [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/tlowry/rust-ai-samples [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/tlowry/rust-ai-samples" "work/ex/clippy-test-run/sources/stable/gh/tlowry/rust-ai-samples"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/tlowry/rust-ai-samples'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/tlowry/rust-ai-samples" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/tlowry/rust-ai-samples"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/tlowry/rust-ai-samples'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] e68bc84e4549e25e0dab70ae1eb33626ebc7aab2 [INFO] sha for GitHub repo tlowry/rust-ai-samples: e68bc84e4549e25e0dab70ae1eb33626ebc7aab2 [INFO] validating manifest of tlowry/rust-ai-samples 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 tlowry/rust-ai-samples 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 tlowry/rust-ai-samples [INFO] finished frobbing tlowry/rust-ai-samples [INFO] frobbed toml for tlowry/rust-ai-samples written to work/ex/clippy-test-run/sources/stable/gh/tlowry/rust-ai-samples/Cargo.toml [INFO] started frobbing tlowry/rust-ai-samples [INFO] finished frobbing tlowry/rust-ai-samples [INFO] frobbed toml for tlowry/rust-ai-samples written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/tlowry/rust-ai-samples/Cargo.toml [INFO] crate tlowry/rust-ai-samples 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 tlowry/rust-ai-samples 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/tlowry/rust-ai-samples:/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] 1fddf38b58e84c41500444cf9371c063f9eae3e981d48208381c7a53026f8df7 [INFO] running `"docker" "start" "-a" "1fddf38b58e84c41500444cf9371c063f9eae3e981d48208381c7a53026f8df7"` [INFO] [stderr] Compiling num-traits v0.1.41 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Checking bitflags v0.6.0 [INFO] [stderr] Checking piston-float v0.2.0 [INFO] [stderr] Checking inflate v0.1.1 [INFO] [stderr] Checking shader_version v0.2.2 [INFO] [stderr] Checking read_color v0.1.0 [INFO] [stderr] Checking piston-texture v0.5.0 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Checking piston-shaders_graphics2d v0.2.1 [INFO] [stderr] Compiling ndarray v0.12.0 [INFO] [stderr] Compiling miniz-sys v0.1.10 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking time v0.1.39 [INFO] [stderr] Checking itertools v0.7.8 [INFO] [stderr] Compiling x11-dl v2.17.2 [INFO] [stderr] Checking shared_library v0.1.8 [INFO] [stderr] Checking draw_state v0.6.0 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Checking piston-viewport v0.2.0 [INFO] [stderr] Checking vecmath v0.2.0 [INFO] [stderr] Compiling phf_generator v0.7.21 [INFO] [stderr] Compiling wayland-scanner v0.5.11 [INFO] [stderr] Checking tempfile v2.2.0 [INFO] [stderr] Checking rayon-core v1.3.0 [INFO] [stderr] Compiling serde_json v0.9.10 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking num-integer v0.1.35 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking pistoncore-input v0.14.0 [INFO] [stderr] Compiling phf_codegen v0.7.21 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Checking gfx_core v0.4.0 [INFO] [stderr] Checking piston2d-graphics v0.17.3 [INFO] [stderr] Checking fs2 v0.2.5 [INFO] [stderr] Checking num-iter v0.1.34 [INFO] [stderr] Checking num-bigint v0.1.41 [INFO] [stderr] Compiling target_build_utils v0.3.1 [INFO] [stderr] Checking rayon v0.8.2 [INFO] [stderr] Compiling wayland-client v0.5.12 [INFO] [stderr] Checking flate2 v0.2.20 [INFO] [stderr] Compiling gl_generator v0.5.5 [INFO] [stderr] Compiling gl_generator v0.6.1 [INFO] [stderr] Checking memmap v0.2.3 [INFO] [stderr] Checking pistoncore-window v0.22.1 [INFO] [stderr] Checking png v0.5.2 [INFO] [stderr] Checking num-rational v0.1.40 [INFO] [stderr] Compiling gl v0.6.5 [INFO] [stderr] Compiling gfx_gl v0.3.1 [INFO] [stderr] Compiling glutin v0.6.2 [INFO] [stderr] Checking pistoncore-event_loop v0.25.1 [INFO] [stderr] Checking jpeg-decoder v0.1.13 [INFO] [stderr] Checking piston v0.25.1 [INFO] [stderr] Checking image v0.10.4 [INFO] [stderr] Compiling libloading v0.3.4 [INFO] [stderr] Checking dlib v0.3.1 [INFO] [stderr] Checking wayland-sys v0.5.11 [INFO] [stderr] Checking gfx v0.12.2 [INFO] [stderr] Checking gfx_device_gl v0.11.2 [INFO] [stderr] Checking wayland-window v0.2.3 [INFO] [stderr] Checking wayland-kbd v0.3.6 [INFO] [stderr] Checking piston-gfx_texture v0.17.0 [INFO] [stderr] Checking piston2d-gfx_graphics v0.31.2 [INFO] [stderr] Checking pistoncore-glutin_window v0.29.0 [INFO] [stderr] Checking piston_window v0.52.0 [INFO] [stderr] Checking dataplotlib v0.1.3 [INFO] [stderr] Checking rust-ai-samples v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/main.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | return 1.0 / (1.0 + E.powf(-input)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `1.0 / (1.0 + E.powf(-input))` [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/main.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | return 1.0 / (1.0 + E.powf(-input)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `1.0 / (1.0 + E.powf(-input))` [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/main.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | return input.tanh(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `input.tanh()` [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/main.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | return input.tanh(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove `return` as shown: `input.tanh()` [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: function is never used: `sigmoid` [INFO] [stderr] --> src/main.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | fn sigmoid(input: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sigmoid` [INFO] [stderr] --> src/main.rs:25:1 [INFO] [stderr] | [INFO] [stderr] 25 | fn sigmoid(input: f64) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [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/main.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | fn draw(x: &Vec, f: &Fn(f64) -> f64) { [INFO] [stderr] | ^^^^^^^^^ help: change this to: `&[f64]` [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: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/main.rs:35:12 [INFO] [stderr] | [INFO] [stderr] 35 | fn draw(x: &Vec, f: &Fn(f64) -> f64) { [INFO] [stderr] | ^^^^^^^^^ help: change this to: `&[f64]` [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 1m 23s [INFO] running `"docker" "inspect" "1fddf38b58e84c41500444cf9371c063f9eae3e981d48208381c7a53026f8df7"` [INFO] running `"docker" "rm" "-f" "1fddf38b58e84c41500444cf9371c063f9eae3e981d48208381c7a53026f8df7"` [INFO] [stdout] 1fddf38b58e84c41500444cf9371c063f9eae3e981d48208381c7a53026f8df7