[INFO] updating cached repository bouk/rayray [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/bouk/rayray [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/bouk/rayray" "work/ex/clippy-test-run/sources/stable/gh/bouk/rayray"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/bouk/rayray'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/bouk/rayray" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bouk/rayray"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bouk/rayray'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 3fa2978e1ff77e149e155d2e5add6b9e67e3d1e8 [INFO] sha for GitHub repo bouk/rayray: 3fa2978e1ff77e149e155d2e5add6b9e67e3d1e8 [INFO] validating manifest of bouk/rayray 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 bouk/rayray 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 bouk/rayray [INFO] finished frobbing bouk/rayray [INFO] frobbed toml for bouk/rayray written to work/ex/clippy-test-run/sources/stable/gh/bouk/rayray/Cargo.toml [INFO] started frobbing bouk/rayray [INFO] finished frobbing bouk/rayray [INFO] frobbed toml for bouk/rayray written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bouk/rayray/Cargo.toml [INFO] crate bouk/rayray 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 bouk/rayray 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/bouk/rayray:/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] 96cca92b53eabd9039af456640ff321e294e139c4f32d97a1439251d420ff1a7 [INFO] running `"docker" "start" "-a" "96cca92b53eabd9039af456640ff321e294e139c4f32d97a1439251d420ff1a7"` [INFO] [stderr] Checking rayray v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: struct is never constructed: `Triangle` [INFO] [stderr] --> src/objects/triangle.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Triangle { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new` [INFO] [stderr] --> src/objects/triangle.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn new(v0: Vec3, v1: Vec3, v2: Vec3, material: Material) -> Triangle { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Triangle` [INFO] [stderr] --> src/objects/triangle.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Triangle { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new` [INFO] [stderr] --> src/objects/triangle.rs:10:5 [INFO] [stderr] | [INFO] [stderr] 10 | pub fn new(v0: Vec3, v1: Vec3, v2: Vec3, material: Material) -> Triangle { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/vec3.rs:216:9 [INFO] [stderr] | [INFO] [stderr] 216 | assert_eq!(c, 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/vec3.rs:216:9 [INFO] [stderr] | [INFO] [stderr] 216 | assert_eq!(c, 0.0); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: casting i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:148:33 [INFO] [stderr] | [INFO] [stderr] 148 | let pos_x = (x * anti_aliasing + ax) as f64 / (width * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(x * anti_aliasing + ax)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:148:67 [INFO] [stderr] | [INFO] [stderr] 148 | let pos_x = (x * anti_aliasing + ax) as f64 / (width * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(width * anti_aliasing)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:149:33 [INFO] [stderr] | [INFO] [stderr] 149 | let pos_y = (y * anti_aliasing + ay) as f64 / (height * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(y * anti_aliasing + ay)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:149:67 [INFO] [stderr] | [INFO] [stderr] 149 | let pos_y = (y * anti_aliasing + ay) as f64 / (height * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(height * anti_aliasing)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:148:33 [INFO] [stderr] | [INFO] [stderr] 148 | let pos_x = (x * anti_aliasing + ax) as f64 / (width * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(x * anti_aliasing + ax)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:148:67 [INFO] [stderr] | [INFO] [stderr] 148 | let pos_x = (x * anti_aliasing + ax) as f64 / (width * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(width * anti_aliasing)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:149:33 [INFO] [stderr] | [INFO] [stderr] 149 | let pos_y = (y * anti_aliasing + ay) as f64 / (height * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(y * anti_aliasing + ay)` [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 i32 to f64 may become silently lossy if types change [INFO] [stderr] --> src/main.rs:149:67 [INFO] [stderr] | [INFO] [stderr] 149 | let pos_y = (y * anti_aliasing + ay) as f64 / (height * anti_aliasing) as f64; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from(height * anti_aliasing)` [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] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `rayray`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "96cca92b53eabd9039af456640ff321e294e139c4f32d97a1439251d420ff1a7"` [INFO] running `"docker" "rm" "-f" "96cca92b53eabd9039af456640ff321e294e139c4f32d97a1439251d420ff1a7"` [INFO] [stdout] 96cca92b53eabd9039af456640ff321e294e139c4f32d97a1439251d420ff1a7