[INFO] updating cached repository intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match" "work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 8709d3fc33a247b061df7204d161068a9dba8f33 [INFO] sha for GitHub repo intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match: 8709d3fc33a247b061df7204d161068a9dba8f33 [INFO] validating manifest of intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match 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 intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match 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 intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match [INFO] finished frobbing intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match [INFO] frobbed toml for intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match written to work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match/Cargo.toml [INFO] started frobbing intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match [INFO] finished frobbing intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match [INFO] frobbed toml for intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match/Cargo.toml [INFO] crate intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match 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 intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-2/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-flow_control-match:/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 -Dclippy::into_iter_on_array" "-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] 09ea37b2fe27622be4a7bda37e06187dfbb45c2952e53ea02b15b88a46b76815 [INFO] running `"docker" "start" "-a" "09ea37b2fe27622be4a7bda37e06187dfbb45c2952e53ea02b15b88a46b76815"` [INFO] [stderr] Checking example-x-rust-x-rustbyexample-com-x-flow_control-match v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/main.rs:19:18 [INFO] [stderr] | [INFO] [stderr] 19 | let binary = match boolean { [INFO] [stderr] | __________________^ [INFO] [stderr] 20 | | // The arms of a match must cover all the possible values [INFO] [stderr] 21 | | false => 0, [INFO] [stderr] 22 | | true => 1, [INFO] [stderr] 23 | | // TODO ^ Try commenting out one of these arms [INFO] [stderr] 24 | | }; [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if boolean { 1 } else { 0 }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/main.rs:19:18 [INFO] [stderr] | [INFO] [stderr] 19 | let binary = match boolean { [INFO] [stderr] | __________________^ [INFO] [stderr] 20 | | // The arms of a match must cover all the possible values [INFO] [stderr] 21 | | false => 0, [INFO] [stderr] 22 | | true => 1, [INFO] [stderr] 23 | | // TODO ^ Try commenting out one of these arms [INFO] [stderr] 24 | | }; [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if boolean { 1 } else { 0 }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `"docker" "inspect" "09ea37b2fe27622be4a7bda37e06187dfbb45c2952e53ea02b15b88a46b76815"` [INFO] running `"docker" "rm" "-f" "09ea37b2fe27622be4a7bda37e06187dfbb45c2952e53ea02b15b88a46b76815"` [INFO] [stdout] 09ea37b2fe27622be4a7bda37e06187dfbb45c2952e53ea02b15b88a46b76815