[INFO] crate inlinable_string 0.1.10 is already in cache [INFO] extracting crate inlinable_string 0.1.10 into work/ex/clippy-test-run/sources/stable/reg/inlinable_string/0.1.10 [INFO] extracting crate inlinable_string 0.1.10 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/inlinable_string/0.1.10 [INFO] validating manifest of inlinable_string-0.1.10 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 inlinable_string-0.1.10 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 inlinable_string-0.1.10 [INFO] finished frobbing inlinable_string-0.1.10 [INFO] frobbed toml for inlinable_string-0.1.10 written to work/ex/clippy-test-run/sources/stable/reg/inlinable_string/0.1.10/Cargo.toml [INFO] started frobbing inlinable_string-0.1.10 [INFO] finished frobbing inlinable_string-0.1.10 [INFO] frobbed toml for inlinable_string-0.1.10 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/inlinable_string/0.1.10/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 inlinable_string-0.1.10 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-1/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/inlinable_string/0.1.10:/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] c1f9d51c7996d340cbea454cb950fcc15195ed0a2d5abfe841f68c3aaefbac80 [INFO] running `"docker" "start" "-a" "c1f9d51c7996d340cbea454cb950fcc15195ed0a2d5abfe841f68c3aaefbac80"` [INFO] [stderr] Compiling serde v1.0.85 [INFO] [stderr] Checking inlinable_string v0.1.10 (/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: 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] warning: transmute from a `&[u8]` to a `&str` [INFO] [stderr] --> src/inline_string.rs:74:13 [INFO] [stderr] | [INFO] [stderr] 74 | mem::transmute(&self.bytes[0..self.len()]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8(&self.bytes[0..self.len()]).unwrap()` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::transmute_bytes_to_str)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str [INFO] [stderr] [INFO] [stderr] warning: transmute from a `&mut [u8]` to a `&mut str` [INFO] [stderr] --> src/inline_string.rs:91:13 [INFO] [stderr] | [INFO] [stderr] 91 | mem::transmute(&mut self.bytes[0..length]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8_mut(&mut self.bytes[0..length]).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str [INFO] [stderr] [INFO] [stderr] warning: transmute from a `&[u8]` to a `&str` [INFO] [stderr] --> src/inline_string.rs:187:13 [INFO] [stderr] | [INFO] [stderr] 187 | mem::transmute(&self.bytes[0..self.len()]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8(&self.bytes[0..self.len()]).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str [INFO] [stderr] [INFO] [stderr] warning: transmute from a `&mut [u8]` to a `&mut str` [INFO] [stderr] --> src/inline_string.rs:222:13 [INFO] [stderr] | [INFO] [stderr] 222 | mem::transmute(&mut self.bytes[0..length]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8_mut(&mut self.bytes[0..length]).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str [INFO] [stderr] [INFO] [stderr] warning: transmute from a `&[u8]` to a `&str` [INFO] [stderr] --> src/inline_string.rs:234:13 [INFO] [stderr] | [INFO] [stderr] 234 | mem::transmute(&self.bytes[0..self.len()]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8(&self.bytes[0..self.len()]).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str [INFO] [stderr] [INFO] [stderr] warning: transmute from a `&mut [u8]` to a `&mut str` [INFO] [stderr] --> src/inline_string.rs:245:13 [INFO] [stderr] | [INFO] [stderr] 245 | mem::transmute(&mut self.bytes[0..length]) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `std::str::from_utf8_mut(&mut self.bytes[0..length]).unwrap()` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_bytes_to_str [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:266:5 [INFO] [stderr] | [INFO] [stderr] 266 | / fn ne(&self, rhs: &InlineString) -> bool { [INFO] [stderr] 267 | | self.assert_sanity(); [INFO] [stderr] 268 | | rhs.assert_sanity(); [INFO] [stderr] 269 | | PartialEq::ne(&self[..], &rhs[..]) [INFO] [stderr] 270 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::partialeq_ne_impl)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:279:13 [INFO] [stderr] | [INFO] [stderr] 279 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 292 | impl_eq! { InlineString, str } [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:286:13 [INFO] [stderr] | [INFO] [stderr] 286 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 292 | impl_eq! { InlineString, str } [INFO] [stderr] | ------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:279:13 [INFO] [stderr] | [INFO] [stderr] 279 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 293 | impl_eq! { InlineString, &'a str } [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:286:13 [INFO] [stderr] | [INFO] [stderr] 286 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 293 | impl_eq! { InlineString, &'a str } [INFO] [stderr] | ---------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:279:13 [INFO] [stderr] | [INFO] [stderr] 279 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 294 | impl_eq! { borrow::Cow<'a, str>, InlineString } [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/inline_string.rs:286:13 [INFO] [stderr] | [INFO] [stderr] 286 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 294 | impl_eq! { borrow::Cow<'a, str>, InlineString } [INFO] [stderr] | ----------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: called `filter(p).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(p)` instead. [INFO] [stderr] --> src/inline_string.rs:449:17 [INFO] [stderr] | [INFO] [stderr] 449 | assert!(self.char_indices().filter(|&(i, _)| i == new_len).next().is_some(), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::filter_next)] on by default [INFO] [stderr] = note: replace `filter(|&(i, _)| i == new_len).next()` with `find(|&(i, _)| i == new_len)` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_next [INFO] [stderr] [INFO] [stderr] warning: called `filter(p).next()` on an `Iterator`. This is more succinctly expressed by calling `.find(p)` instead. [INFO] [stderr] --> src/inline_string.rs:509:15 [INFO] [stderr] | [INFO] [stderr] 509 | match self.char_indices().filter(|&(i, _)| i == idx).next() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: replace `filter(|&(i, _)| i == idx).next()` with `find(|&(i, _)| i == idx)` [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#filter_next [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/inline_string.rs:517:31 [INFO] [stderr] | [INFO] [stderr] 517 | ptr::copy(self.bytes.as_ptr().offset(next as isize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.bytes.as_ptr().add(next)` [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: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/inline_string.rs:518:31 [INFO] [stderr] | [INFO] [stderr] 518 | self.bytes.as_mut_ptr().offset(idx as isize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.bytes.as_mut_ptr().add(idx)` [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: manual implementation of an assign operation [INFO] [stderr] --> src/inline_string.rs:521:17 [INFO] [stderr] | [INFO] [stderr] 521 | self.length = self.length - char_len as u8; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `self.length -= char_len as u8` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::assign_op_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/inline_string.rs:558:23 [INFO] [stderr] | [INFO] [stderr] 558 | ptr::copy(self.bytes.as_ptr().offset(idx as isize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.bytes.as_ptr().add(idx)` [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/inline_string.rs:559:23 [INFO] [stderr] | [INFO] [stderr] 559 | self.bytes.as_mut_ptr().offset((idx + char_len) as isize), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.bytes.as_mut_ptr().add((idx + char_len))` [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: use of `#[inline]` on trait method `new` which has no body [INFO] [stderr] --> src/string_ext.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 37 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 38 | | fn new() -> Self where Self: Sized; [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 `with_capacity` which has no body [INFO] [stderr] --> src/string_ext.rs:52:5 [INFO] [stderr] | [INFO] [stderr] 52 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 53 | | fn with_capacity(capacity: usize) -> Self where Self: Sized; [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: use of `#[inline]` on trait method `from_utf8` which has no body [INFO] [stderr] --> src/string_ext.rs:77:5 [INFO] [stderr] | [INFO] [stderr] 77 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 78 | | fn from_utf8(vec: Vec) -> Result where Self: Sized; [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: use of `#[inline]` on trait method `from_utf16_lossy` which has no body [INFO] [stderr] --> src/string_ext.rs:132:5 [INFO] [stderr] | [INFO] [stderr] 132 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 133 | | fn from_utf16_lossy(v: &[u16]) -> Self where Self: Sized; [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: use of `#[inline]` on trait method `from_raw_parts` which has no body [INFO] [stderr] --> src/string_ext.rs:147:5 [INFO] [stderr] | [INFO] [stderr] 147 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 148 | | unsafe fn from_raw_parts(buf: *mut u8, length: usize, capacity: usize) -> Self where Self: Sized; [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: use of `#[inline]` on trait method `from_utf8_unchecked` which has no body [INFO] [stderr] --> src/string_ext.rs:153:5 [INFO] [stderr] | [INFO] [stderr] 153 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 154 | | unsafe fn from_utf8_unchecked(bytes: Vec) -> Self where Self: Sized; [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: use of `#[inline]` on trait method `into_bytes` which has no body [INFO] [stderr] --> src/string_ext.rs:167:5 [INFO] [stderr] | [INFO] [stderr] 167 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 168 | | fn into_bytes(self) -> Vec; [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: use of `#[inline]` on trait method `push_str` which has no body [INFO] [stderr] --> src/string_ext.rs:181:5 [INFO] [stderr] | [INFO] [stderr] 181 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 182 | | fn push_str(&mut self, string: &str); [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: use of `#[inline]` on trait method `capacity` which has no body [INFO] [stderr] --> src/string_ext.rs:195:5 [INFO] [stderr] | [INFO] [stderr] 195 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 196 | | fn capacity(&self) -> usize; [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: use of `#[inline]` on trait method `reserve` which has no body [INFO] [stderr] --> src/string_ext.rs:215:5 [INFO] [stderr] | [INFO] [stderr] 215 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 216 | | fn reserve(&mut self, additional: usize); [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: use of `#[inline]` on trait method `reserve_exact` which has no body [INFO] [stderr] --> src/string_ext.rs:239:5 [INFO] [stderr] | [INFO] [stderr] 239 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 240 | | fn reserve_exact(&mut self, additional: usize); [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: use of `#[inline]` on trait method `shrink_to_fit` which has no body [INFO] [stderr] --> src/string_ext.rs:257:5 [INFO] [stderr] | [INFO] [stderr] 257 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 258 | | fn shrink_to_fit(&mut self); [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: use of `#[inline]` on trait method `push` which has no body [INFO] [stderr] --> src/string_ext.rs:273:5 [INFO] [stderr] | [INFO] [stderr] 273 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 274 | | fn push(&mut self, ch: char); [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: use of `#[inline]` on trait method `as_bytes` which has no body [INFO] [stderr] --> src/string_ext.rs:286:5 [INFO] [stderr] | [INFO] [stderr] 286 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 287 | | fn as_bytes(&self) -> &[u8]; [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: use of `#[inline]` on trait method `truncate` which has no body [INFO] [stderr] --> src/string_ext.rs:305:5 [INFO] [stderr] | [INFO] [stderr] 305 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 306 | | fn truncate(&mut self, new_len: usize); [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: use of `#[inline]` on trait method `pop` which has no body [INFO] [stderr] --> src/string_ext.rs:322:5 [INFO] [stderr] | [INFO] [stderr] 322 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 323 | | fn pop(&mut self) -> Option; [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: use of `#[inline]` on trait method `remove` which has no body [INFO] [stderr] --> src/string_ext.rs:348:5 [INFO] [stderr] | [INFO] [stderr] 348 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 349 | | fn remove(&mut self, idx: usize) -> char; [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: use of `#[inline]` on trait method `insert` which has no body [INFO] [stderr] --> src/string_ext.rs:372:5 [INFO] [stderr] | [INFO] [stderr] 372 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 373 | | fn insert(&mut self, idx: usize, ch: char); [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: use of `#[inline]` on trait method `as_mut_slice` which has no body [INFO] [stderr] --> src/string_ext.rs:393:5 [INFO] [stderr] | [INFO] [stderr] 393 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 394 | | unsafe fn as_mut_slice(&mut self) -> &mut [u8]; [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: use of `#[inline]` on trait method `len` which has no body [INFO] [stderr] --> src/string_ext.rs:406:5 [INFO] [stderr] | [INFO] [stderr] 406 | #[inline] [INFO] [stderr] | _____-^^^^^^^^ [INFO] [stderr] 407 | | fn len(&self) -> usize; [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] warning: transmute from a reference to a reference [INFO] [stderr] --> src/string_ext.rs:533:9 [INFO] [stderr] | [INFO] [stderr] 533 | mem::transmute(&mut **self) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `&mut *(&mut **self as *mut str as *mut [u8])` [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] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:393:5 [INFO] [stderr] | [INFO] [stderr] 393 | / fn ne(&self, rhs: &InlinableString) -> bool { [INFO] [stderr] 394 | | PartialEq::ne(&self[..], &rhs[..]) [INFO] [stderr] 395 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 417 | impl_eq! { InlinableString, str } [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 411 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 417 | impl_eq! { InlinableString, str } [INFO] [stderr] | --------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 418 | impl_eq! { InlinableString, String } [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 411 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 418 | impl_eq! { InlinableString, String } [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 419 | impl_eq! { InlinableString, &'a str } [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 411 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 419 | impl_eq! { InlinableString, &'a str } [INFO] [stderr] | ------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 420 | impl_eq! { InlinableString, InlineString } [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 411 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 420 | impl_eq! { InlinableString, InlineString } [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:404:13 [INFO] [stderr] | [INFO] [stderr] 404 | fn ne(&self, other: &$rhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 421 | impl_eq! { Cow<'a, str>, InlinableString } [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] warning: re-implementing `PartialEq::ne` is unnecessary [INFO] [stderr] --> src/lib.rs:411:13 [INFO] [stderr] | [INFO] [stderr] 411 | fn ne(&self, other: &$lhs) -> bool { PartialEq::ne(&self[..], &other[..]) } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 421 | impl_eq! { Cow<'a, str>, InlinableString } [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#partialeq_ne_impl [INFO] [stderr] [INFO] [stderr] error: aborting due to 20 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `inlinable_string`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "c1f9d51c7996d340cbea454cb950fcc15195ed0a2d5abfe841f68c3aaefbac80"` [INFO] running `"docker" "rm" "-f" "c1f9d51c7996d340cbea454cb950fcc15195ed0a2d5abfe841f68c3aaefbac80"` [INFO] [stdout] c1f9d51c7996d340cbea454cb950fcc15195ed0a2d5abfe841f68c3aaefbac80