[INFO] updating cached repository intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit [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-explicit [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit" "work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit" "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-explicit"` [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-explicit'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 8694deeb250e3376fd1266934f55afed32feb948 [INFO] sha for GitHub repo intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit: 8694deeb250e3376fd1266934f55afed32feb948 [INFO] validating manifest of intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit 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-explicit 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-explicit [INFO] finished frobbing intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit [INFO] frobbed toml for intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit written to work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit/Cargo.toml [INFO] started frobbing intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit [INFO] finished frobbing intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit [INFO] frobbed toml for intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit 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-explicit/Cargo.toml [INFO] crate intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit 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-explicit against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-4/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/intrepion/example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit:/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] daee25e715311d12e0bf6046a8116456b7420b57397a0f2b0e45b4a981703e09 [INFO] running `"docker" "start" "-a" "daee25e715311d12e0bf6046a8116456b7420b57397a0f2b0e45b4a981703e09"` [INFO] [stderr] Checking example-x-rust-x-rustbyexample-com-x-scope-lifetime-explicit v0.1.0 (/opt/crater/workdir) [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:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / fn print_refs<'a, 'b>(x: &'a i32, y: &'b i32) { [INFO] [stderr] 5 | | println!("x is {} and y is {}", x, y); [INFO] [stderr] 6 | | } [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:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | fn print_refs<'a, 'b>(x: &'a i32, y: &'b 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: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:4:38 [INFO] [stderr] | [INFO] [stderr] 4 | fn print_refs<'a, 'b>(x: &'a i32, y: &'b 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: this lifetime isn't used in the function definition [INFO] [stderr] --> src/main.rs:9:18 [INFO] [stderr] | [INFO] [stderr] 9 | fn failed_borrow<'a>() { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::extra_unused_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [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:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | / fn print_refs<'a, 'b>(x: &'a i32, y: &'b i32) { [INFO] [stderr] 5 | | println!("x is {} and y is {}", x, y); [INFO] [stderr] 6 | | } [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:4:26 [INFO] [stderr] | [INFO] [stderr] 4 | fn print_refs<'a, 'b>(x: &'a i32, y: &'b 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: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/main.rs:4:38 [INFO] [stderr] | [INFO] [stderr] 4 | fn print_refs<'a, 'b>(x: &'a i32, y: &'b 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: this lifetime isn't used in the function definition [INFO] [stderr] --> src/main.rs:9:18 [INFO] [stderr] | [INFO] [stderr] 9 | fn failed_borrow<'a>() { [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::extra_unused_lifetimes)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#extra_unused_lifetimes [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.41s [INFO] running `"docker" "inspect" "daee25e715311d12e0bf6046a8116456b7420b57397a0f2b0e45b4a981703e09"` [INFO] running `"docker" "rm" "-f" "daee25e715311d12e0bf6046a8116456b7420b57397a0f2b0e45b4a981703e09"` [INFO] [stdout] daee25e715311d12e0bf6046a8116456b7420b57397a0f2b0e45b4a981703e09