[INFO] updating cached repository cfsamson/advent-of-code-2018 [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/cfsamson/advent-of-code-2018 [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/cfsamson/advent-of-code-2018" "work/ex/clippy-test-run/sources/stable/gh/cfsamson/advent-of-code-2018"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/cfsamson/advent-of-code-2018'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/cfsamson/advent-of-code-2018" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/cfsamson/advent-of-code-2018"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/cfsamson/advent-of-code-2018'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] b88e33441a39466e699964ef267a425dde939327 [INFO] sha for GitHub repo cfsamson/advent-of-code-2018: b88e33441a39466e699964ef267a425dde939327 [INFO] validating manifest of cfsamson/advent-of-code-2018 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 cfsamson/advent-of-code-2018 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 cfsamson/advent-of-code-2018 [INFO] finished frobbing cfsamson/advent-of-code-2018 [INFO] frobbed toml for cfsamson/advent-of-code-2018 written to work/ex/clippy-test-run/sources/stable/gh/cfsamson/advent-of-code-2018/Cargo.toml [INFO] started frobbing cfsamson/advent-of-code-2018 [INFO] finished frobbing cfsamson/advent-of-code-2018 [INFO] frobbed toml for cfsamson/advent-of-code-2018 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/cfsamson/advent-of-code-2018/Cargo.toml [INFO] crate cfsamson/advent-of-code-2018 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 cfsamson/advent-of-code-2018 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/cfsamson/advent-of-code-2018:/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] 9728c12544b8e924bad0fbf86203c2051c370b5c65124eb0b58184268425088d [INFO] running `"docker" "start" "-a" "9728c12544b8e924bad0fbf86203c2051c370b5c65124eb0b58184268425088d"` [INFO] [stderr] Checking AdventOfCode2018 v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused imports: `fs::File`, `io::Read` [INFO] [stderr] --> src/day_01.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{fs::File, io::Read}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `fs::File`, `io::Read` [INFO] [stderr] --> src/day_01.rs:3:11 [INFO] [stderr] | [INFO] [stderr] 3 | use std::{fs::File, io::Read}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: crate `AdventOfCode2018` should have a snake case name such as `advent_of_code2018` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_snake_case)] on by default [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/day_03.rs:68:30 [INFO] [stderr] | [INFO] [stderr] 68 | } else if x == 1 { [INFO] [stderr] | ______________________________^ [INFO] [stderr] 69 | | //print!("1"); [INFO] [stderr] 70 | | } else if x > 1 { [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/day_03.rs:66:23 [INFO] [stderr] | [INFO] [stderr] 66 | if x == 0 { [INFO] [stderr] | _______________________^ [INFO] [stderr] 67 | | //print!("."); [INFO] [stderr] 68 | | } else if x == 1 { [INFO] [stderr] | |_____________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `AdventOfCode2018`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: crate `AdventOfCode2018` should have a snake case name such as `advent_of_code2018` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_snake_case)] on by default [INFO] [stderr] [INFO] [stderr] error: this `if` has identical blocks [INFO] [stderr] --> src/day_03.rs:68:30 [INFO] [stderr] | [INFO] [stderr] 68 | } else if x == 1 { [INFO] [stderr] | ______________________________^ [INFO] [stderr] 69 | | //print!("1"); [INFO] [stderr] 70 | | } else if x > 1 { [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::if_same_then_else)] on by default [INFO] [stderr] note: same as this [INFO] [stderr] --> src/day_03.rs:66:23 [INFO] [stderr] | [INFO] [stderr] 66 | if x == 0 { [INFO] [stderr] | _______________________^ [INFO] [stderr] 67 | | //print!("."); [INFO] [stderr] 68 | | } else if x == 1 { [INFO] [stderr] | |_____________^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#if_same_then_else [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `AdventOfCode2018`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "9728c12544b8e924bad0fbf86203c2051c370b5c65124eb0b58184268425088d"` [INFO] running `"docker" "rm" "-f" "9728c12544b8e924bad0fbf86203c2051c370b5c65124eb0b58184268425088d"` [INFO] [stdout] 9728c12544b8e924bad0fbf86203c2051c370b5c65124eb0b58184268425088d