[INFO] updating cached repository ayosec/sysinfo-lemonbar [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/ayosec/sysinfo-lemonbar [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/ayosec/sysinfo-lemonbar" "work/ex/clippy-test-run/sources/stable/gh/ayosec/sysinfo-lemonbar"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable/gh/ayosec/sysinfo-lemonbar'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/ayosec/sysinfo-lemonbar" "work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/ayosec/sysinfo-lemonbar"` [INFO] [stderr] Cloning into 'work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/ayosec/sysinfo-lemonbar'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 201fefe747405be01d4f8eaf87953b5950b2fcb3 [INFO] sha for GitHub repo ayosec/sysinfo-lemonbar: 201fefe747405be01d4f8eaf87953b5950b2fcb3 [INFO] validating manifest of ayosec/sysinfo-lemonbar 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 ayosec/sysinfo-lemonbar 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 ayosec/sysinfo-lemonbar [INFO] finished frobbing ayosec/sysinfo-lemonbar [INFO] frobbed toml for ayosec/sysinfo-lemonbar written to work/ex/clippy-test-run/sources/stable/gh/ayosec/sysinfo-lemonbar/Cargo.toml [INFO] started frobbing ayosec/sysinfo-lemonbar [INFO] finished frobbing ayosec/sysinfo-lemonbar [INFO] frobbed toml for ayosec/sysinfo-lemonbar written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/gh/ayosec/sysinfo-lemonbar/Cargo.toml [INFO] crate ayosec/sysinfo-lemonbar 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 ayosec/sysinfo-lemonbar 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/ayosec/sysinfo-lemonbar:/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] a667aa1a1b07574d3e50ecd5da03f2f091d597ae5656329e2e72fac05b16ff83 [INFO] running `"docker" "start" "-a" "a667aa1a1b07574d3e50ecd5da03f2f091d597ae5656329e2e72fac05b16ff83"` [INFO] [stderr] Checking gumdrop v0.3.0 [INFO] [stderr] Compiling gumdrop_derive v0.3.0 [INFO] [stderr] Checking sysinfo-lemonbar v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/filesystem.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | path: path, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `path` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/filesystem.rs:31:9 [INFO] [stderr] | [INFO] [stderr] 31 | path: path, [INFO] [stderr] | ^^^^^^^^^^ help: replace it with: `path` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_field_names)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead [INFO] [stderr] --> src/options.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'std::ascii::AsciiExt': use inherent methods instead [INFO] [stderr] --> src/options.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(deprecated)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ascii::AsciiExt` [INFO] [stderr] --> src/options.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::ascii::AsciiExt` [INFO] [stderr] --> src/options.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::ascii::AsciiExt; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [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/filesystem.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | / fn read_fs<'a>(path: &'a str) -> io::Result { [INFO] [stderr] 22 | | let mut stat; [INFO] [stderr] 23 | | unsafe { [INFO] [stderr] 24 | | stat = mem::zeroed(); [INFO] [stderr] ... | [INFO] [stderr] 34 | | }) [INFO] [stderr] 35 | | } [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: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/info.rs:41:20 [INFO] [stderr] | [INFO] [stderr] 41 | num_procs: si.procs as u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: try: `u64::from(si.procs)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)` [INFO] [stderr] --> src/info.rs:50:34 [INFO] [stderr] | [INFO] [stderr] 50 | if let Some(value) = line.split_whitespace().skip(1).next() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::iter_skip_next)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next [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/filesystem.rs:21:1 [INFO] [stderr] | [INFO] [stderr] 21 | / fn read_fs<'a>(path: &'a str) -> io::Result { [INFO] [stderr] 22 | | let mut stat; [INFO] [stderr] 23 | | unsafe { [INFO] [stderr] 24 | | stat = mem::zeroed(); [INFO] [stderr] ... | [INFO] [stderr] 34 | | }) [INFO] [stderr] 35 | | } [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: casting u16 to u64 may become silently lossy if types change [INFO] [stderr] --> src/info.rs:41:20 [INFO] [stderr] | [INFO] [stderr] 41 | num_procs: si.procs as u64, [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: try: `u64::from(si.procs)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::cast_lossless)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless [INFO] [stderr] [INFO] [stderr] warning: called `skip(x).next()` on an iterator. This is more succinctly expressed by calling `nth(x)` [INFO] [stderr] --> src/info.rs:50:34 [INFO] [stderr] | [INFO] [stderr] 50 | if let Some(value) = line.split_whitespace().skip(1).next() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::iter_skip_next)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_skip_next [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.74s [INFO] running `"docker" "inspect" "a667aa1a1b07574d3e50ecd5da03f2f091d597ae5656329e2e72fac05b16ff83"` [INFO] running `"docker" "rm" "-f" "a667aa1a1b07574d3e50ecd5da03f2f091d597ae5656329e2e72fac05b16ff83"` [INFO] [stdout] a667aa1a1b07574d3e50ecd5da03f2f091d597ae5656329e2e72fac05b16ff83