[INFO] crate siren 1.0.3 is already in cache [INFO] extracting crate siren 1.0.3 into work/ex/clippy-test-run/sources/stable/reg/siren/1.0.3 [INFO] extracting crate siren 1.0.3 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/siren/1.0.3 [INFO] validating manifest of siren-1.0.3 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 siren-1.0.3 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 siren-1.0.3 [INFO] finished frobbing siren-1.0.3 [INFO] frobbed toml for siren-1.0.3 written to work/ex/clippy-test-run/sources/stable/reg/siren/1.0.3/Cargo.toml [INFO] started frobbing siren-1.0.3 [INFO] finished frobbing siren-1.0.3 [INFO] frobbed toml for siren-1.0.3 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/siren/1.0.3/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 siren-1.0.3 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/reg/siren/1.0.3:/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] b22b5c3c149339f7ded867c2111149769ad5c7c8a9df9f5b114ce90774acd0b3 [INFO] running `"docker" "start" "-a" "b22b5c3c149339f7ded867c2111149769ad5c7c8a9df9f5b114ce90774acd0b3"` [INFO] [stderr] Checking term_size v0.2.3 [INFO] [stderr] Checking clap v2.19.3 [INFO] [stderr] Checking siren v1.0.3 (/opt/crater/workdir) [INFO] [stderr] warning: returning the result of a let binding from a block. Consider returning the expression directly. [INFO] [stderr] --> src/parse_config.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | configuration [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::let_and_return)] on by default [INFO] [stderr] note: this expression can be directly returned [INFO] [stderr] --> src/parse_config.rs:25:25 [INFO] [stderr] | [INFO] [stderr] 25 | let configuration = match configparse(confstring) { [INFO] [stderr] | _________________________^ [INFO] [stderr] 26 | | Ok(c) => c, [INFO] [stderr] 27 | | Err(err) => { [INFO] [stderr] 28 | | println!("{}", err.description()); [INFO] [stderr] 29 | | Config { switch_cwd: false, tasks: Vec::new() } [INFO] [stderr] 30 | | } [INFO] [stderr] 31 | | }; [INFO] [stderr] | |_____^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stderr] [INFO] [stderr] warning: returning the result of a let binding from a block. Consider returning the expression directly. [INFO] [stderr] --> src/parse_config.rs:33:5 [INFO] [stderr] | [INFO] [stderr] 33 | configuration [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::let_and_return)] on by default [INFO] [stderr] note: this expression can be directly returned [INFO] [stderr] --> src/parse_config.rs:25:25 [INFO] [stderr] | [INFO] [stderr] 25 | let configuration = match configparse(confstring) { [INFO] [stderr] | _________________________^ [INFO] [stderr] 26 | | Ok(c) => c, [INFO] [stderr] 27 | | Err(err) => { [INFO] [stderr] 28 | | println!("{}", err.description()); [INFO] [stderr] 29 | | Config { switch_cwd: false, tasks: Vec::new() } [INFO] [stderr] 30 | | } [INFO] [stderr] 31 | | }; [INFO] [stderr] | |_____^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/execute.rs:16:22 [INFO] [stderr] | [INFO] [stderr] 16 | Yellow.paint(format!("{}", task.name)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `task.name.to_string()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_format)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/execute.rs:26:22 [INFO] [stderr] | [INFO] [stderr] 26 | Yellow.paint(format!("{}", task.name)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `task.name.to_string()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:16:39 [INFO] [stderr] | [INFO] [stderr] 16 | let mut v: Vec<&str> = path.split("/").collect(); [INFO] [stderr] | ^^^ help: try using a char instead: `'/'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/main.rs:54:20 [INFO] [stderr] | [INFO] [stderr] 54 | let cwd_path = match conf.switch_cwd { [INFO] [stderr] | ____________________^ [INFO] [stderr] 55 | | true => parentpath(matches.value_of("file").unwrap_or("./Sirenfile.json").to_owned()), [INFO] [stderr] 56 | | false => String::from(".") [INFO] [stderr] 57 | | }; [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if conf.switch_cwd { parentpath(matches.value_of("file").unwrap_or("./Sirenfile.json").to_owned()) } else { String::from(".") }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/execute.rs:16:22 [INFO] [stderr] | [INFO] [stderr] 16 | Yellow.paint(format!("{}", task.name)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `task.name.to_string()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_format)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: useless use of `format!` [INFO] [stderr] --> src/execute.rs:26:22 [INFO] [stderr] | [INFO] [stderr] 26 | Yellow.paint(format!("{}", task.name)), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using .to_string(): `task.name.to_string()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/main.rs:16:39 [INFO] [stderr] | [INFO] [stderr] 16 | let mut v: Vec<&str> = path.split("/").collect(); [INFO] [stderr] | ^^^ help: try using a char instead: `'/'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/main.rs:54:20 [INFO] [stderr] | [INFO] [stderr] 54 | let cwd_path = match conf.switch_cwd { [INFO] [stderr] | ____________________^ [INFO] [stderr] 55 | | true => parentpath(matches.value_of("file").unwrap_or("./Sirenfile.json").to_owned()), [INFO] [stderr] 56 | | false => String::from(".") [INFO] [stderr] 57 | | }; [INFO] [stderr] | |_____^ help: consider using an if/else expression: `if conf.switch_cwd { parentpath(matches.value_of("file").unwrap_or("./Sirenfile.json").to_owned()) } else { String::from(".") }` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_bool)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_bool [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.80s [INFO] running `"docker" "inspect" "b22b5c3c149339f7ded867c2111149769ad5c7c8a9df9f5b114ce90774acd0b3"` [INFO] running `"docker" "rm" "-f" "b22b5c3c149339f7ded867c2111149769ad5c7c8a9df9f5b114ce90774acd0b3"` [INFO] [stdout] b22b5c3c149339f7ded867c2111149769ad5c7c8a9df9f5b114ce90774acd0b3