[INFO] updating cached repository be9/stribot2 [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/be9/stribot2 [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/be9/stribot2" "work/ex/clippy-test-run/sources/stable/gh/be9/stribot2"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/be9/stribot2'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/be9/stribot2" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/be9/stribot2"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/be9/stribot2'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 42ca97d94b22045885b1f358890cf01325cb33c3 [INFO] sha for GitHub repo be9/stribot2: 42ca97d94b22045885b1f358890cf01325cb33c3 [INFO] validating manifest of be9/stribot2 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 be9/stribot2 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 be9/stribot2 [INFO] finished frobbing be9/stribot2 [INFO] frobbed toml for be9/stribot2 written to work/ex/clippy-test-run/sources/stable/gh/be9/stribot2/Cargo.toml [INFO] started frobbing be9/stribot2 [INFO] finished frobbing be9/stribot2 [INFO] frobbed toml for be9/stribot2 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/be9/stribot2/Cargo.toml [INFO] crate be9/stribot2 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 be9/stribot2 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-7/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/be9/stribot2:/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] c8dc36a6d522605f1cb651cc4d01ae2b3f4e571427be72d0f6003026a01280f5 [INFO] running `"docker" "start" "-a" "c8dc36a6d522605f1cb651cc4d01ae2b3f4e571427be72d0f6003026a01280f5"` [INFO] [stderr] Compiling string_cache_codegen v0.4.2 [INFO] [stderr] Checking tokio-threadpool v0.1.9 [INFO] [stderr] Compiling string_cache v0.6.2 [INFO] [stderr] Compiling markup5ever v0.3.2 [INFO] [stderr] Checking tokio-fs v0.1.4 [INFO] [stderr] Checking tokio v0.1.13 [INFO] [stderr] Checking hyper v0.12.16 [INFO] [stderr] Checking html5ever v0.18.0 [INFO] [stderr] Checking hyper-tls v0.3.1 [INFO] [stderr] Checking select v0.4.2 [INFO] [stderr] Checking reqwest v0.9.5 [INFO] [stderr] Checking stribot2 v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant pattern matching, consider using `is_some()` [INFO] [stderr] --> src/main.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | if let Some(_) = matches.subcommand_matches("now") { [INFO] [stderr] | _____- ^^^^^^^ [INFO] [stderr] 31 | | temperature(); [INFO] [stderr] 32 | | } [INFO] [stderr] | |_____- help: try this: `if matches.subcommand_matches("now").is_some()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_pattern_matching)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] warning: redundant pattern matching, consider using `is_some()` [INFO] [stderr] --> src/main.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | if let Some(_) = matches.subcommand_matches("minmax") { [INFO] [stderr] | _____- ^^^^^^^ [INFO] [stderr] 35 | | minmax(); [INFO] [stderr] 36 | | } [INFO] [stderr] | |_____- help: try this: `if matches.subcommand_matches("minmax").is_some()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/tgk.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | assert_eq!(parse_temperature(&contents).unwrap(), -10.6); [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/tgk.rs:174:9 [INFO] [stderr] | [INFO] [stderr] 174 | assert_eq!(parse_temperature(&contents).unwrap(), -10.6); [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/nsu.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | assert_eq!(parse_temperature(&contents).unwrap(), -7.8); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/nsu.rs:58:9 [INFO] [stderr] | [INFO] [stderr] 58 | assert_eq!(parse_temperature(&contents).unwrap(), -7.8); [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: redundant pattern matching, consider using `is_some()` [INFO] [stderr] --> src/main.rs:30:12 [INFO] [stderr] | [INFO] [stderr] 30 | if let Some(_) = matches.subcommand_matches("now") { [INFO] [stderr] | _____- ^^^^^^^ [INFO] [stderr] 31 | | temperature(); [INFO] [stderr] 32 | | } [INFO] [stderr] | |_____- help: try this: `if matches.subcommand_matches("now").is_some()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_pattern_matching)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] warning: redundant pattern matching, consider using `is_some()` [INFO] [stderr] --> src/main.rs:34:12 [INFO] [stderr] | [INFO] [stderr] 34 | if let Some(_) = matches.subcommand_matches("minmax") { [INFO] [stderr] | _____- ^^^^^^^ [INFO] [stderr] 35 | | minmax(); [INFO] [stderr] 36 | | } [INFO] [stderr] | |_____- help: try this: `if matches.subcommand_matches("minmax").is_some()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `stribot2`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c8dc36a6d522605f1cb651cc4d01ae2b3f4e571427be72d0f6003026a01280f5"` [INFO] running `"docker" "rm" "-f" "c8dc36a6d522605f1cb651cc4d01ae2b3f4e571427be72d0f6003026a01280f5"` [INFO] [stdout] c8dc36a6d522605f1cb651cc4d01ae2b3f4e571427be72d0f6003026a01280f5