[INFO] crate nokiahealth 0.1.0 is already in cache [INFO] extracting crate nokiahealth 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/nokiahealth/0.1.0 [INFO] extracting crate nokiahealth 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/nokiahealth/0.1.0 [INFO] validating manifest of nokiahealth-0.1.0 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 nokiahealth-0.1.0 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 nokiahealth-0.1.0 [INFO] finished frobbing nokiahealth-0.1.0 [INFO] frobbed toml for nokiahealth-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/nokiahealth/0.1.0/Cargo.toml [INFO] started frobbing nokiahealth-0.1.0 [INFO] finished frobbing nokiahealth-0.1.0 [INFO] frobbed toml for nokiahealth-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/nokiahealth/0.1.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [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 nokiahealth-0.1.0 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/reg/nokiahealth/0.1.0:/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] 97901c36fc573e2559570c11dd2e300f665f21ae39d64af23b33ff85f07d1501 [INFO] running `"docker" "start" "-a" "97901c36fc573e2559570c11dd2e300f665f21ae39d64af23b33ff85f07d1501"` [INFO] [stderr] Checking stringreader v0.1.1 [INFO] [stderr] Checking influent v0.4.1 [INFO] [stderr] Checking nokiahealth v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/data/weight.rs:65:20 [INFO] [stderr] | [INFO] [stderr] 65 | const FORMAT: &'static str = "%Y-%m-%d %H:%M:%S"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/data/weight.rs:65:20 [INFO] [stderr] | [INFO] [stderr] 65 | const FORMAT: &'static str = "%Y-%m-%d %H:%M:%S"; [INFO] [stderr] | -^^^^^^^---- help: consider removing `'static`: `&str` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/storage/mod.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / pub fn connect<'a>(connection_data: &'a ConnectionData) -> HttpClient<'a> { [INFO] [stderr] 36 | | let credentials = Credentials { [INFO] [stderr] 37 | | username: connection_data.username.as_ref(), [INFO] [stderr] 38 | | password: connection_data.password.as_ref(), [INFO] [stderr] ... | [INFO] [stderr] 43 | | create_client(credentials, hosts) [INFO] [stderr] 44 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/storage/mod.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | assert_eq!(42.0, actual_weight); [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/storage/mod.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | assert_eq!(42.0, actual_weight); [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/data/weight.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 99 | assert_eq!(80.03, weights[0].weight); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/data/weight.rs:99:9 [INFO] [stderr] | [INFO] [stderr] 99 | assert_eq!(80.03, weights[0].weight); [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 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `nokiahealth`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/storage/mod.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | / pub fn connect<'a>(connection_data: &'a ConnectionData) -> HttpClient<'a> { [INFO] [stderr] 36 | | let credentials = Credentials { [INFO] [stderr] 37 | | username: connection_data.username.as_ref(), [INFO] [stderr] 38 | | password: connection_data.password.as_ref(), [INFO] [stderr] ... | [INFO] [stderr] 43 | | create_client(credentials, hosts) [INFO] [stderr] 44 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "97901c36fc573e2559570c11dd2e300f665f21ae39d64af23b33ff85f07d1501"` [INFO] running `"docker" "rm" "-f" "97901c36fc573e2559570c11dd2e300f665f21ae39d64af23b33ff85f07d1501"` [INFO] [stdout] 97901c36fc573e2559570c11dd2e300f665f21ae39d64af23b33ff85f07d1501