[INFO] crate optional 0.5.0 is already in cache [INFO] extracting crate optional 0.5.0 into work/ex/clippy-test-run/sources/stable/reg/optional/0.5.0 [INFO] extracting crate optional 0.5.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/optional/0.5.0 [INFO] validating manifest of optional-0.5.0 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 optional-0.5.0 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 optional-0.5.0 [INFO] finished frobbing optional-0.5.0 [INFO] frobbed toml for optional-0.5.0 written to work/ex/clippy-test-run/sources/stable/reg/optional/0.5.0/Cargo.toml [INFO] started frobbing optional-0.5.0 [INFO] finished frobbing optional-0.5.0 [INFO] frobbed toml for optional-0.5.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/optional/0.5.0/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 optional-0.5.0 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-0/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/optional/0.5.0:/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] c53ded7cf82dccf61611af9db032ae0828e0d0c8234666f2ae25de194cc4f1b9 [INFO] running `"docker" "start" "-a" "c53ded7cf82dccf61611af9db032ae0828e0d0c8234666f2ae25de194cc4f1b9"` [INFO] [stderr] Compiling serde v1.0.85 [INFO] [stderr] Compiling ryu v0.2.7 [INFO] [stderr] Checking optional v0.5.0 (/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: 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 `ryu`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:91:26 [INFO] [stderr] | [INFO] [stderr] 91 | const OB_SOME_TRUE_REF: &'static Option = &OB_SOME_TRUE; [INFO] [stderr] | -^^^^^^^------------- help: consider removing `'static`: `&Option` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::const_static_lifetime)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:92:27 [INFO] [stderr] | [INFO] [stderr] 92 | const OB_SOME_FALSE_REF: &'static Option = &OB_SOME_FALSE; [INFO] [stderr] | -^^^^^^^------------- help: consider removing `'static`: `&Option` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [INFO] [stderr] [INFO] [stderr] warning: Constants have by default a `'static` lifetime [INFO] [stderr] --> src/lib.rs:93:21 [INFO] [stderr] | [INFO] [stderr] 93 | const OB_NONE_REF: &'static Option = &OB_NONE; [INFO] [stderr] | -^^^^^^^------------- help: consider removing `'static`: `&Option` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#const_static_lifetime [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 `serde`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: you are deriving `Hash` but have implemented `PartialEq` explicitly [INFO] [stderr] --> src/lib.rs:73:43 [INFO] [stderr] | [INFO] [stderr] 73 | #[derive(Copy, Clone, PartialEq, Eq, Ord, Hash)] [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::derive_hash_xor_eq)] on by default [INFO] [stderr] note: `PartialEq` implemented here [INFO] [stderr] --> src/lib.rs:109:1 [INFO] [stderr] | [INFO] [stderr] 109| / impl<'a> PartialEq for &'a OptionBool { [INFO] [stderr] 110| | #[inline] [INFO] [stderr] 111| | fn eq(&self, other: &OptionBool) -> bool { [INFO] [stderr] 112| | match (*self, other) { [INFO] [stderr] ... | [INFO] [stderr] 116| | } [INFO] [stderr] 117| | } [INFO] [stderr] | |_^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_hash_xor_eq [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:232:20 [INFO] [stderr] | [INFO] [stderr] 232 | pub fn is_some(&self) -> bool { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::trivially_copy_pass_by_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:251:20 [INFO] [stderr] | [INFO] [stderr] 251 | pub fn is_none(&self) -> bool { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:282:19 [INFO] [stderr] | [INFO] [stderr] 282 | pub fn expect(&self, msg: &str) -> bool { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:313:19 [INFO] [stderr] | [INFO] [stderr] 313 | pub fn unwrap(&self) -> bool { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: this argument is passed by reference, but would be more efficient if passed by value [INFO] [stderr] --> src/lib.rs:329:22 [INFO] [stderr] | [INFO] [stderr] 329 | pub fn unwrap_or(&self, def: bool) -> bool { [INFO] [stderr] | ^^^^^ help: consider passing by value instead: `self` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#trivially_copy_pass_by_ref [INFO] [stderr] [INFO] [stderr] warning: replacing an `Option` with `None` [INFO] [stderr] --> src/lib.rs:762:9 [INFO] [stderr] | [INFO] [stderr] 762 | mem::replace(self, None) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: consider `Option::take()` instead: `self.take()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::mem_replace_option_with_none)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_option_with_none [INFO] [stderr] [INFO] [stderr] error: use of `#[inline]` on trait method `opt_eq` which has no body [INFO] [stderr] --> src/lib.rs:1033:5 [INFO] [stderr] | [INFO] [stderr] 1033 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 1034 | | fn opt_eq(&self, other: &Self) -> bool; [INFO] [stderr] | |____- help: remove [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::inline_fn_without_body)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body [INFO] [stderr] [INFO] [stderr] error: use of `#[inline]` on trait method `opt_cmp` which has no body [INFO] [stderr] --> src/lib.rs:1117:5 [INFO] [stderr] | [INFO] [stderr] 1117 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 1118 | | fn opt_cmp(&self, other: &Self) -> Ordering; [INFO] [stderr] | |____- help: remove [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inline_fn_without_body [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `optional`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c53ded7cf82dccf61611af9db032ae0828e0d0c8234666f2ae25de194cc4f1b9"` [INFO] running `"docker" "rm" "-f" "c53ded7cf82dccf61611af9db032ae0828e0d0c8234666f2ae25de194cc4f1b9"` [INFO] [stdout] c53ded7cf82dccf61611af9db032ae0828e0d0c8234666f2ae25de194cc4f1b9