@@ -534,7 +534,7 @@ fn search_hashed_nonempty_mut<K, V, M, F>(table: M, hash: SafeHash, mut is_match
534
534
}
535
535
}
536
536
537
- fn pop_internal < K , V > ( starting_bucket : FullBucketMut < K , V > )
537
+ fn pop_internal < K , V > ( starting_bucket : FullBucketMut < ' _ , K , V > )
538
538
-> ( K , V , & mut RawTable < K , V > )
539
539
{
540
540
let ( empty, retkey, retval) = starting_bucket. take ( ) ;
@@ -759,7 +759,7 @@ impl<K, V, S> HashMap<K, V, S> {
759
759
/// }
760
760
/// ```
761
761
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
762
- pub fn keys ( & self ) -> Keys < K , V > {
762
+ pub fn keys ( & self ) -> Keys < ' _ , K , V > {
763
763
Keys { inner : self . iter ( ) }
764
764
}
765
765
@@ -781,7 +781,7 @@ impl<K, V, S> HashMap<K, V, S> {
781
781
/// }
782
782
/// ```
783
783
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
784
- pub fn values ( & self ) -> Values < K , V > {
784
+ pub fn values ( & self ) -> Values < ' _ , K , V > {
785
785
Values { inner : self . iter ( ) }
786
786
}
787
787
@@ -808,7 +808,7 @@ impl<K, V, S> HashMap<K, V, S> {
808
808
/// }
809
809
/// ```
810
810
#[ 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 > {
812
812
ValuesMut { inner : self . iter_mut ( ) }
813
813
}
814
814
@@ -830,7 +830,7 @@ impl<K, V, S> HashMap<K, V, S> {
830
830
/// }
831
831
/// ```
832
832
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
833
- pub fn iter ( & self ) -> Iter < K , V > {
833
+ pub fn iter ( & self ) -> Iter < ' _ , K , V > {
834
834
Iter { inner : self . table . iter ( ) }
835
835
}
836
836
@@ -858,7 +858,7 @@ impl<K, V, S> HashMap<K, V, S> {
858
858
/// }
859
859
/// ```
860
860
#[ 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 > {
862
862
IterMut { inner : self . table . iter_mut ( ) }
863
863
}
864
864
@@ -918,7 +918,7 @@ impl<K, V, S> HashMap<K, V, S> {
918
918
/// ```
919
919
#[ inline]
920
920
#[ 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 > {
922
922
Drain { inner : self . table . drain ( ) }
923
923
}
924
924
@@ -1270,7 +1270,7 @@ impl<K, V, S> HashMap<K, V, S>
1270
1270
/// assert_eq!(letters.get(&'y'), None);
1271
1271
/// ```
1272
1272
#[ 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 > {
1274
1274
// Gotta resize now.
1275
1275
self . reserve ( 1 ) ;
1276
1276
let hash = self . make_hash ( & key) ;
@@ -1571,7 +1571,7 @@ impl<K, V, S> HashMap<K, V, S>
1571
1571
/// are free to assume this doesn't happen (within the limits of memory-safety).
1572
1572
#[ inline( always) ]
1573
1573
#[ 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 > {
1575
1575
self . reserve ( 1 ) ;
1576
1576
RawEntryBuilderMut { map : self }
1577
1577
}
@@ -1592,7 +1592,7 @@ impl<K, V, S> HashMap<K, V, S>
1592
1592
///
1593
1593
/// Immutable raw entries have very limited use; you might instead want `raw_entry_mut`.
1594
1594
#[ 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 > {
1596
1596
RawEntryBuilder { map : self }
1597
1597
}
1598
1598
}
@@ -1626,7 +1626,7 @@ impl<K, V, S> Debug for HashMap<K, V, S>
1626
1626
V : Debug ,
1627
1627
S : BuildHasher
1628
1628
{
1629
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1629
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
1630
1630
f. debug_map ( ) . entries ( self . iter ( ) ) . finish ( )
1631
1631
}
1632
1632
}
@@ -1683,7 +1683,7 @@ impl<K, V> Clone for Iter<'_, K, V> {
1683
1683
1684
1684
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
1685
1685
impl < 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 {
1687
1687
f. debug_list ( )
1688
1688
. entries ( self . clone ( ) )
1689
1689
. finish ( )
@@ -1736,7 +1736,7 @@ impl<K, V> Clone for Keys<'_, K, V> {
1736
1736
1737
1737
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
1738
1738
impl < 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 {
1740
1740
f. debug_list ( )
1741
1741
. entries ( self . clone ( ) )
1742
1742
. finish ( )
@@ -1765,7 +1765,7 @@ impl<K, V> Clone for Values<'_, K, V> {
1765
1765
1766
1766
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
1767
1767
impl < 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 {
1769
1769
f. debug_list ( )
1770
1770
. entries ( self . clone ( ) )
1771
1771
. finish ( )
@@ -2244,15 +2244,15 @@ impl<'a, K, V, S> RawVacantEntryMut<'a, K, V, S> {
2244
2244
2245
2245
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
2246
2246
impl < 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 {
2248
2248
f. debug_struct ( "RawEntryBuilder" )
2249
2249
. finish ( )
2250
2250
}
2251
2251
}
2252
2252
2253
2253
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
2254
2254
impl < 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 {
2256
2256
match * self {
2257
2257
RawEntryMut :: Vacant ( ref v) => {
2258
2258
f. debug_tuple ( "RawEntry" )
@@ -2270,7 +2270,7 @@ impl<K: Debug, V: Debug, S> Debug for RawEntryMut<'_, K, V, S> {
2270
2270
2271
2271
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
2272
2272
impl < 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 {
2274
2274
f. debug_struct ( "RawOccupiedEntryMut" )
2275
2275
. field ( "key" , self . key ( ) )
2276
2276
. field ( "value" , self . get ( ) )
@@ -2280,15 +2280,15 @@ impl<K: Debug, V: Debug> Debug for RawOccupiedEntryMut<'_, K, V> {
2280
2280
2281
2281
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
2282
2282
impl < 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 {
2284
2284
f. debug_struct ( "RawVacantEntryMut" )
2285
2285
. finish ( )
2286
2286
}
2287
2287
}
2288
2288
2289
2289
#[ unstable( feature = "hash_raw_entry" , issue = "56167" ) ]
2290
2290
impl < 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 {
2292
2292
f. debug_struct ( "RawEntryBuilder" )
2293
2293
. finish ( )
2294
2294
}
@@ -2315,7 +2315,7 @@ pub enum Entry<'a, K: 'a, V: 'a> {
2315
2315
2316
2316
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2317
2317
impl < 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 {
2319
2319
match * self {
2320
2320
Vacant ( ref v) => {
2321
2321
f. debug_tuple ( "Entry" )
@@ -2343,7 +2343,7 @@ pub struct OccupiedEntry<'a, K: 'a, V: 'a> {
2343
2343
2344
2344
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2345
2345
impl < 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 {
2347
2347
f. debug_struct ( "OccupiedEntry" )
2348
2348
. field ( "key" , self . key ( ) )
2349
2349
. field ( "value" , self . get ( ) )
@@ -2364,7 +2364,7 @@ pub struct VacantEntry<'a, K: 'a, V: 'a> {
2364
2364
2365
2365
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2366
2366
impl < 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 {
2368
2368
f. debug_tuple ( "VacantEntry" )
2369
2369
. field ( self . key ( ) )
2370
2370
. finish ( )
@@ -2479,7 +2479,7 @@ impl<K, V> fmt::Debug for IterMut<'_, K, V>
2479
2479
where K : fmt:: Debug ,
2480
2480
V : fmt:: Debug ,
2481
2481
{
2482
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2482
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2483
2483
f. debug_list ( )
2484
2484
. entries ( self . inner . iter ( ) )
2485
2485
. finish ( )
@@ -2511,7 +2511,7 @@ impl<K, V> FusedIterator for IntoIter<K, V> {}
2511
2511
2512
2512
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
2513
2513
impl < 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 {
2515
2515
f. debug_list ( )
2516
2516
. entries ( self . inner . iter ( ) )
2517
2517
. finish ( )
@@ -2592,7 +2592,7 @@ impl<K, V> fmt::Debug for ValuesMut<'_, K, V>
2592
2592
where K : fmt:: Debug ,
2593
2593
V : fmt:: Debug ,
2594
2594
{
2595
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2595
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2596
2596
f. debug_list ( )
2597
2597
. entries ( self . inner . inner . iter ( ) )
2598
2598
. finish ( )
@@ -2627,7 +2627,7 @@ impl<K, V> fmt::Debug for Drain<'_, K, V>
2627
2627
where K : fmt:: Debug ,
2628
2628
V : fmt:: Debug ,
2629
2629
{
2630
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2630
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2631
2631
f. debug_list ( )
2632
2632
. entries ( self . inner . iter ( ) )
2633
2633
. finish ( )
@@ -3247,7 +3247,7 @@ impl Default for RandomState {
3247
3247
3248
3248
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
3249
3249
impl fmt:: Debug for RandomState {
3250
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
3250
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
3251
3251
f. pad ( "RandomState { .. }" )
3252
3252
}
3253
3253
}
0 commit comments