[Clippy] Swap map_entry to use diagnostic items instead of paths · qinheping/verify-rust-std@116e527 (original) (raw)
`@@ -916,6 +916,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
`
916
916
`/// assert_eq!(map.contains_key(&2), false);
`
917
917
```` /// ```
`918`
`918`
`#[stable(feature = "rust1", since = "1.0.0")]
`
``
`919`
`+
#[cfg_attr(not(test), rustc_diagnostic_item = "btreemap_contains_key")]
`
`919`
`920`
`pub fn contains_key<Q: ?Sized>(&self, key: &Q) -> bool
`
`920`
`921`
`where
`
`921`
`922`
`K: Borrow<Q> + Ord,
`
`@@ -981,6 +982,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
`
`981`
`982`
```` /// ```
982
983
`#[stable(feature = "rust1", since = "1.0.0")]
`
983
984
`#[rustc_confusables("push", "put", "set")]
`
``
985
`+
#[cfg_attr(not(test), rustc_diagnostic_item = "btreemap_insert")]
`
984
986
`pub fn insert(&mut self, key: K, value: V) -> Option
`
985
987
`where
`
986
988
`K: Ord,
`