[INFO] updating cached repository breander/Rust_Advent_Code_2017_Day_03 [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/breander/Rust_Advent_Code_2017_Day_03 [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/breander/Rust_Advent_Code_2017_Day_03" "work/ex/clippy-test-run/sources/stable/gh/breander/Rust_Advent_Code_2017_Day_03"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/breander/Rust_Advent_Code_2017_Day_03'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/breander/Rust_Advent_Code_2017_Day_03" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/breander/Rust_Advent_Code_2017_Day_03"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/breander/Rust_Advent_Code_2017_Day_03'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] db94d5bd68f048e744babe43cb4b2a4f5b62a93f [INFO] sha for GitHub repo breander/Rust_Advent_Code_2017_Day_03: db94d5bd68f048e744babe43cb4b2a4f5b62a93f [INFO] validating manifest of breander/Rust_Advent_Code_2017_Day_03 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 breander/Rust_Advent_Code_2017_Day_03 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 breander/Rust_Advent_Code_2017_Day_03 [INFO] finished frobbing breander/Rust_Advent_Code_2017_Day_03 [INFO] frobbed toml for breander/Rust_Advent_Code_2017_Day_03 written to work/ex/clippy-test-run/sources/stable/gh/breander/Rust_Advent_Code_2017_Day_03/Cargo.toml [INFO] started frobbing breander/Rust_Advent_Code_2017_Day_03 [INFO] finished frobbing breander/Rust_Advent_Code_2017_Day_03 [INFO] frobbed toml for breander/Rust_Advent_Code_2017_Day_03 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/breander/Rust_Advent_Code_2017_Day_03/Cargo.toml [INFO] crate breander/Rust_Advent_Code_2017_Day_03 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 breander/Rust_Advent_Code_2017_Day_03 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/breander/Rust_Advent_Code_2017_Day_03:/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] ceb5c9b4fa5657b548c189bccd0029ce21120e9b5a0150ea9fd815c95534918b [INFO] running `"docker" "start" "-a" "ceb5c9b4fa5657b548c189bccd0029ce21120e9b5a0150ea9fd815c95534918b"` [INFO] [stderr] Checking day3 v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | x = x + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x += 1` [INFO] [stderr] --> src/main.rs:22:13 [INFO] [stderr] | [INFO] [stderr] 22 | x = x + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x += 1` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | y = y + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:26:13 [INFO] [stderr] | [INFO] [stderr] 26 | y = y + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | x = x - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x -= 1` [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:30:13 [INFO] [stderr] | [INFO] [stderr] 30 | x = x - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | y = y - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:34:13 [INFO] [stderr] | [INFO] [stderr] 34 | y = y - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `x` [INFO] [stderr] --> src/main.rs:68:46 [INFO] [stderr] | [INFO] [stderr] 68 | println!("Part 1 distance: {}", i32::abs(x - 0) + i32::abs(y - 0)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::identity_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `y` [INFO] [stderr] --> src/main.rs:68:64 [INFO] [stderr] | [INFO] [stderr] 68 | println!("Part 1 distance: {}", i32::abs(x - 0) + i32::abs(y - 0)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `x` [INFO] [stderr] --> src/main.rs:68:46 [INFO] [stderr] | [INFO] [stderr] 68 | println!("Part 1 distance: {}", i32::abs(x - 0) + i32::abs(y - 0)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::identity_op)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: the operation is ineffective. Consider reducing it to `y` [INFO] [stderr] --> src/main.rs:68:64 [INFO] [stderr] | [INFO] [stderr] 68 | println!("Part 1 distance: {}", i32::abs(x - 0) + i32::abs(y - 0)); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:98:13 [INFO] [stderr] | [INFO] [stderr] 98 | x = x + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | y = y + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | x = x - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | y = y - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:98:13 [INFO] [stderr] | [INFO] [stderr] 98 | x = x + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | y = y + 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y += 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | x = x - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `x -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: manual implementation of an assign operation [INFO] [stderr] --> src/main.rs:110:13 [INFO] [stderr] | [INFO] [stderr] 110 | y = y - 1; [INFO] [stderr] | ^^^^^^^^^ help: replace it with: `y -= 1` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `"docker" "inspect" "ceb5c9b4fa5657b548c189bccd0029ce21120e9b5a0150ea9fd815c95534918b"` [INFO] running `"docker" "rm" "-f" "ceb5c9b4fa5657b548c189bccd0029ce21120e9b5a0150ea9fd815c95534918b"` [INFO] [stdout] ceb5c9b4fa5657b548c189bccd0029ce21120e9b5a0150ea9fd815c95534918b