[INFO] crate riquid 0.0.1 is already in cache [INFO] extracting crate riquid 0.0.1 into work/ex/clippy-test-run/sources/stable/reg/riquid/0.0.1 [INFO] extracting crate riquid 0.0.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/riquid/0.0.1 [INFO] validating manifest of riquid-0.0.1 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 riquid-0.0.1 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 riquid-0.0.1 [INFO] finished frobbing riquid-0.0.1 [INFO] frobbed toml for riquid-0.0.1 written to work/ex/clippy-test-run/sources/stable/reg/riquid/0.0.1/Cargo.toml [INFO] started frobbing riquid-0.0.1 [INFO] finished frobbing riquid-0.0.1 [INFO] frobbed toml for riquid-0.0.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/riquid/0.0.1/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 riquid-0.0.1 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/reg/riquid/0.0.1:/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] 28f5303cb71f36c090b02ea950147f57bd05038d5ea51c1b3ca5be7f9954d777 [INFO] running `"docker" "start" "-a" "28f5303cb71f36c090b02ea950147f57bd05038d5ea51c1b3ca5be7f9954d777"` [INFO] [stderr] Checking riquid v0.0.1 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/scanner.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [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/scanner.rs:13:13 [INFO] [stderr] | [INFO] [stderr] 13 | source: source, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: replace it with: `source` [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: struct is never constructed: `Scanner` [INFO] [stderr] --> src/scanner.rs:4:1 [INFO] [stderr] | [INFO] [stderr] 4 | pub struct Scanner<'t> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: method is never used: `new` [INFO] [stderr] --> src/scanner.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | pub fn new<'a>(source: &'a str) -> Scanner<'a> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `position` [INFO] [stderr] --> src/scanner.rs:19:5 [INFO] [stderr] | [INFO] [stderr] 19 | pub fn position(&self) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `is_eos` [INFO] [stderr] --> src/scanner.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | pub fn is_eos(&self) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `skip` [INFO] [stderr] --> src/scanner.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | pub fn skip(&self, n: usize) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `rest` [INFO] [stderr] --> src/scanner.rs:32:5 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn rest(&self) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_char` [INFO] [stderr] --> src/scanner.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | pub fn get_char(&self) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `scan` [INFO] [stderr] --> src/scanner.rs:47:5 [INFO] [stderr] | [INFO] [stderr] 47 | pub fn scan(&self, pattern: &::regex::Regex) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `get_match` [INFO] [stderr] --> src/scanner.rs:56:5 [INFO] [stderr] | [INFO] [stderr] 56 | fn get_match<'a>(&'a self, source: &'a str, captures: &::regex::Captures) -> Option<&str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `leading_chars` [INFO] [stderr] --> src/scanner.rs:69:5 [INFO] [stderr] | [INFO] [stderr] 69 | fn leading_chars(&self, string: &str) -> usize { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `raw` [INFO] [stderr] --> src/scanner.rs:73:5 [INFO] [stderr] | [INFO] [stderr] 73 | fn raw(&self) -> &str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [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/scanner.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | / pub fn new<'a>(source: &'a str) -> Scanner<'a> { [INFO] [stderr] 12 | | Scanner { [INFO] [stderr] 13 | | source: source, [INFO] [stderr] 14 | | index: Cell::new(0), [INFO] [stderr] 15 | | length: source.len() [INFO] [stderr] 16 | | } [INFO] [stderr] 17 | | } [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: explicit lifetimes given in parameter types where they could be elided (or replaced with `'_` if needed by type declaration) [INFO] [stderr] --> src/scanner.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | / pub fn new<'a>(source: &'a str) -> Scanner<'a> { [INFO] [stderr] 12 | | Scanner { [INFO] [stderr] 13 | | source: source, [INFO] [stderr] 14 | | index: Cell::new(0), [INFO] [stderr] 15 | | length: source.len() [INFO] [stderr] 16 | | } [INFO] [stderr] 17 | | } [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] Finished dev [unoptimized + debuginfo] target(s) in 1.29s [INFO] running `"docker" "inspect" "28f5303cb71f36c090b02ea950147f57bd05038d5ea51c1b3ca5be7f9954d777"` [INFO] running `"docker" "rm" "-f" "28f5303cb71f36c090b02ea950147f57bd05038d5ea51c1b3ca5be7f9954d777"` [INFO] [stdout] 28f5303cb71f36c090b02ea950147f57bd05038d5ea51c1b3ca5be7f9954d777