[INFO] updating cached repository intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision" "work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 15b3d161d01f2b7312741630639a9eb4bc1c281d [INFO] sha for GitHub repo intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision: 15b3d161d01f2b7312741630639a9eb4bc1c281d [INFO] validating manifest of intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision 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 intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision 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 intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision [INFO] finished frobbing intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision [INFO] frobbed toml for intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision written to work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision/Cargo.toml [INFO] started frobbing intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision [INFO] finished frobbing intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision [INFO] frobbed toml for intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision/Cargo.toml [INFO] crate intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision 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 intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision 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-7/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/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision:/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] 48a0d5b6655e4b6b0651ed67ace2d9c106c53f29e6a3d90be9f360a943c16b35 [INFO] running `"docker" "start" "-a" "48a0d5b6655e4b6b0651ed67ace2d9c106c53f29e6a3d90be9f360a943c16b35"` [INFO] [stderr] Checking example-x-rust-x-rustbyexample-com-x-scope-lifetime-elision v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:3:20 [INFO] [stderr] | [INFO] [stderr] 3 | fn elided_input(x: &i32) { [INFO] [stderr] | ^^^^ help: consider passing by value instead: `i32` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/main.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | / fn annotated_input<'a>(x: &'a i32) { [INFO] [stderr] 8 | | println!("`annotated_input`: {}", x) [INFO] [stderr] 9 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:7:27 [INFO] [stderr] | [INFO] [stderr] 7 | fn annotated_input<'a>(x: &'a i32) { [INFO] [stderr] | ^^^^^^^ help: consider passing by value instead: `i32` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/main.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | fn annotated_pass<'a>(x: &'a i32) -> &'a i32 { x } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:3:20 [INFO] [stderr] | [INFO] [stderr] 3 | fn elided_input(x: &i32) { [INFO] [stderr] | ^^^^ help: consider passing by value instead: `i32` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/main.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | / fn annotated_input<'a>(x: &'a i32) { [INFO] [stderr] 8 | | println!("`annotated_input`: {}", x) [INFO] [stderr] 9 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:7:27 [INFO] [stderr] | [INFO] [stderr] 7 | fn annotated_input<'a>(x: &'a i32) { [INFO] [stderr] | ^^^^^^^ help: consider passing by value instead: `i32` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/main.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | fn annotated_pass<'a>(x: &'a i32) -> &'a i32 { x } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.25s [INFO] running `"docker" "inspect" "48a0d5b6655e4b6b0651ed67ace2d9c106c53f29e6a3d90be9f360a943c16b35"` [INFO] running `"docker" "rm" "-f" "48a0d5b6655e4b6b0651ed67ace2d9c106c53f29e6a3d90be9f360a943c16b35"` [INFO] [stdout] 48a0d5b6655e4b6b0651ed67ace2d9c106c53f29e6a3d90be9f360a943c16b35