Auto merge of #84174 - camsteffen:slice-diag, r=Mark-Simulacrum

Remove slice diagnostic item

...because it is unusally placed on an impl and is redundant with a lang item.

Depends on rust-lang/rust-clippy#7074 (next clippy sync). ~I expect clippy tests to fail in the meantime.~ Nope tests passed...

CC `@flip1995`
This commit is contained in:
bors 2021-04-26 17:16:03 +00:00
commit ae54ee6507

View File

@ -222,7 +222,6 @@ mod hack {
}
#[lang = "slice_alloc"]
#[cfg_attr(not(test), rustc_diagnostic_item = "slice")]
#[cfg(not(test))]
impl<T> [T] {
/// Sorts the slice.