[INFO] updating cached repository atsushi130/tabelog-bot [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/atsushi130/tabelog-bot [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/atsushi130/tabelog-bot" "work/ex/clippy-test-run/sources/stable/gh/atsushi130/tabelog-bot"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/atsushi130/tabelog-bot'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/atsushi130/tabelog-bot" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/atsushi130/tabelog-bot"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/atsushi130/tabelog-bot'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 931537fca8d768fe7df805e30a104e6bd9125d65 [INFO] sha for GitHub repo atsushi130/tabelog-bot: 931537fca8d768fe7df805e30a104e6bd9125d65 [INFO] validating manifest of atsushi130/tabelog-bot 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 atsushi130/tabelog-bot 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 atsushi130/tabelog-bot [INFO] finished frobbing atsushi130/tabelog-bot [INFO] frobbed toml for atsushi130/tabelog-bot written to work/ex/clippy-test-run/sources/stable/gh/atsushi130/tabelog-bot/Cargo.toml [INFO] started frobbing atsushi130/tabelog-bot [INFO] finished frobbing atsushi130/tabelog-bot [INFO] frobbed toml for atsushi130/tabelog-bot written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/atsushi130/tabelog-bot/Cargo.toml [INFO] crate atsushi130/tabelog-bot 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 atsushi130/tabelog-bot against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/atsushi130/tabelog-bot:/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] 1bdbcf98b692f5ace0f436dc37aacc54e4d27b73d90a7c22b11f87d165ee6ab2 [INFO] running `"docker" "start" "-a" "1bdbcf98b692f5ace0f436dc37aacc54e4d27b73d90a7c22b11f87d165ee6ab2"` [INFO] [stderr] Checking serde_json v0.9.10 [INFO] [stderr] Checking hyper v0.10.13 [INFO] [stderr] Checking tungstenite v0.2.4 [INFO] [stderr] Checking hyper-native-tls v0.2.4 [INFO] [stderr] Checking reqwest v0.4.0 [INFO] [stderr] Checking tabelog_searcher v0.1.0 [INFO] [stderr] Checking slack_api v0.18.0 [INFO] [stderr] Checking slack v0.19.0 [INFO] [stderr] Checking tabelog_bot v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: module has the same name as its containing module [INFO] [stderr] --> src/tabelog_bot/mod.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | mod tabelog_bot; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::module_inception)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/tabelog_bot/tabelog_bot.rs:58:17 [INFO] [stderr] | [INFO] [stderr] 58 | / match results.is_empty() { [INFO] [stderr] 59 | | true => self.send(cli, channel, "Not found."), [INFO] [stderr] 60 | | false => results.iter().for_each(|result| self.send(cli, channel, result.as_str())) [INFO] [stderr] 61 | | } [INFO] [stderr] | |_________________^ help: consider using an if/else expression: `if results.is_empty() { self.send(cli, channel, "Not found.") } else { results.iter().for_each(|result| self.send(cli, channel, result.as_str())) }` [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: module has the same name as its containing module [INFO] [stderr] --> src/tabelog_bot/mod.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | mod tabelog_bot; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::module_inception)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_inception [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to match on a boolean expression [INFO] [stderr] --> src/tabelog_bot/tabelog_bot.rs:58:17 [INFO] [stderr] | [INFO] [stderr] 58 | / match results.is_empty() { [INFO] [stderr] 59 | | true => self.send(cli, channel, "Not found."), [INFO] [stderr] 60 | | false => results.iter().for_each(|result| self.send(cli, channel, result.as_str())) [INFO] [stderr] 61 | | } [INFO] [stderr] | |_________________^ help: consider using an if/else expression: `if results.is_empty() { self.send(cli, channel, "Not found.") } else { results.iter().for_each(|result| self.send(cli, channel, result.as_str())) }` [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 45.62s [INFO] running `"docker" "inspect" "1bdbcf98b692f5ace0f436dc37aacc54e4d27b73d90a7c22b11f87d165ee6ab2"` [INFO] running `"docker" "rm" "-f" "1bdbcf98b692f5ace0f436dc37aacc54e4d27b73d90a7c22b11f87d165ee6ab2"` [INFO] [stdout] 1bdbcf98b692f5ace0f436dc37aacc54e4d27b73d90a7c22b11f87d165ee6ab2