[INFO] updating cached repository bschwind/file-watcher [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/bschwind/file-watcher [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/bschwind/file-watcher" "work/ex/clippy-test-run/sources/stable/gh/bschwind/file-watcher"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/bschwind/file-watcher'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/bschwind/file-watcher" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bschwind/file-watcher"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bschwind/file-watcher'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 036bdfe9e43667b60771b169c34f7ecc09156ee3 [INFO] sha for GitHub repo bschwind/file-watcher: 036bdfe9e43667b60771b169c34f7ecc09156ee3 [INFO] validating manifest of bschwind/file-watcher 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 bschwind/file-watcher 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 bschwind/file-watcher [INFO] finished frobbing bschwind/file-watcher [INFO] frobbed toml for bschwind/file-watcher written to work/ex/clippy-test-run/sources/stable/gh/bschwind/file-watcher/Cargo.toml [INFO] started frobbing bschwind/file-watcher [INFO] finished frobbing bschwind/file-watcher [INFO] frobbed toml for bschwind/file-watcher written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/bschwind/file-watcher/Cargo.toml [INFO] crate bschwind/file-watcher 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 bschwind/file-watcher against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-1/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/gh/bschwind/file-watcher:/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] 96e05f27fbd1ed4ae0fafaa8c510a8a90cbd13c3e87fe07773510d6c29825098 [INFO] running `"docker" "start" "-a" "96e05f27fbd1ed4ae0fafaa8c510a8a90cbd13c3e87fe07773510d6c29825098"` [INFO] [stderr] Checking utf-8 v0.7.0 [INFO] [stderr] Checking iovec v0.1.0 [INFO] [stderr] Checking filetime v0.1.10 [INFO] [stderr] Checking inotify v0.3.0 [INFO] [stderr] Checking nix v0.5.1 [INFO] [stderr] Checking base64 v0.4.1 [INFO] [stderr] Checking miow v0.1.5 [INFO] [stderr] Checking bytes v0.4.2 [INFO] [stderr] Checking mio v0.6.6 [INFO] [stderr] Checking tokio-io v0.1.1 [INFO] [stderr] Checking tungstenite v0.2.2 [INFO] [stderr] Checking tokio-core v0.1.6 [INFO] [stderr] Checking tokio-tungstenite v0.1.2 [INFO] [stderr] Checking mio v0.5.1 [INFO] [stderr] Checking notify v4.0.1 [INFO] [stderr] Checking ws-server 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:57:6 [INFO] [stderr] | [INFO] [stderr] 57 | match event { [INFO] [stderr] | _____________________^ [INFO] [stderr] 58 | | DebouncedEvent::Write(path) => { [INFO] [stderr] 59 | | let path_string: String = path.to_str().unwrap().to_string(); [INFO] [stderr] 60 | | [INFO] [stderr] ... | [INFO] [stderr] 68 | | _ => {} [INFO] [stderr] 69 | | } [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] 57 | if let DebouncedEvent::Write(path) = event { [INFO] [stderr] 58 | let path_string: String = path.to_str().unwrap().to_string(); [INFO] [stderr] 59 | [INFO] [stderr] 60 | let mut conns = file_connections_inner.lock().unwrap(); [INFO] [stderr] 61 | let iter = conns.iter_mut().map(|(_, v)| v); [INFO] [stderr] 62 | [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:57:6 [INFO] [stderr] | [INFO] [stderr] 57 | match event { [INFO] [stderr] | _____________________^ [INFO] [stderr] 58 | | DebouncedEvent::Write(path) => { [INFO] [stderr] 59 | | let path_string: String = path.to_str().unwrap().to_string(); [INFO] [stderr] 60 | | [INFO] [stderr] ... | [INFO] [stderr] 68 | | _ => {} [INFO] [stderr] 69 | | } [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] 57 | if let DebouncedEvent::Write(path) = event { [INFO] [stderr] 58 | let path_string: String = path.to_str().unwrap().to_string(); [INFO] [stderr] 59 | [INFO] [stderr] 60 | let mut conns = file_connections_inner.lock().unwrap(); [INFO] [stderr] 61 | let iter = conns.iter_mut().map(|(_, v)| v); [INFO] [stderr] 62 | [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.01s [INFO] running `"docker" "inspect" "96e05f27fbd1ed4ae0fafaa8c510a8a90cbd13c3e87fe07773510d6c29825098"` [INFO] running `"docker" "rm" "-f" "96e05f27fbd1ed4ae0fafaa8c510a8a90cbd13c3e87fe07773510d6c29825098"` [INFO] [stdout] 96e05f27fbd1ed4ae0fafaa8c510a8a90cbd13c3e87fe07773510d6c29825098