[INFO] updating cached repository shioyama18/travis_example [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/shioyama18/travis_example [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/shioyama18/travis_example" "work/ex/clippy-test-run/sources/stable/gh/shioyama18/travis_example"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/shioyama18/travis_example'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/shioyama18/travis_example" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/shioyama18/travis_example"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/shioyama18/travis_example'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 47249fcf707b9f783d38377cb6dc57b151a3b87d [INFO] sha for GitHub repo shioyama18/travis_example: 47249fcf707b9f783d38377cb6dc57b151a3b87d [INFO] validating manifest of shioyama18/travis_example 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 shioyama18/travis_example 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 shioyama18/travis_example [INFO] finished frobbing shioyama18/travis_example [INFO] frobbed toml for shioyama18/travis_example written to work/ex/clippy-test-run/sources/stable/gh/shioyama18/travis_example/Cargo.toml [INFO] started frobbing shioyama18/travis_example [INFO] finished frobbing shioyama18/travis_example [INFO] frobbed toml for shioyama18/travis_example written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/shioyama18/travis_example/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [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 shioyama18/travis_example 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/shioyama18/travis_example:/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] b96f4ed4913198b5d31be43fdcf1fa1a97420f14b94f1f6128b1deb1fdb6edb1 [INFO] running `"docker" "start" "-a" "b96f4ed4913198b5d31be43fdcf1fa1a97420f14b94f1f6128b1deb1fdb6edb1"` [INFO] [stderr] Checking buistr v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/lib.rs:135:13 [INFO] [stderr] | [INFO] [stderr] 135 | squares: squares [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `squares` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/lib.rs:135:13 [INFO] [stderr] | [INFO] [stderr] 135 | squares: squares [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace it with: `squares` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise [INFO] [stderr] --> src/lib.rs:100:26 [INFO] [stderr] | [INFO] [stderr] 100 | let new_square = copy_of_squares.get(new_coord.0 * self.size.0 + new_coord.1).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `copy_of_squares[new_coord.0 * self.size.0 + new_coord.1]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] warning: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise [INFO] [stderr] --> src/lib.rs:100:26 [INFO] [stderr] | [INFO] [stderr] 100 | let new_square = copy_of_squares.get(new_coord.0 * self.size.0 + new_coord.1).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `copy_of_squares[new_coord.0 * self.size.0 + new_coord.1]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::get_unwrap)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_unwrap [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `"docker" "inspect" "b96f4ed4913198b5d31be43fdcf1fa1a97420f14b94f1f6128b1deb1fdb6edb1"` [INFO] running `"docker" "rm" "-f" "b96f4ed4913198b5d31be43fdcf1fa1a97420f14b94f1f6128b1deb1fdb6edb1"` [INFO] [stdout] b96f4ed4913198b5d31be43fdcf1fa1a97420f14b94f1f6128b1deb1fdb6edb1