@@ -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" )
@@ -2348,7 +2348,7 @@ unsafe impl<'a, K: 'a + Sync, V: 'a + Sync> Sync for OccupiedEntry<'a, K, V> {}
23482348
23492349#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
23502350impl < K : Debug , V : Debug > Debug for OccupiedEntry < ' _ , K , V > {
2351- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2351+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
23522352 f. debug_struct ( "OccupiedEntry" )
23532353 . field ( "key" , self . key ( ) )
23542354 . field ( "value" , self . get ( ) )
@@ -2374,7 +2374,7 @@ unsafe impl<'a, K: 'a + Sync, V: 'a + Sync> Sync for VacantEntry<'a, K, V> {}
23742374
23752375#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
23762376impl < K : Debug , V > Debug for VacantEntry < ' _ , K , V > {
2377- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2377+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
23782378 f. debug_tuple ( "VacantEntry" )
23792379 . field ( self . key ( ) )
23802380 . finish ( )
@@ -2489,7 +2489,7 @@ impl<K, V> fmt::Debug for IterMut<'_, K, V>
24892489 where K : fmt:: Debug ,
24902490 V : fmt:: Debug ,
24912491{
2492- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2492+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
24932493 f. debug_list ( )
24942494 . entries ( self . inner . iter ( ) )
24952495 . finish ( )
@@ -2521,7 +2521,7 @@ impl<K, V> FusedIterator for IntoIter<K, V> {}
25212521
25222522#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
25232523impl < K : Debug , V : Debug > fmt:: Debug for IntoIter < K , V > {
2524- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2524+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
25252525 f. debug_list ( )
25262526 . entries ( self . inner . iter ( ) )
25272527 . finish ( )
@@ -2602,7 +2602,7 @@ impl<K, V> fmt::Debug for ValuesMut<'_, K, V>
26022602 where K : fmt:: Debug ,
26032603 V : fmt:: Debug ,
26042604{
2605- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2605+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
26062606 f. debug_list ( )
26072607 . entries ( self . inner . inner . iter ( ) )
26082608 . finish ( )
@@ -2637,7 +2637,7 @@ impl<K, V> fmt::Debug for Drain<'_, K, V>
26372637 where K : fmt:: Debug ,
26382638 V : fmt:: Debug ,
26392639{
2640- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2640+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
26412641 f. debug_list ( )
26422642 . entries ( self . inner . iter ( ) )
26432643 . finish ( )
@@ -3257,7 +3257,7 @@ impl Default for RandomState {
32573257
32583258#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
32593259impl fmt:: Debug for RandomState {
3260- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
3260+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
32613261 f. pad ( "RandomState { .. }" )
32623262 }
32633263}
0 commit comments