[INFO] crate internship 0.6.0 is already in cache [INFO] extracting crate internship 0.6.0 into work/ex/clippy-test-run/sources/stable/reg/internship/0.6.0 [INFO] extracting crate internship 0.6.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/internship/0.6.0 [INFO] validating manifest of internship-0.6.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 internship-0.6.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 internship-0.6.0 [INFO] finished frobbing internship-0.6.0 [INFO] frobbed toml for internship-0.6.0 written to work/ex/clippy-test-run/sources/stable/reg/internship/0.6.0/Cargo.toml [INFO] started frobbing internship-0.6.0 [INFO] finished frobbing internship-0.6.0 [INFO] frobbed toml for internship-0.6.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/internship/0.6.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 internship-0.6.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-6/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/internship/0.6.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" "-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] c9dab0e354b455e50ac504d2b93b0b43e0cca63bd461321b938ec7570fdd1aee [INFO] running `"docker" "start" "-a" "c9dab0e354b455e50ac504d2b93b0b43e0cca63bd461321b938ec7570fdd1aee"` [INFO] [stderr] Checking internship v0.6.0 (/opt/crater/workdir) [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/handle.rs:132:5 [INFO] [stderr] | [INFO] [stderr] 132 | / fn get_heap<'a>(&'a self) -> &'a [u8] { [INFO] [stderr] 133 | | unsafe { [INFO] [stderr] 134 | | slice::from_raw_parts(self.ptr.as_ptr(), self.len) [INFO] [stderr] 135 | | } [INFO] [stderr] 136 | | } [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: transmute from a reference to a reference [INFO] [stderr] --> src/handle.rs:141:13 [INFO] [stderr] | [INFO] [stderr] 141 | mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try: `&*(self as *const handle::Handle as *const [u8; 16])` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::transmute_ptr_to_ptr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr [INFO] [stderr] [INFO] [stderr] error: you are implementing `Hash` explicitly but have derived `PartialEq` [INFO] [stderr] --> src/istr.rs:113:1 [INFO] [stderr] | [INFO] [stderr] 113 | / impl Hash for IStr { [INFO] [stderr] 114 | | fn hash(&self, hasher: &mut H) { [INFO] [stderr] 115 | | Hash::hash(self.as_str(), hasher) [INFO] [stderr] 116 | | } [INFO] [stderr] 117 | | } [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/istr.rs:19:17 [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] [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: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name [INFO] [stderr] --> src/ibytes.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | / pub fn from_str(src: &str) -> Self { [INFO] [stderr] 24 | | IBytes(Handle::new(src.as_bytes())) [INFO] [stderr] 25 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::should_implement_trait)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] error: you are implementing `Hash` explicitly but have derived `PartialEq` [INFO] [stderr] --> src/ibytes.rs:127:1 [INFO] [stderr] | [INFO] [stderr] 127 | / impl Hash for IBytes { [INFO] [stderr] 128 | | fn hash(&self, hasher: &mut H) { [INFO] [stderr] 129 | | Hash::hash(self.as_bytes(), hasher) [INFO] [stderr] 130 | | } [INFO] [stderr] 131 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] note: `PartialEq` implemented here [INFO] [stderr] --> src/ibytes.rs:15:17 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] [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] error: you are implementing `Hash` explicitly but have derived `PartialEq` [INFO] [stderr] --> src/icstr.rs:87:1 [INFO] [stderr] | [INFO] [stderr] 87 | / impl Hash for ICStr { [INFO] [stderr] 88 | | fn hash(&self, hasher: &mut H) { [INFO] [stderr] 89 | | self.as_cstr().hash(hasher) [INFO] [stderr] 90 | | } [INFO] [stderr] 91 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] note: `PartialEq` implemented here [INFO] [stderr] --> src/icstr.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] [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] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `internship`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/handle.rs:132:5 [INFO] [stderr] | [INFO] [stderr] 132 | / fn get_heap<'a>(&'a self) -> &'a [u8] { [INFO] [stderr] 133 | | unsafe { [INFO] [stderr] 134 | | slice::from_raw_parts(self.ptr.as_ptr(), self.len) [INFO] [stderr] 135 | | } [INFO] [stderr] 136 | | } [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: transmute from a reference to a reference [INFO] [stderr] --> src/handle.rs:141:13 [INFO] [stderr] | [INFO] [stderr] 141 | mem::transmute(self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ help: try: `&*(self as *const handle::Handle as *const [u8; 16])` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::transmute_ptr_to_ptr)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr [INFO] [stderr] [INFO] [stderr] error: you are implementing `Hash` explicitly but have derived `PartialEq` [INFO] [stderr] --> src/istr.rs:113:1 [INFO] [stderr] | [INFO] [stderr] 113 | / impl Hash for IStr { [INFO] [stderr] 114 | | fn hash(&self, hasher: &mut H) { [INFO] [stderr] 115 | | Hash::hash(self.as_str(), hasher) [INFO] [stderr] 116 | | } [INFO] [stderr] 117 | | } [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/istr.rs:19:17 [INFO] [stderr] | [INFO] [stderr] 19 | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] [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: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name [INFO] [stderr] --> src/ibytes.rs:23:5 [INFO] [stderr] | [INFO] [stderr] 23 | / pub fn from_str(src: &str) -> Self { [INFO] [stderr] 24 | | IBytes(Handle::new(src.as_bytes())) [INFO] [stderr] 25 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::should_implement_trait)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait [INFO] [stderr] [INFO] [stderr] error: you are implementing `Hash` explicitly but have derived `PartialEq` [INFO] [stderr] --> src/ibytes.rs:127:1 [INFO] [stderr] | [INFO] [stderr] 127 | / impl Hash for IBytes { [INFO] [stderr] 128 | | fn hash(&self, hasher: &mut H) { [INFO] [stderr] 129 | | Hash::hash(self.as_bytes(), hasher) [INFO] [stderr] 130 | | } [INFO] [stderr] 131 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] note: `PartialEq` implemented here [INFO] [stderr] --> src/ibytes.rs:15:17 [INFO] [stderr] | [INFO] [stderr] 15 | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] [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] error: you are implementing `Hash` explicitly but have derived `PartialEq` [INFO] [stderr] --> src/icstr.rs:87:1 [INFO] [stderr] | [INFO] [stderr] 87 | / impl Hash for ICStr { [INFO] [stderr] 88 | | fn hash(&self, hasher: &mut H) { [INFO] [stderr] 89 | | self.as_cstr().hash(hasher) [INFO] [stderr] 90 | | } [INFO] [stderr] 91 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] note: `PartialEq` implemented here [INFO] [stderr] --> src/icstr.rs:11:17 [INFO] [stderr] | [INFO] [stderr] 11 | #[derive(Clone, PartialEq, Eq, PartialOrd, Ord)] [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] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `internship`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c9dab0e354b455e50ac504d2b93b0b43e0cca63bd461321b938ec7570fdd1aee"` [INFO] running `"docker" "rm" "-f" "c9dab0e354b455e50ac504d2b93b0b43e0cca63bd461321b938ec7570fdd1aee"` [INFO] [stdout] c9dab0e354b455e50ac504d2b93b0b43e0cca63bd461321b938ec7570fdd1aee