[INFO] updating cached repository elbaro/perceptron [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/elbaro/perceptron [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/elbaro/perceptron" "work/ex/clippy-test-run/sources/stable/gh/elbaro/perceptron"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/elbaro/perceptron'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/elbaro/perceptron" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/elbaro/perceptron"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/elbaro/perceptron'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 5e07791c29e368b18d8b4f2be7140692c7624f5b [INFO] sha for GitHub repo elbaro/perceptron: 5e07791c29e368b18d8b4f2be7140692c7624f5b [INFO] validating manifest of elbaro/perceptron 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 elbaro/perceptron 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 elbaro/perceptron [INFO] finished frobbing elbaro/perceptron [INFO] frobbed toml for elbaro/perceptron written to work/ex/clippy-test-run/sources/stable/gh/elbaro/perceptron/Cargo.toml [INFO] started frobbing elbaro/perceptron [INFO] finished frobbing elbaro/perceptron [INFO] frobbed toml for elbaro/perceptron written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/elbaro/perceptron/Cargo.toml [INFO] crate elbaro/perceptron 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 elbaro/perceptron 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/gh/elbaro/perceptron:/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] e618637f70fc7795f34f494a8409df1579df89b5fc19817eedb2cc71a78f17da [INFO] running `"docker" "start" "-a" "e618637f70fc7795f34f494a8409df1579df89b5fc19817eedb2cc71a78f17da"` [INFO] [stderr] Compiling serde v1.0.80 [INFO] [stderr] Compiling cgmath v0.16.1 [INFO] [stderr] Checking sample v0.9.1 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking petgraph v0.4.13 [INFO] [stderr] Checking rosc v0.1.5 [INFO] [stderr] Checking crossbeam-epoch v0.3.1 [INFO] [stderr] Checking x11-dl v2.18.3 [INFO] [stderr] Compiling syn v0.15.18 [INFO] [stderr] Compiling glutin v0.17.0 [INFO] [stderr] Compiling glium v0.22.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking noise v0.4.1 [INFO] [stderr] Compiling phf_codegen v0.7.23 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking rusttype v0.5.2 [INFO] [stderr] Checking daggy v0.5.0 [INFO] [stderr] Checking daggy v0.6.0 [INFO] [stderr] Compiling palette v0.2.1 [INFO] [stderr] Checking rayon-core v1.4.1 [INFO] [stderr] Checking wayland-client v0.20.12 [INFO] [stderr] Checking pennereq v0.2.0 [INFO] [stderr] Checking rayon v1.0.3 [INFO] [stderr] Compiling serde_derive v1.0.80 [INFO] [stderr] Compiling num-derive v0.2.3 [INFO] [stderr] Checking wayland-protocols v0.20.12 [INFO] [stderr] Checking smithay-client-toolkit v0.2.6 [INFO] [stderr] Checking jpeg-decoder v0.1.15 [INFO] [stderr] Checking winit v0.16.2 [INFO] [stderr] Checking image v0.19.0 [INFO] [stderr] Checking pistoncore-input v0.21.0 [INFO] [stderr] Checking serde_json v1.0.32 [INFO] [stderr] Checking toml v0.4.8 [INFO] [stderr] Checking conrod v0.61.1 [INFO] [stderr] Checking nannou v0.8.0 [INFO] [stderr] Checking svm v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:79:48 [INFO] [stderr] | [INFO] [stderr] 79 | model.l.w.x += learning_rate * sample.label as f32 * sample.point.x; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `f32::from(sample.label)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:80:48 [INFO] [stderr] | [INFO] [stderr] 80 | model.l.w.y += learning_rate * sample.label as f32 * sample.point.y; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `f32::from(sample.label)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:81:46 [INFO] [stderr] | [INFO] [stderr] 81 | model.l.b += learning_rate * sample.label as f32 * 1.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `f32::from(sample.label)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:79:48 [INFO] [stderr] | [INFO] [stderr] 79 | model.l.w.x += learning_rate * sample.label as f32 * sample.point.x; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `f32::from(sample.label)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:80:48 [INFO] [stderr] | [INFO] [stderr] 80 | model.l.w.y += learning_rate * sample.label as f32 * sample.point.y; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `f32::from(sample.label)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: casting i8 to f32 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:81:46 [INFO] [stderr] | [INFO] [stderr] 81 | model.l.b += learning_rate * sample.label as f32 * 1.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ help: try: `f32::from(sample.label)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2m 01s [INFO] running `"docker" "inspect" "e618637f70fc7795f34f494a8409df1579df89b5fc19817eedb2cc71a78f17da"` [INFO] running `"docker" "rm" "-f" "e618637f70fc7795f34f494a8409df1579df89b5fc19817eedb2cc71a78f17da"` [INFO] [stdout] e618637f70fc7795f34f494a8409df1579df89b5fc19817eedb2cc71a78f17da