[INFO] crate iata_bcbp 0.1.1 is already in cache [INFO] extracting crate iata_bcbp 0.1.1 into work/ex/clippy-test-run/sources/stable/reg/iata_bcbp/0.1.1 [INFO] extracting crate iata_bcbp 0.1.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/iata_bcbp/0.1.1 [INFO] validating manifest of iata_bcbp-0.1.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 iata_bcbp-0.1.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 iata_bcbp-0.1.1 [INFO] finished frobbing iata_bcbp-0.1.1 [INFO] frobbed toml for iata_bcbp-0.1.1 written to work/ex/clippy-test-run/sources/stable/reg/iata_bcbp/0.1.1/Cargo.toml [INFO] started frobbing iata_bcbp-0.1.1 [INFO] finished frobbing iata_bcbp-0.1.1 [INFO] frobbed toml for iata_bcbp-0.1.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/iata_bcbp/0.1.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 iata_bcbp-0.1.1 against stable+rustflags=-Dclippy::into_iter_on_array for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/iata_bcbp/0.1.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 -Dclippy::into_iter_on_array" "-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] 65ce280b9538a8becead797f8184d28c8d42a5292e62e8ea812c3b8e09e108ce [INFO] running `"docker" "start" "-a" "65ce280b9538a8becead797f8184d28c8d42a5292e62e8ea812c3b8e09e108ce"` [INFO] [stderr] Compiling libc v0.2.48 [INFO] [stderr] Compiling memchr v2.1.3 [INFO] [stderr] Compiling regex v1.1.0 [INFO] [stderr] Checking iata_bcbp v0.1.1 (/opt/crater/workdir) [INFO] [stderr] error[E0602]: unknown lint: `clippy::into_iter_on_array` [INFO] [stderr] | [INFO] [stderr] = note: requested on the command line with `-D clippy::into_iter_on_array` [INFO] [stderr] [INFO] [stderr] error[E0602]: unknown lint: `clippy::into_iter_on_array` [INFO] [stderr] | [INFO] [stderr] = note: requested on the command line with `-D clippy::into_iter_on_array` [INFO] [stderr] [INFO] [stderr] error[E0602]: unknown lint: `clippy::into_iter_on_array` [INFO] [stderr] | [INFO] [stderr] = note: requested on the command line with `-D clippy::into_iter_on_array` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0602`. [INFO] [stderr] error: Could not compile `regex`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0602`. [INFO] [stderr] error: Could not compile `memchr`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0602`. [INFO] [stderr] error: Could not compile `libc`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: this if statement can be collapsed [INFO] [stderr] --> src/de/parser.rs:198:17 [INFO] [stderr] | [INFO] [stderr] 198 | / if conditional_item_scanner.remaining_len() > 0 { [INFO] [stderr] 199 | | if conditional_item_scanner.scan_str_field(field::Field::BeginningOfVersionNumber)? != ">" { [INFO] [stderr] 200 | | return Err(Error::InvalidStartOfVersionNumber); [INFO] [stderr] 201 | | } [INFO] [stderr] 202 | | } [INFO] [stderr] | |_________________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::collapsible_if)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#collapsible_if [INFO] [stderr] help: try [INFO] [stderr] | [INFO] [stderr] 198 | if conditional_item_scanner.remaining_len() > 0 && conditional_item_scanner.scan_str_field(field::Field::BeginningOfVersionNumber)? != ">" { [INFO] [stderr] 199 | return Err(Error::InvalidStartOfVersionNumber); [INFO] [stderr] 200 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: methods called `from_*` usually take no self; consider choosing a less ambiguous name [INFO] [stderr] --> src/bcbp/mod.rs:43:35 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn from_city_airport_code(&self) -> &str { [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::wrong_self_convention)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#wrong_self_convention [INFO] [stderr] [INFO] [stderr] warning: item `de::field::Field` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/de/field.rs:98:1 [INFO] [stderr] | [INFO] [stderr] 98 | / impl Field { [INFO] [stderr] 99 | | [INFO] [stderr] 100 | | /// The required length of the field. If zero, the field may be arbitrarily long. [INFO] [stderr] 101 | | pub fn len(self) -> usize { [INFO] [stderr] ... | [INFO] [stderr] 240 | | [INFO] [stderr] 241 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::len_without_is_empty)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_without_is_empty [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/de/parser.rs:93:44 [INFO] [stderr] | [INFO] [stderr] 93 | self.scan_str_field(field).map(|result| Some(result)) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `Some` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::redundant_closure)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/de/parser.rs:132:45 [INFO] [stderr] | [INFO] [stderr] 132 | self.scan_char_field(field).map(|c| Some(c)) [INFO] [stderr] | ^^^^^^^^^^^ help: remove closure as shown: `Some` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure [INFO] [stderr] [INFO] [stderr] warning: you don't need to add `&` to all patterns [INFO] [stderr] --> src/error.rs:36:9 [INFO] [stderr] | [INFO] [stderr] 36 | / match self { [INFO] [stderr] 37 | | &Error::UnexpectedEndOfInput(field) => [INFO] [stderr] 38 | | write!(f, "unexpected end-of-input before {}", field), [INFO] [stderr] 39 | | &Error::SubsectionTooLong => [INFO] [stderr] ... | [INFO] [stderr] 52 | | write!(f, "input includes data after a valid boarding pass"), [INFO] [stderr] 53 | | } [INFO] [stderr] | |_________^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::match_ref_pats)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_ref_pats [INFO] [stderr] help: instead of prefixing all patterns with `&`, you can dereference the expression [INFO] [stderr] | [INFO] [stderr] 36 | match *self { [INFO] [stderr] 37 | Error::UnexpectedEndOfInput(field) => [INFO] [stderr] 38 | write!(f, "unexpected end-of-input before {}", field), [INFO] [stderr] 39 | Error::SubsectionTooLong => [INFO] [stderr] 40 | write!(f, "subsection too long"), [INFO] [stderr] 41 | Error::ExpectedInteger(field) => [INFO] [stderr] ... [INFO] [stderr] [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "65ce280b9538a8becead797f8184d28c8d42a5292e62e8ea812c3b8e09e108ce"` [INFO] running `"docker" "rm" "-f" "65ce280b9538a8becead797f8184d28c8d42a5292e62e8ea812c3b8e09e108ce"` [INFO] [stdout] 65ce280b9538a8becead797f8184d28c8d42a5292e62e8ea812c3b8e09e108ce