@@ -534,7 +534,7 @@ fn search_hashed_nonempty_mut<K, V, M, F>(table: M, hash: SafeHash, mut is_match
534534 }
535535}
536536
537- fn pop_internal < K , V > ( starting_bucket : FullBucketMut < K , V > )
537+ fn pop_internal < K , V > ( starting_bucket : FullBucketMut < ' _ , K , V > )
538538 -> ( K , V , & mut RawTable < K , V > )
539539{
540540 let ( empty, retkey, retval) = starting_bucket. take ( ) ;
@@ -759,7 +759,7 @@ impl<K, V, S> HashMap<K, V, S> {
759759 /// }
760760 /// ```
761761 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
762- pub fn keys ( & self ) -> Keys < K , V > {
762+ pub fn keys ( & self ) -> Keys < ' _ , K , V > {
763763 Keys { inner : self . iter ( ) }
764764 }
765765
@@ -781,7 +781,7 @@ impl<K, V, S> HashMap<K, V, S> {
781781 /// }
782782 /// ```
783783 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
784- pub fn values ( & self ) -> Values < K , V > {
784+ pub fn values ( & self ) -> Values < ' _ , K , V > {
785785 Values { inner : self . iter ( ) }
786786 }
787787
@@ -808,7 +808,7 @@ impl<K, V, S> HashMap<K, V, S> {
808808 /// }
809809 /// ```
810810 #[ stable( feature = "map_values_mut" , since = "1.10.0" ) ]
811- pub fn values_mut ( & mut self ) -> ValuesMut < K , V > {
811+ pub fn values_mut ( & mut self ) -> ValuesMut < ' _ , K , V > {
812812 ValuesMut { inner : self . iter_mut ( ) }
813813 }
814814
@@ -830,7 +830,7 @@ impl<K, V, S> HashMap<K, V, S> {
830830 /// }
831831 /// ```
832832 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
833- pub fn iter ( & self ) -> Iter < K , V > {
833+ pub fn iter ( & self ) -> Iter < ' _ , K , V > {
834834 Iter { inner : self . table . iter ( ) }
835835 }
836836
@@ -858,7 +858,7 @@ impl<K, V, S> HashMap<K, V, S> {
858858 /// }
859859 /// ```
860860 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
861- pub fn iter_mut ( & mut self ) -> IterMut < K , V > {
861+ pub fn iter_mut ( & mut self ) -> IterMut < ' _ , K , V > {
862862 IterMut { inner : self . table . iter_mut ( ) }
863863 }
864864
@@ -918,7 +918,7 @@ impl<K, V, S> HashMap<K, V, S> {
918918 /// ```
919919 #[ inline]
920920 #[ stable( feature = "drain" , since = "1.6.0" ) ]
921- pub fn drain ( & mut self ) -> Drain < K , V > {
921+ pub fn drain ( & mut self ) -> Drain < ' _ , K , V > {
922922 Drain { inner : self . table . drain ( ) }
923923 }
924924
@@ -1270,7 +1270,7 @@ impl<K, V, S> HashMap<K, V, S>
12701270 /// assert_eq!(letters.get(&'y'), None);
12711271 /// ```
12721272 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1273- pub fn entry ( & mut self , key : K ) -> Entry < K , V > {
1273+ pub fn entry ( & mut self , key : K ) -> Entry < ' _ , K , V > {
12741274 // Gotta resize now.
12751275 self . reserve ( 1 ) ;
12761276 let hash = self . make_hash ( & key) ;
@@ -1571,7 +1571,7 @@ impl<K, V, S> HashMap<K, V, S>
15711571 /// are free to assume this doesn't happen (within the limits of memory-safety).
15721572 #[ inline( always) ]
15731573 #[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1574- pub fn raw_entry_mut ( & mut self ) -> RawEntryBuilderMut < K , V , S > {
1574+ pub fn raw_entry_mut ( & mut self ) -> RawEntryBuilderMut < ' _ , K , V , S > {
15751575 self . reserve ( 1 ) ;
15761576 RawEntryBuilderMut { map : self }
15771577 }
@@ -1592,7 +1592,7 @@ impl<K, V, S> HashMap<K, V, S>
15921592 ///
15931593 /// Immutable raw entries have very limited use; you might instead want `raw_entry_mut`.
15941594 #[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
1595- pub fn raw_entry ( & self ) -> RawEntryBuilder < K , V , S > {
1595+ pub fn raw_entry ( & self ) -> RawEntryBuilder < ' _ , K , V , S > {
15961596 RawEntryBuilder { map : self }
15971597 }
15981598}
@@ -1626,7 +1626,7 @@ impl<K, V, S> Debug for HashMap<K, V, S>
16261626 V : Debug ,
16271627 S : BuildHasher
16281628{
1629- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1629+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
16301630 f. debug_map ( ) . entries ( self . iter ( ) ) . finish ( )
16311631 }
16321632}
@@ -1683,7 +1683,7 @@ impl<K, V> Clone for Iter<'_, K, V> {
16831683
16841684#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
16851685impl < K : Debug , V : Debug > fmt:: Debug for Iter < ' _ , K , V > {
1686- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1686+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
16871687 f. debug_list ( )
16881688 . entries ( self . clone ( ) )
16891689 . finish ( )
@@ -1736,7 +1736,7 @@ impl<K, V> Clone for Keys<'_, K, V> {
17361736
17371737#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
17381738impl < K : Debug , V > fmt:: Debug for Keys < ' _ , K , V > {
1739- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1739+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
17401740 f. debug_list ( )
17411741 . entries ( self . clone ( ) )
17421742 . finish ( )
@@ -1765,7 +1765,7 @@ impl<K, V> Clone for Values<'_, K, V> {
17651765
17661766#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
17671767impl < K , V : Debug > fmt:: Debug for Values < ' _ , K , V > {
1768- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1768+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
17691769 f. debug_list ( )
17701770 . entries ( self . clone ( ) )
17711771 . finish ( )
@@ -2244,15 +2244,15 @@ impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S> {
22442244
22452245#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
22462246impl < K , V , S > Debug for RawEntryBuilderMut < ' _ , K , V , S > {
2247- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2247+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
22482248 f. debug_struct ( "RawEntryBuilder" )
22492249 . finish ( )
22502250 }
22512251}
22522252
22532253#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
22542254impl < K : Debug , V : Debug , S > Debug for RawEntryMut < ' _ , K , V , S > {
2255- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2255+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
22562256 match * self {
22572257 RawEntryMut :: Vacant ( ref v) => {
22582258 f. debug_tuple ( "RawEntry" )
@@ -2270,7 +2270,7 @@ impl<K: Debug, V: Debug, S> Debug for RawEntryMut<'_, K, V, S> {
22702270
22712271#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
22722272impl < K : Debug , V : Debug > Debug for RawOccupiedEntryMut < ' _ , K , V > {
2273- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2273+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
22742274 f. debug_struct ( "RawOccupiedEntryMut" )
22752275 . field ( "key" , self . key ( ) )
22762276 . field ( "value" , self . get ( ) )
@@ -2280,15 +2280,15 @@ impl<K: Debug, V: Debug> Debug for RawOccupiedEntryMut<'_, K, V> {
22802280
22812281#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
22822282impl < K , V , S > Debug for RawVacantEntryMut < ' _ , K , V , S > {
2283- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2283+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
22842284 f. debug_struct ( "RawVacantEntryMut" )
22852285 . finish ( )
22862286 }
22872287}
22882288
22892289#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
22902290impl < K , V , S > Debug for RawEntryBuilder < ' _ , K , V , S > {
2291- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2291+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
22922292 f. debug_struct ( "RawEntryBuilder" )
22932293 . finish ( )
22942294 }
@@ -2315,7 +2315,7 @@ pub enum Entry<'a, K: 'a, V: 'a> {
23152315
23162316#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
23172317impl < K : Debug , V : Debug > Debug for Entry < ' _ , K , V > {
2318- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2318+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
23192319 match * self {
23202320 Vacant ( ref v) => {
23212321 f. debug_tuple ( "Entry" )
@@ -2343,7 +2343,7 @@ pub struct OccupiedEntry<'a, K: 'a, V: 'a> {
23432343
23442344#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
23452345impl < K : Debug , V : Debug > Debug for OccupiedEntry < ' _ , K , V > {
2346- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2346+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
23472347 f. debug_struct ( "OccupiedEntry" )
23482348 . field ( "key" , self . key ( ) )
23492349 . field ( "value" , self . get ( ) )
@@ -2364,7 +2364,7 @@ pub struct VacantEntry<'a, K: 'a, V: 'a> {
23642364
23652365#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
23662366impl < K : Debug , V > Debug for VacantEntry < ' _ , K , V > {
2367- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2367+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
23682368 f. debug_tuple ( "VacantEntry" )
23692369 . field ( self . key ( ) )
23702370 . finish ( )
@@ -2479,7 +2479,7 @@ impl<K, V> fmt::Debug for IterMut<'_, K, V>
24792479 where K : fmt:: Debug ,
24802480 V : fmt:: Debug ,
24812481{
2482- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2482+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
24832483 f. debug_list ( )
24842484 . entries ( self . inner . iter ( ) )
24852485 . finish ( )
@@ -2511,7 +2511,7 @@ impl<K, V> FusedIterator for IntoIter<K, V> {}
25112511
25122512#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
25132513impl < K : Debug , V : Debug > fmt:: Debug for IntoIter < K , V > {
2514- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2514+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
25152515 f. debug_list ( )
25162516 . entries ( self . inner . iter ( ) )
25172517 . finish ( )
@@ -2592,7 +2592,7 @@ impl<K, V> fmt::Debug for ValuesMut<'_, K, V>
25922592 where K : fmt:: Debug ,
25932593 V : fmt:: Debug ,
25942594{
2595- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2595+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
25962596 f. debug_list ( )
25972597 . entries ( self . inner . inner . iter ( ) )
25982598 . finish ( )
@@ -2627,7 +2627,7 @@ impl<K, V> fmt::Debug for Drain<'_, K, V>
26272627 where K : fmt:: Debug ,
26282628 V : fmt:: Debug ,
26292629{
2630- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2630+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
26312631 f. debug_list ( )
26322632 . entries ( self . inner . iter ( ) )
26332633 . finish ( )
@@ -3247,7 +3247,7 @@ impl Default for RandomState {
32473247
32483248#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
32493249impl fmt:: Debug for RandomState {
3250- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
3250+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
32513251 f. pad ( "RandomState { .. }" )
32523252 }
32533253}
0 commit comments