[INFO] updating cached repository yszk0123-sandbox/hello-rust [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/yszk0123-sandbox/hello-rust [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/yszk0123-sandbox/hello-rust" "work/ex/clippy-test-run/sources/stable/gh/yszk0123-sandbox/hello-rust"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/yszk0123-sandbox/hello-rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/yszk0123-sandbox/hello-rust" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/yszk0123-sandbox/hello-rust"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/yszk0123-sandbox/hello-rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 9bb37761c1e683ee975dc68360a7217412330224 [INFO] sha for GitHub repo yszk0123-sandbox/hello-rust: 9bb37761c1e683ee975dc68360a7217412330224 [INFO] validating manifest of yszk0123-sandbox/hello-rust 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 yszk0123-sandbox/hello-rust 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 yszk0123-sandbox/hello-rust [INFO] finished frobbing yszk0123-sandbox/hello-rust [INFO] frobbed toml for yszk0123-sandbox/hello-rust written to work/ex/clippy-test-run/sources/stable/gh/yszk0123-sandbox/hello-rust/Cargo.toml [INFO] started frobbing yszk0123-sandbox/hello-rust [INFO] finished frobbing yszk0123-sandbox/hello-rust [INFO] frobbed toml for yszk0123-sandbox/hello-rust written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/yszk0123-sandbox/hello-rust/Cargo.toml [INFO] crate yszk0123-sandbox/hello-rust 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 yszk0123-sandbox/hello-rust 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/yszk0123-sandbox/hello-rust:/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] 84cc123e5e08d7e587948bc6c322b2cf25f7df547cf35eaa7231c9cb3c215fed [INFO] running `"docker" "start" "-a" "84cc123e5e08d7e587948bc6c322b2cf25f7df547cf35eaa7231c9cb3c215fed"` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * /opt/crater/workdir/src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `/opt/crater/workdir/src/main.rs` was erroneously implicitly accepted for binary `hello-rust-bin`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] Checking hello-rust v0.0.1 (/opt/crater/workdir) [INFO] [stderr] warning: struct is never constructed: `Rectangle` [INFO] [stderr] --> src/trait_examples/without_trait.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | struct Rectangle { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `area` [INFO] [stderr] --> src/trait_examples/without_trait.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | fn area(&self) -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct is never constructed: `Rectangle` [INFO] [stderr] --> src/trait_examples/with_trait.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | struct Rectangle { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never used: `x` [INFO] [stderr] --> src/trait_examples/without_trait.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | x: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: field is never used: `y` [INFO] [stderr] --> src/trait_examples/without_trait.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | y: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never used: `x` [INFO] [stderr] --> src/trait_examples/with_trait.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | x: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field is never used: `y` [INFO] [stderr] --> src/trait_examples/with_trait.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | y: f64, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/trait_examples/without_trait.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | assert_eq!(6f64, rectangle.area()); [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/trait_examples/without_trait.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | assert_eq!(6f64, rectangle.area()); [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] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/trait_examples/with_trait.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | assert_eq!(6f64, rectangle.area()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/trait_examples/with_trait.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | assert_eq!(6f64, rectangle.area()); [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] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/trait_examples/with_trait.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | assert_eq!(6f64, get_area(rectangle)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/trait_examples/with_trait.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | assert_eq!(6f64, get_area(rectangle)); [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] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `hello-rust`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "84cc123e5e08d7e587948bc6c322b2cf25f7df547cf35eaa7231c9cb3c215fed"` [INFO] running `"docker" "rm" "-f" "84cc123e5e08d7e587948bc6c322b2cf25f7df547cf35eaa7231c9cb3c215fed"` [INFO] [stdout] 84cc123e5e08d7e587948bc6c322b2cf25f7df547cf35eaa7231c9cb3c215fed