[INFO] crate imprint 0.2.0 is already in cache [INFO] extracting crate imprint 0.2.0 into work/ex/clippy-test-run/sources/stable/reg/imprint/0.2.0 [INFO] extracting crate imprint 0.2.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/imprint/0.2.0 [INFO] validating manifest of imprint-0.2.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 imprint-0.2.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 imprint-0.2.0 [INFO] finished frobbing imprint-0.2.0 [INFO] frobbed toml for imprint-0.2.0 written to work/ex/clippy-test-run/sources/stable/reg/imprint/0.2.0/Cargo.toml [INFO] started frobbing imprint-0.2.0 [INFO] finished frobbing imprint-0.2.0 [INFO] frobbed toml for imprint-0.2.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/imprint/0.2.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 imprint-0.2.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/imprint/0.2.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] 844f6345e4cd3c99fbcc54c3fb3bf326fb03bc49c68842eb88f5a0b36edbcfa3 [INFO] running `"docker" "start" "-a" "844f6345e4cd3c99fbcc54c3fb3bf326fb03bc49c68842eb88f5a0b36edbcfa3"` [INFO] [stderr] Checking imprint v0.2.0 (/opt/crater/workdir) [INFO] [stderr] warning: redundant field names in struct initialization [INFO] [stderr] --> src/ix.rs:179:32 [INFO] [stderr] | [INFO] [stderr] 179 | Sl { len: PhantomData, ptr: ptr } [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ptr` [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/ix.rs:234:35 [INFO] [stderr] | [INFO] [stderr] 234 | MutSl { len: PhantomData, ptr: ptr } [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stderr] | [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/ix.rs:179:32 [INFO] [stderr] | [INFO] [stderr] 179 | Sl { len: PhantomData, ptr: ptr } [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ptr` [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/ix.rs:234:35 [INFO] [stderr] | [INFO] [stderr] 234 | MutSl { len: PhantomData, ptr: ptr } [INFO] [stderr] | ^^^^^^^^ help: replace it with: `ptr` [INFO] [stderr] | [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: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 29 | impl_all!(Equal); [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(renamed_and_removed_lints)] on by default [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 44 | impl_all!(NotEqual); [INFO] [stderr] | -------------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 51 | impl_all!(Less); [INFO] [stderr] | ---------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 58 | impl_all!(Greater); [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/lib.rs:300:44 [INFO] [stderr] | [INFO] [stderr] 300 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 29 | impl_all!(Equal); [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 29 | impl_all!(Equal); [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(renamed_and_removed_lints)] on by default [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 44 | impl_all!(NotEqual); [INFO] [stderr] | -------------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 51 | impl_all!(Less); [INFO] [stderr] | ---------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 58 | impl_all!(Greater); [INFO] [stderr] | ------------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/lib.rs:300:44 [INFO] [stderr] | [INFO] [stderr] 300 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] [INFO] [stderr] warning: lint name `expl_impl_clone_on_copy` is deprecated and may not have an effect in the future. Also `cfg_attr(cargo-clippy)` won't be necessary anymore [INFO] [stderr] --> src/arith.rs:9:52 [INFO] [stderr] | [INFO] [stderr] 9 | #[cfg_attr(feature = "cargo-clippy", allow(expl_impl_clone_on_copy))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: change it to: `clippy::expl_impl_clone_on_copy` [INFO] [stderr] ... [INFO] [stderr] 29 | impl_all!(Equal); [INFO] [stderr] | ----------------- in this macro invocation [INFO] [stderr] [INFO] [stderr] warning: needlessly taken reference of both operands [INFO] [stderr] --> src/arith.rs:69:8 [INFO] [stderr] | [INFO] [stderr] 69 | if &**x == &**y { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::op_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] help: use the values directly [INFO] [stderr] | [INFO] [stderr] 69 | if **x == **y { [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: needlessly taken reference of both operands [INFO] [stderr] --> src/arith.rs:79:8 [INFO] [stderr] | [INFO] [stderr] 79 | if &**x == &**y { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] help: use the values directly [INFO] [stderr] | [INFO] [stderr] 79 | if **x == **y { [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: item `ix::BoxedSl<'l, T>` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/ix.rs:85:1 [INFO] [stderr] | [INFO] [stderr] 85 | / impl<'l, T> BoxedSl<'l, T> { [INFO] [stderr] 86 | | pub fn from_boxed_slice(boxed_slice: Box<[T]>, len: Val<'l, usize>) [INFO] [stderr] 87 | | -> Result> { [INFO] [stderr] 88 | | if boxed_slice.len() == len.into_inner() { [INFO] [stderr] ... | [INFO] [stderr] 118 | | } [INFO] [stderr] 119 | | } [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: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:182:19 [INFO] [stderr] | [INFO] [stderr] 182 | pub fn as_ptr(self) -> *const T { [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: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:186:21 [INFO] [stderr] | [INFO] [stderr] 186 | pub fn as_slice(self, len: Val<'l, usize>) -> &'a [T] { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [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: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/ix.rs:204:20 [INFO] [stderr] | [INFO] [stderr] 204 | unsafe { &*self.ptr.offset(index.into_inner() as isize) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.ptr.add(index.into_inner())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:237:19 [INFO] [stderr] | [INFO] [stderr] 237 | pub fn as_ptr(self) -> *const T { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [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: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:241:23 [INFO] [stderr] | [INFO] [stderr] 241 | pub fn as_mut_ptr(self) -> *mut T { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [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: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/ix.rs:258:20 [INFO] [stderr] | [INFO] [stderr] 258 | unsafe { &*self.ptr.offset(index.into_inner() as isize) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.ptr.add(index.into_inner())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/ix.rs:264:24 [INFO] [stderr] | [INFO] [stderr] 264 | unsafe { &mut *self.ptr.offset(index.into_inner() as isize) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.ptr.add(index.into_inner())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: needlessly taken reference of both operands [INFO] [stderr] --> src/arith.rs:69:8 [INFO] [stderr] | [INFO] [stderr] 69 | if &**x == &**y { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::op_ref)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] help: use the values directly [INFO] [stderr] | [INFO] [stderr] 69 | if **x == **y { [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: needlessly taken reference of both operands [INFO] [stderr] --> src/arith.rs:79:8 [INFO] [stderr] | [INFO] [stderr] 79 | if &**x == &**y { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref [INFO] [stderr] help: use the values directly [INFO] [stderr] | [INFO] [stderr] 79 | if **x == **y { [INFO] [stderr] | ^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: item `ix::BoxedSl<'l, T>` has a public `len` method but no corresponding `is_empty` method [INFO] [stderr] --> src/ix.rs:85:1 [INFO] [stderr] | [INFO] [stderr] 85 | / impl<'l, T> BoxedSl<'l, T> { [INFO] [stderr] 86 | | pub fn from_boxed_slice(boxed_slice: Box<[T]>, len: Val<'l, usize>) [INFO] [stderr] 87 | | -> Result> { [INFO] [stderr] 88 | | if boxed_slice.len() == len.into_inner() { [INFO] [stderr] ... | [INFO] [stderr] 118 | | } [INFO] [stderr] 119 | | } [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: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:182:19 [INFO] [stderr] | [INFO] [stderr] 182 | pub fn as_ptr(self) -> *const T { [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: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:186:21 [INFO] [stderr] | [INFO] [stderr] 186 | pub fn as_slice(self, len: Val<'l, usize>) -> &'a [T] { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [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: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/ix.rs:204:20 [INFO] [stderr] | [INFO] [stderr] 204 | unsafe { &*self.ptr.offset(index.into_inner() as isize) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.ptr.add(index.into_inner())` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:237:19 [INFO] [stderr] | [INFO] [stderr] 237 | pub fn as_ptr(self) -> *const T { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [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: methods called `as_*` usually take self by reference or self by mutable reference; consider choosing a less ambiguous name [INFO] [stderr] --> src/ix.rs:241:23 [INFO] [stderr] | [INFO] [stderr] 241 | pub fn as_mut_ptr(self) -> *mut T { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [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: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/ix.rs:258:20 [INFO] [stderr] | [INFO] [stderr] 258 | unsafe { &*self.ptr.offset(index.into_inner() as isize) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.ptr.add(index.into_inner())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/ix.rs:264:24 [INFO] [stderr] | [INFO] [stderr] 264 | unsafe { &mut *self.ptr.offset(index.into_inner() as isize) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.ptr.add(index.into_inner())` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/ix.rs:365:17 [INFO] [stderr] | [INFO] [stderr] 365 | assert_eq!(a[i], i_ as f64 * 0.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::float_cmp)] on by default [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/ix.rs:365:17 [INFO] [stderr] | [INFO] [stderr] 365 | assert_eq!(a[i], i_ as f64 * 0.5); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: strict comparison of f32 or f64 [INFO] [stderr] --> src/ix.rs:366:17 [INFO] [stderr] | [INFO] [stderr] 366 | assert_eq!(b[i], (n_ - i_) as f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: std::f32::EPSILON and std::f64::EPSILON are available. [INFO] [stderr] --> src/ix.rs:366:17 [INFO] [stderr] | [INFO] [stderr] 366 | assert_eq!(b[i], (n_ - i_) as f64); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#float_cmp [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: redundant closure found [INFO] [stderr] --> src/lib.rs:499:28 [INFO] [stderr] | [INFO] [stderr] 499 | let x = imprint(0, |x| Exists::>::new(x)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove closure as shown: `Exists::>::new` [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] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `imprint`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "844f6345e4cd3c99fbcc54c3fb3bf326fb03bc49c68842eb88f5a0b36edbcfa3"` [INFO] running `"docker" "rm" "-f" "844f6345e4cd3c99fbcc54c3fb3bf326fb03bc49c68842eb88f5a0b36edbcfa3"` [INFO] [stdout] 844f6345e4cd3c99fbcc54c3fb3bf326fb03bc49c68842eb88f5a0b36edbcfa3