[INFO] updating cached repository hokora/bouncing-square [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/hokora/bouncing-square [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/hokora/bouncing-square" "work/ex/clippy-test-run/sources/stable/gh/hokora/bouncing-square"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/hokora/bouncing-square'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/hokora/bouncing-square" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/hokora/bouncing-square"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/hokora/bouncing-square'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9cf0f060d56a05ce087ee52b8b275b403e03af79 [INFO] sha for GitHub repo hokora/bouncing-square: 9cf0f060d56a05ce087ee52b8b275b403e03af79 [INFO] validating manifest of hokora/bouncing-square 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 hokora/bouncing-square 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 hokora/bouncing-square [INFO] finished frobbing hokora/bouncing-square [INFO] frobbed toml for hokora/bouncing-square written to work/ex/clippy-test-run/sources/stable/gh/hokora/bouncing-square/Cargo.toml [INFO] started frobbing hokora/bouncing-square [INFO] finished frobbing hokora/bouncing-square [INFO] frobbed toml for hokora/bouncing-square written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/hokora/bouncing-square/Cargo.toml [INFO] crate hokora/bouncing-square 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 hokora/bouncing-square 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/gh/hokora/bouncing-square:/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] 9dd43e163f97b331a713189803e8b4c886e9bafa55e88477954805be4a929664 [INFO] running `"docker" "start" "-a" "9dd43e163f97b331a713189803e8b4c886e9bafa55e88477954805be4a929664"` [INFO] [stderr] Compiling rand v0.3.15 [INFO] [stderr] Checking shared_library v0.1.6 [INFO] [stderr] Compiling xml-rs v0.6.0 [INFO] [stderr] Checking tempfile v2.1.6 [INFO] [stderr] Checking rayon-core v1.2.1 [INFO] [stderr] Checking x11-dl v2.14.0 [INFO] [stderr] Checking fs2 v0.2.5 [INFO] [stderr] Checking memmap v0.4.0 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking rayon v0.8.2 [INFO] [stderr] Compiling phf_generator v0.7.21 [INFO] [stderr] Compiling phf_codegen v0.7.21 [INFO] [stderr] Compiling gl_generator v0.5.5 [INFO] [stderr] Compiling target_build_utils v0.3.1 [INFO] [stderr] Checking jpeg-decoder v0.1.13 [INFO] [stderr] Compiling gl v0.6.3 [INFO] [stderr] Compiling gfx_gl v0.3.1 [INFO] [stderr] Compiling glutin v0.9.1 [INFO] [stderr] Checking image v0.14.0 [INFO] [stderr] Checking piston-gfx_texture v0.25.0 [INFO] [stderr] Checking piston2d-gfx_graphics v0.42.0 [INFO] [stderr] Compiling libloading v0.3.4 [INFO] [stderr] Checking gfx_device_gl v0.14.1 [INFO] [stderr] Checking dlib v0.3.1 [INFO] [stderr] Checking wayland-sys v0.9.9 [INFO] [stderr] Checking wayland-client v0.9.9 [INFO] [stderr] Checking wayland-kbd v0.9.1 [INFO] [stderr] Checking wayland-window v0.6.1 [INFO] [stderr] Checking winit v0.7.5 [INFO] [stderr] Checking pistoncore-glutin_window v0.38.0 [INFO] [stderr] Checking piston_window v0.68.0 [INFO] [stderr] Checking bouncing-square v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: casting u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:44:16 [INFO] [stderr] | [INFO] [stderr] 44 | x: (size.width / 2) as f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(size.width / 2)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | y: (size.height / 2) as f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(size.height / 2)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:65:21 [INFO] [stderr] | [INFO] [stderr] 65 | if self.x > window_size.0 as f64 - self.width { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(window_size.0)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:71:21 [INFO] [stderr] | [INFO] [stderr] 71 | if self.y > window_size.1 as f64 - self.height { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(window_size.1)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:44:16 [INFO] [stderr] | [INFO] [stderr] 44 | x: (size.width / 2) as f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(size.width / 2)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:45:16 [INFO] [stderr] | [INFO] [stderr] 45 | y: (size.height / 2) as f64, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(size.height / 2)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:65:21 [INFO] [stderr] | [INFO] [stderr] 65 | if self.x > window_size.0 as f64 - self.width { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(window_size.0)` [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 u32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:71:21 [INFO] [stderr] | [INFO] [stderr] 71 | if self.y > window_size.1 as f64 - self.height { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(window_size.1)` [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 48.76s [INFO] running `"docker" "inspect" "9dd43e163f97b331a713189803e8b4c886e9bafa55e88477954805be4a929664"` [INFO] running `"docker" "rm" "-f" "9dd43e163f97b331a713189803e8b4c886e9bafa55e88477954805be4a929664"` [INFO] [stdout] 9dd43e163f97b331a713189803e8b4c886e9bafa55e88477954805be4a929664