[INFO] updating cached repository swuecho/rust_pearls [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/swuecho/rust_pearls [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/swuecho/rust_pearls" "work/ex/clippy-test-run/sources/stable/gh/swuecho/rust_pearls"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/swuecho/rust_pearls'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/swuecho/rust_pearls" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/swuecho/rust_pearls"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/swuecho/rust_pearls'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 1872708631f831c8be5ba5ced6a4e1fd6a910c82 [INFO] sha for GitHub repo swuecho/rust_pearls: 1872708631f831c8be5ba5ced6a4e1fd6a910c82 [INFO] validating manifest of swuecho/rust_pearls 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 swuecho/rust_pearls 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 swuecho/rust_pearls [INFO] finished frobbing swuecho/rust_pearls [INFO] frobbed toml for swuecho/rust_pearls written to work/ex/clippy-test-run/sources/stable/gh/swuecho/rust_pearls/Cargo.toml [INFO] started frobbing swuecho/rust_pearls [INFO] finished frobbing swuecho/rust_pearls [INFO] frobbed toml for swuecho/rust_pearls written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/swuecho/rust_pearls/Cargo.toml [INFO] crate swuecho/rust_pearls 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 swuecho/rust_pearls 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-3/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/swuecho/rust_pearls:/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] 12a2dcdcade4a7867f28dbfd3cb879dc8b33dd22d48c6d3395e92cff3d60e5d5 [INFO] running `"docker" "start" "-a" "12a2dcdcade4a7867f28dbfd3cb879dc8b33dd22d48c6d3395e92cff3d60e5d5"` [INFO] [stderr] Checking rust_pearls v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/fuzzbuzz2.rs:5:27 [INFO] [stderr] | [INFO] [stderr] 5 | println!("{}","FizzBuzz"); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::print_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/fuzzbuzz2.rs:8:28 [INFO] [stderr] | [INFO] [stderr] 8 | println!("{}", "Fizz"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/fuzzbuzz2.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | println!("{}", "Buzz"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | println!("Hello, {}!", "world"); // => ~"Hello, world!" [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::print_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | println!("The number is {}", 1); // => ~"The number is 1" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:6:31 [INFO] [stderr] | [INFO] [stderr] 6 | println!("{value}", value=4); // => ~"4" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:7:23 [INFO] [stderr] | [INFO] [stderr] 7 | println!("{} {}", 1, 2); // => ~"1 2" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | println!("{} {}", 1, 2); // => ~"1 2" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/bin/vec_borrow.rs:8:19 [INFO] [stderr] | [INFO] [stderr] 8 | fn print_vec(vec: &Vec) { [INFO] [stderr] | ^^^^^^^^^ help: change this to: `&[i32]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/fuzzbuzz2.rs:5:27 [INFO] [stderr] | [INFO] [stderr] 5 | println!("{}","FizzBuzz"); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::print_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/fuzzbuzz2.rs:8:28 [INFO] [stderr] | [INFO] [stderr] 8 | println!("{}", "Fizz"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/fuzzbuzz2.rs:11:28 [INFO] [stderr] | [INFO] [stderr] 11 | println!("{}", "Buzz"); [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:3:28 [INFO] [stderr] | [INFO] [stderr] 3 | println!("Hello, {}!", "world"); // => ~"Hello, world!" [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::print_literal)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:4:34 [INFO] [stderr] | [INFO] [stderr] 4 | println!("The number is {}", 1); // => ~"The number is 1" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:6:31 [INFO] [stderr] | [INFO] [stderr] 6 | println!("{value}", value=4); // => ~"4" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:7:23 [INFO] [stderr] | [INFO] [stderr] 7 | println!("{} {}", 1, 2); // => ~"1 2" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: literal with an empty format string [INFO] [stderr] --> src/bin/format_output.rs:7:26 [INFO] [stderr] | [INFO] [stderr] 7 | println!("{} {}", 1, 2); // => ~"1 2" [INFO] [stderr] | ^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_literal [INFO] [stderr] [INFO] [stderr] warning: writing `&Vec<_>` instead of `&[_]` involves one more reference and cannot be used with non-Vec-based slices. [INFO] [stderr] --> src/bin/vec_borrow.rs:8:19 [INFO] [stderr] | [INFO] [stderr] 8 | fn print_vec(vec: &Vec) { [INFO] [stderr] | ^^^^^^^^^ help: change this to: `&[i32]` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_arg)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.59s [INFO] running `"docker" "inspect" "12a2dcdcade4a7867f28dbfd3cb879dc8b33dd22d48c6d3395e92cff3d60e5d5"` [INFO] running `"docker" "rm" "-f" "12a2dcdcade4a7867f28dbfd3cb879dc8b33dd22d48c6d3395e92cff3d60e5d5"` [INFO] [stdout] 12a2dcdcade4a7867f28dbfd3cb879dc8b33dd22d48c6d3395e92cff3d60e5d5