@@ -1393,6 +1393,7 @@ where
13931393/// let iter = map.iter();
13941394/// ```
13951395#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1396+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "hashmap_iter_ty" ) ]
13961397pub struct Iter < ' a , K : ' a , V : ' a > {
13971398 base : base:: Iter < ' a , K , V > ,
13981399}
@@ -1431,6 +1432,7 @@ impl<K: Debug, V: Debug> fmt::Debug for Iter<'_, K, V> {
14311432/// let iter = map.iter_mut();
14321433/// ```
14331434#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1435+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "hashmap_iter_mut_ty" ) ]
14341436pub struct IterMut < ' a , K : ' a , V : ' a > {
14351437 base : base:: IterMut < ' a , K , V > ,
14361438}
@@ -1491,6 +1493,7 @@ impl<K, V> IntoIter<K, V> {
14911493/// let iter_keys = map.keys();
14921494/// ```
14931495#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1496+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "hashmap_keys_ty" ) ]
14941497pub struct Keys < ' a , K : ' a , V : ' a > {
14951498 inner : Iter < ' a , K , V > ,
14961499}
@@ -1529,6 +1532,7 @@ impl<K: Debug, V> fmt::Debug for Keys<'_, K, V> {
15291532/// let iter_values = map.values();
15301533/// ```
15311534#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1535+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "hashmap_values_ty" ) ]
15321536pub struct Values < ' a , K : ' a , V : ' a > {
15331537 inner : Iter < ' a , K , V > ,
15341538}
@@ -1567,6 +1571,7 @@ impl<K, V: Debug> fmt::Debug for Values<'_, K, V> {
15671571/// let iter = map.drain();
15681572/// ```
15691573#[ stable( feature = "drain" , since = "1.6.0" ) ]
1574+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "hashmap_drain_ty" ) ]
15701575pub struct Drain < ' a , K : ' a , V : ' a > {
15711576 base : base:: Drain < ' a , K , V > ,
15721577}
@@ -1624,6 +1629,7 @@ where
16241629/// let iter_values = map.values_mut();
16251630/// ```
16261631#[ stable( feature = "map_values_mut" , since = "1.10.0" ) ]
1632+ #[ cfg_attr( not( test) , rustc_diagnostic_item = "hashmap_values_mut_ty" ) ]
16271633pub struct ValuesMut < ' a , K : ' a , V : ' a > {
16281634 inner : IterMut < ' a , K , V > ,
16291635}
0 commit comments