Rollup merge of #82578 - camsteffen:diag-items, r=oli-obk
Add some diagnostic items for Clippy
This commit is contained in:
commit
efb9ee2df5
15 changed files with 55 additions and 41 deletions
|
@ -247,6 +247,7 @@ use super::SpecExtend;
|
|||
/// [peek]: BinaryHeap::peek
|
||||
/// [peek\_mut]: BinaryHeap::peek_mut
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "BinaryHeap")]
|
||||
pub struct BinaryHeap<T> {
|
||||
data: Vec<T>,
|
||||
}
|
||||
|
|
|
@ -138,6 +138,7 @@ pub(super) const MIN_LEN: usize = node::MIN_LEN_AFTER_SPLIT;
|
|||
/// *stat += random_stat_buff();
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "BTreeMap")]
|
||||
pub struct BTreeMap<K, V> {
|
||||
root: Option<Root<K, V>>,
|
||||
length: usize,
|
||||
|
|
|
@ -61,6 +61,7 @@ use super::Recover;
|
|||
/// ```
|
||||
#[derive(Hash, PartialEq, Eq, Ord, PartialOrd)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "BTreeSet")]
|
||||
pub struct BTreeSet<T> {
|
||||
map: BTreeMap<T, ()>,
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ mod tests;
|
|||
/// array-based containers are generally faster,
|
||||
/// more memory efficient, and make better use of CPU cache.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "LinkedList")]
|
||||
pub struct LinkedList<T> {
|
||||
head: Option<NonNull<Node<T>>>,
|
||||
tail: Option<NonNull<Node<T>>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue