about summary refs log tree commit diff
path: root/library/alloc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-26 17:16:03 +0000
committerbors <bors@rust-lang.org>2021-04-26 17:16:03 +0000
commitae54ee650750f8d84492e61f09e22051ec41b763 (patch)
tree9f6775751664365804180f8c4fe7937a28ce1b98 /library/alloc
parent154858c4308d771e29ad90057bf199867c271d09 (diff)
parentb31903180845cc78ced2ea798b1c284f8f42766c (diff)
downloadrust-ae54ee650750f8d84492e61f09e22051ec41b763.tar.gz
rust-ae54ee650750f8d84492e61f09e22051ec41b763.zip
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`
Diffstat (limited to 'library/alloc')
-rw-r--r--library/alloc/src/slice.rs1
1 files changed, 0 insertions, 1 deletions
diff --git a/library/alloc/src/slice.rs b/library/alloc/src/slice.rs
index 036b84bb1d5..f5d0e911b60 100644
--- a/library/alloc/src/slice.rs
+++ b/library/alloc/src/slice.rs
@@ -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.