Rollup merge of #130553 - GnomedDev:remove-clippy-paths, r=compiler-e… · qinheping/verify-rust-std@17b0e39 (original) (raw)

`@@ -1037,6 +1037,7 @@ where

`

1037

1037

```` /// ```


`1038`

`1038`

`#[inline]

`

`1039`

`1039`

`#[stable(feature = "rust1", since = "1.0.0")]

`

``

`1040`

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_contains_key")]

`

`1040`

`1041`

`pub fn contains_key<Q: ?Sized>(&self, k: &Q) -> bool

`

`1041`

`1042`

`where

`

`1042`

`1043`

`K: Borrow<Q>,

`

`@@ -1100,6 +1101,7 @@ where

`

`1100`

`1101`

`#[inline]

`

`1101`

`1102`

`#[stable(feature = "rust1", since = "1.0.0")]

`

`1102`

`1103`

`#[rustc_confusables("push", "append", "put")]

`

``

`1104`

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_insert")]

`

`1103`

`1105`

`pub fn insert(&mut self, k: K, v: V) -> Option<V> {

`

`1104`

`1106`

`self.base.insert(k, v)

`

`1105`

`1107`

`}

`

`@@ -1391,6 +1393,7 @@ where

`

`1391`

`1393`

`/// let iter = map.iter();

`

`1392`

`1394`

```` /// ```

1393

1395

`#[stable(feature = "rust1", since = "1.0.0")]

`

``

1396

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_iter_ty")]

`

1394

1397

`pub struct Iter<'a, K: 'a, V: 'a> {

`

1395

1398

`base: base::Iter<'a, K, V>,

`

1396

1399

`}

`

`@@ -1429,6 +1432,7 @@ impl<K: Debug, V: Debug> fmt::Debug for Iter<'_, K, V> {

`

1429

1432

`/// let iter = map.iter_mut();

`

1430

1433

```` /// ```


`1431`

`1434`

`#[stable(feature = "rust1", since = "1.0.0")]

`

``

`1435`

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_iter_mut_ty")]

`

`1432`

`1436`

`pub struct IterMut<'a, K: 'a, V: 'a> {

`

`1433`

`1437`

`base: base::IterMut<'a, K, V>,

`

`1434`

`1438`

`}

`

`@@ -1489,6 +1493,7 @@ impl<K, V> IntoIter<K, V> {

`

`1489`

`1493`

`/// let iter_keys = map.keys();

`

`1490`

`1494`

```` /// ```

1491

1495

`#[stable(feature = "rust1", since = "1.0.0")]

`

``

1496

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_keys_ty")]

`

1492

1497

`pub struct Keys<'a, K: 'a, V: 'a> {

`

1493

1498

`inner: Iter<'a, K, V>,

`

1494

1499

`}

`

`@@ -1527,6 +1532,7 @@ impl<K: Debug, V> fmt::Debug for Keys<'_, K, V> {

`

1527

1532

`/// let iter_values = map.values();

`

1528

1533

```` /// ```


`1529`

`1534`

`#[stable(feature = "rust1", since = "1.0.0")]

`

``

`1535`

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_values_ty")]

`

`1530`

`1536`

`pub struct Values<'a, K: 'a, V: 'a> {

`

`1531`

`1537`

`inner: Iter<'a, K, V>,

`

`1532`

`1538`

`}

`

`@@ -1565,6 +1571,7 @@ impl<K, V: Debug> fmt::Debug for Values<'_, K, V> {

`

`1565`

`1571`

`/// let iter = map.drain();

`

`1566`

`1572`

```` /// ```

1567

1573

`#[stable(feature = "drain", since = "1.6.0")]

`

``

1574

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_drain_ty")]

`

1568

1575

`pub struct Drain<'a, K: 'a, V: 'a> {

`

1569

1576

`base: base::Drain<'a, K, V>,

`

1570

1577

`}

`

`@@ -1622,6 +1629,7 @@ where

`

1622

1629

`/// let iter_values = map.values_mut();

`

1623

1630

```` /// ```

````

1624

1631

`#[stable(feature = "map_values_mut", since = "1.10.0")]

`

``

1632

`+

#[cfg_attr(not(test), rustc_diagnostic_item = "hashmap_values_mut_ty")]

`

1625

1633

`pub struct ValuesMut<'a, K: 'a, V: 'a> {

`

1626

1634

`inner: IterMut<'a, K, V>,

`

1627

1635

`}

`