[INFO] updating cached repository JuanPotato/sed_bot [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/JuanPotato/sed_bot [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/JuanPotato/sed_bot" "work/ex/clippy-test-run/sources/stable/gh/JuanPotato/sed_bot"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/JuanPotato/sed_bot'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/JuanPotato/sed_bot" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/JuanPotato/sed_bot"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/JuanPotato/sed_bot'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 853012425f98aedcc33bb7695056ae2baf876f1e [INFO] sha for GitHub repo JuanPotato/sed_bot: 853012425f98aedcc33bb7695056ae2baf876f1e [INFO] validating manifest of JuanPotato/sed_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 JuanPotato/sed_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 JuanPotato/sed_bot [INFO] finished frobbing JuanPotato/sed_bot [INFO] frobbed toml for JuanPotato/sed_bot written to work/ex/clippy-test-run/sources/stable/gh/JuanPotato/sed_bot/Cargo.toml [INFO] started frobbing JuanPotato/sed_bot [INFO] finished frobbing JuanPotato/sed_bot [INFO] frobbed toml for JuanPotato/sed_bot written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/JuanPotato/sed_bot/Cargo.toml [INFO] crate JuanPotato/sed_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 JuanPotato/sed_bot against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/JuanPotato/sed_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] 938c8bc3859aa11ee40845b1bd71bf0a79db512f7699c0d04ac9cf691a196e08 [INFO] running `"docker" "start" "-a" "938c8bc3859aa11ee40845b1bd71bf0a79db512f7699c0d04ac9cf691a196e08"` [INFO] [stderr] Checking num_cpus v1.6.2 [INFO] [stderr] Checking rand v0.3.16 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Compiling filetime v0.2.1 [INFO] [stderr] Checking base64 v0.9.2 [INFO] [stderr] Checking want v0.0.4 [INFO] [stderr] Checking bytes v0.4.8 [INFO] [stderr] Compiling bzip2-sys v0.1.6 [INFO] [stderr] Checking openssl-sys v0.9.19 [INFO] [stderr] Compiling bzip2 v0.3.3 [INFO] [stderr] Checking tokio-threadpool v0.1.3 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Compiling tar v0.4.15 [INFO] [stderr] Checking openssl v0.9.19 [INFO] [stderr] Checking tokio-io v0.1.6 [INFO] [stderr] Checking backtrace v0.3.8 [INFO] [stderr] Compiling libpcre-sys v0.2.2 [INFO] [stderr] Checking error-chain v0.11.0 [INFO] [stderr] Checking tokio-reactor v0.1.1 [INFO] [stderr] Checking tokio-fs v0.1.0 [INFO] [stderr] warning: redundant linker flag specified for library `pcre` [INFO] [stderr] [INFO] [stderr] Checking pcre v0.2.3 [INFO] [stderr] Checking telegram-bot-raw v0.6.1 [INFO] [stderr] Checking native-tls v0.1.4 [INFO] [stderr] Checking tokio-udp v0.1.0 [INFO] [stderr] Checking tokio-tcp v0.1.0 [INFO] [stderr] Checking tokio v0.1.6 [INFO] [stderr] Checking tokio-core v0.1.17 [INFO] [stderr] Checking tokio-proto v0.1.1 [INFO] [stderr] Checking tokio-tls v0.1.4 [INFO] [stderr] Checking hyper v0.11.27 [INFO] [stderr] Checking hyper-tls v0.1.3 [INFO] [stderr] Checking telegram-bot v0.6.1 [INFO] [stderr] Checking sed_bot v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/main.rs:54:21 [INFO] [stderr] | [INFO] [stderr] 54 | / match handle_noreply_message(&text, &past_messages) { [INFO] [stderr] 55 | | Ok(Some((text, id))) => { [INFO] [stderr] 56 | | api.spawn( [INFO] [stderr] 57 | | SendMessage::new(message.chat, text) [INFO] [stderr] ... | [INFO] [stderr] 62 | | _ => {} [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 54 | if let Ok(Some((text, id))) = handle_noreply_message(&text, &past_messages) { [INFO] [stderr] 55 | api.spawn( [INFO] [stderr] 56 | SendMessage::new(message.chat, text) [INFO] [stderr] 57 | .reply_to(id) [INFO] [stderr] 58 | .parse_mode(ParseMode::Markdown) [INFO] [stderr] 59 | .disable_preview()); [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `GROUPS` [INFO] [stderr] --> src/main.rs:322:14 [INFO] [stderr] | [INFO] [stderr] 322 | for i in 0..pcre_match.string_count() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 322 | for (i, ) in GROUPS.iter().enumerate().take(pcre_match.string_count()) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` [INFO] [stderr] --> src/main.rs:54:21 [INFO] [stderr] | [INFO] [stderr] 54 | / match handle_noreply_message(&text, &past_messages) { [INFO] [stderr] 55 | | Ok(Some((text, id))) => { [INFO] [stderr] 56 | | api.spawn( [INFO] [stderr] 57 | | SendMessage::new(message.chat, text) [INFO] [stderr] ... | [INFO] [stderr] 62 | | _ => {} [INFO] [stderr] 63 | | } [INFO] [stderr] | |_____________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_match)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 54 | if let Ok(Some((text, id))) = handle_noreply_message(&text, &past_messages) { [INFO] [stderr] 55 | api.spawn( [INFO] [stderr] 56 | SendMessage::new(message.chat, text) [INFO] [stderr] 57 | .reply_to(id) [INFO] [stderr] 58 | .parse_mode(ParseMode::Markdown) [INFO] [stderr] 59 | .disable_preview()); [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] warning: the loop variable `i` is used to index `GROUPS` [INFO] [stderr] --> src/main.rs:322:14 [INFO] [stderr] | [INFO] [stderr] 322 | for i in 0..pcre_match.string_count() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_range_loop)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_range_loop [INFO] [stderr] help: consider using an iterator [INFO] [stderr] | [INFO] [stderr] 322 | for (i, ) in GROUPS.iter().enumerate().take(pcre_match.string_count()) { [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 47.43s [INFO] running `"docker" "inspect" "938c8bc3859aa11ee40845b1bd71bf0a79db512f7699c0d04ac9cf691a196e08"` [INFO] running `"docker" "rm" "-f" "938c8bc3859aa11ee40845b1bd71bf0a79db512f7699c0d04ac9cf691a196e08"` [INFO] [stdout] 938c8bc3859aa11ee40845b1bd71bf0a79db512f7699c0d04ac9cf691a196e08