[INFO] updating cached repository BrianLee608/adventofcode2017rust [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/BrianLee608/adventofcode2017rust [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/BrianLee608/adventofcode2017rust" "work/ex/clippy-test-run/sources/stable/gh/BrianLee608/adventofcode2017rust"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/BrianLee608/adventofcode2017rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/BrianLee608/adventofcode2017rust" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/BrianLee608/adventofcode2017rust"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/BrianLee608/adventofcode2017rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] a47b55f3ce8b0112177be640939ce88187b9dbd5 [INFO] sha for GitHub repo BrianLee608/adventofcode2017rust: a47b55f3ce8b0112177be640939ce88187b9dbd5 [INFO] validating manifest of BrianLee608/adventofcode2017rust 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 BrianLee608/adventofcode2017rust 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 BrianLee608/adventofcode2017rust [INFO] finished frobbing BrianLee608/adventofcode2017rust [INFO] frobbed toml for BrianLee608/adventofcode2017rust written to work/ex/clippy-test-run/sources/stable/gh/BrianLee608/adventofcode2017rust/Cargo.toml [INFO] started frobbing BrianLee608/adventofcode2017rust [INFO] finished frobbing BrianLee608/adventofcode2017rust [INFO] frobbed toml for BrianLee608/adventofcode2017rust written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/BrianLee608/adventofcode2017rust/Cargo.toml [INFO] crate BrianLee608/adventofcode2017rust 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 BrianLee608/adventofcode2017rust against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/BrianLee608/adventofcode2017rust:/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] a3e26572ac7ea21a502b7e636de59a7e96de88ccbfff7e67aac226330143b4da [INFO] running `"docker" "start" "-a" "a3e26572ac7ea21a502b7e636de59a7e96de88ccbfff7e67aac226330143b4da"` [INFO] [stderr] Checking adventofcode2017 v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: function is never used: `min_max_diff` [INFO] [stderr] --> src/day2.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | fn min_max_diff(line: &str) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: casting character literal to u8. `char`s are 4 bytes wide in rust, so casting to u8 truncates them [INFO] [stderr] --> src/day1.rs:15:28 [INFO] [stderr] | [INFO] [stderr] 15 | let num = *d - '0' as u8; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::char_lit_as_u8)] on by default [INFO] [stderr] = help: Consider using a byte literal instead: [INFO] [stderr] b'0' [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/day1.rs:16:20 [INFO] [stderr] | [INFO] [stderr] 16 | ans += num as u64; [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(num)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: function is never used: `min_max_diff` [INFO] [stderr] --> src/day2.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | fn min_max_diff(line: &str) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: casting character literal to u8. `char`s are 4 bytes wide in rust, so casting to u8 truncates them [INFO] [stderr] --> src/day1.rs:15:28 [INFO] [stderr] | [INFO] [stderr] 15 | let num = *d - '0' as u8; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::char_lit_as_u8)] on by default [INFO] [stderr] = help: Consider using a byte literal instead: [INFO] [stderr] b'0' [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#char_lit_as_u8 [INFO] [stderr] [INFO] [stderr] warning: casting u8 to u64 may become silently lossy if types change [INFO] [stderr] --> src/day1.rs:16:20 [INFO] [stderr] | [INFO] [stderr] 16 | ans += num as u64; [INFO] [stderr] | ^^^^^^^^^^ help: try: `u64::from(num)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.96s [INFO] running `"docker" "inspect" "a3e26572ac7ea21a502b7e636de59a7e96de88ccbfff7e67aac226330143b4da"` [INFO] running `"docker" "rm" "-f" "a3e26572ac7ea21a502b7e636de59a7e96de88ccbfff7e67aac226330143b4da"` [INFO] [stdout] a3e26572ac7ea21a502b7e636de59a7e96de88ccbfff7e67aac226330143b4da