[INFO] updating cached repository YitzhakAndrade/rust-hello-world [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/YitzhakAndrade/rust-hello-world [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/YitzhakAndrade/rust-hello-world" "work/ex/clippy-test-run/sources/stable/gh/YitzhakAndrade/rust-hello-world"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/YitzhakAndrade/rust-hello-world'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/YitzhakAndrade/rust-hello-world" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/YitzhakAndrade/rust-hello-world"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/YitzhakAndrade/rust-hello-world'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 3a4815559927fa4a9c3d6003f84af5e6e4d3eccd [INFO] sha for GitHub repo YitzhakAndrade/rust-hello-world: 3a4815559927fa4a9c3d6003f84af5e6e4d3eccd [INFO] validating manifest of YitzhakAndrade/rust-hello-world 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 YitzhakAndrade/rust-hello-world 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 YitzhakAndrade/rust-hello-world [INFO] finished frobbing YitzhakAndrade/rust-hello-world [INFO] frobbed toml for YitzhakAndrade/rust-hello-world written to work/ex/clippy-test-run/sources/stable/gh/YitzhakAndrade/rust-hello-world/Cargo.toml [INFO] started frobbing YitzhakAndrade/rust-hello-world [INFO] finished frobbing YitzhakAndrade/rust-hello-world [INFO] frobbed toml for YitzhakAndrade/rust-hello-world written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/YitzhakAndrade/rust-hello-world/Cargo.toml [INFO] crate YitzhakAndrade/rust-hello-world 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 YitzhakAndrade/rust-hello-world 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-4/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/YitzhakAndrade/rust-hello-world:/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] 807be518dabf2d206c2ae0c2afc272e193131741fd5b322ea185eb43e57d6883 [INFO] running `"docker" "start" "-a" "807be518dabf2d206c2ae0c2afc272e193131741fd5b322ea185eb43e57d6883"` [INFO] [stderr] Checking roadshow v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead [INFO] [stderr] --> src/main.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | print!(" indiozinhos\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::print_with_newline)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline [INFO] [stderr] [INFO] [stderr] warning: using `print!()` with a format string that ends in a single newline, consider using `println!()` instead [INFO] [stderr] --> src/main.rs:81:9 [INFO] [stderr] | [INFO] [stderr] 81 | print!(" indiozinhos\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::print_with_newline)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#print_with_newline [INFO] [stderr] [INFO] [stderr] warning: function is never used: `grita` [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | fn grita(string: String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `exercicio_loop` [INFO] [stderr] --> src/main.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | fn exercicio_loop() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `canta` [INFO] [stderr] --> src/main.rs:74:1 [INFO] [stderr] | [INFO] [stderr] 74 | fn canta(n: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `exercicio_if` [INFO] [stderr] --> src/main.rs:89:1 [INFO] [stderr] | [INFO] [stderr] 89 | fn exercicio_if() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `par` [INFO] [stderr] --> src/main.rs:118:1 [INFO] [stderr] | [INFO] [stderr] 118 | fn par(n: i32) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `impar` [INFO] [stderr] --> src/main.rs:126:1 [INFO] [stderr] | [INFO] [stderr] 126 | fn impar(n: i32) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&String` instead of `&str` involves a new object where a slice will do. [INFO] [stderr] --> src/main.rs:9:22 [INFO] [stderr] | [INFO] [stderr] 9 | fn grita_ref(string: &String) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&str` [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: this boolean expression can be simplified [INFO] [stderr] --> src/main.rs:76:8 [INFO] [stderr] | [INFO] [stderr] 76 | if !(n % 3 == 0) { [INFO] [stderr] | ^^^^^^^^^^^^^ help: try: `n % 3 != 0` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::nonminimal_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stderr] [INFO] [stderr] warning: this boolean expression can be simplified [INFO] [stderr] --> src/main.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 77 | if !(n % 10 == 0) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `n % 10 != 0` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stderr] [INFO] [stderr] warning: function is never used: `grita` [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | fn grita(string: String) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `exercicio_loop` [INFO] [stderr] --> src/main.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | fn exercicio_loop() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `canta` [INFO] [stderr] --> src/main.rs:74:1 [INFO] [stderr] | [INFO] [stderr] 74 | fn canta(n: i32) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `exercicio_if` [INFO] [stderr] --> src/main.rs:89:1 [INFO] [stderr] | [INFO] [stderr] 89 | fn exercicio_if() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `par` [INFO] [stderr] --> src/main.rs:118:1 [INFO] [stderr] | [INFO] [stderr] 118 | fn par(n: i32) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `impar` [INFO] [stderr] --> src/main.rs:126:1 [INFO] [stderr] | [INFO] [stderr] 126 | fn impar(n: i32) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: writing `&String` instead of `&str` involves a new object where a slice will do. [INFO] [stderr] --> src/main.rs:9:22 [INFO] [stderr] | [INFO] [stderr] 9 | fn grita_ref(string: &String) { [INFO] [stderr] | ^^^^^^^ help: change this to: `&str` [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: this boolean expression can be simplified [INFO] [stderr] --> src/main.rs:76:8 [INFO] [stderr] | [INFO] [stderr] 76 | if !(n % 3 == 0) { [INFO] [stderr] | ^^^^^^^^^^^^^ help: try: `n % 3 != 0` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::nonminimal_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stderr] [INFO] [stderr] warning: this boolean expression can be simplified [INFO] [stderr] --> src/main.rs:77:12 [INFO] [stderr] | [INFO] [stderr] 77 | if !(n % 10 == 0) { [INFO] [stderr] | ^^^^^^^^^^^^^^ help: try: `n % 10 != 0` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#nonminimal_bool [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.76s [INFO] running `"docker" "inspect" "807be518dabf2d206c2ae0c2afc272e193131741fd5b322ea185eb43e57d6883"` [INFO] running `"docker" "rm" "-f" "807be518dabf2d206c2ae0c2afc272e193131741fd5b322ea185eb43e57d6883"` [INFO] [stdout] 807be518dabf2d206c2ae0c2afc272e193131741fd5b322ea185eb43e57d6883