@@ -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" )
@@ -2348,7 +2348,7 @@ unsafe impl<'a, K: 'a + Sync, V: 'a + Sync> Sync for OccupiedEntry<'a, K, V> {}
2348
2348
2349
2349
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2350
2350
impl < 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 {
2352
2352
f. debug_struct ( "OccupiedEntry" )
2353
2353
. field ( "key" , self . key ( ) )
2354
2354
. field ( "value" , self . get ( ) )
@@ -2374,7 +2374,7 @@ unsafe impl<'a, K: 'a + Sync, V: 'a + Sync> Sync for VacantEntry<'a, K, V> {}
2374
2374
2375
2375
#[ stable( feature= "debug_hash_map" , since = "1.12.0" ) ]
2376
2376
impl < 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 {
2378
2378
f. debug_tuple ( "VacantEntry" )
2379
2379
. field ( self . key ( ) )
2380
2380
. finish ( )
@@ -2489,7 +2489,7 @@ impl<K, V> fmt::Debug for IterMut<'_, K, V>
2489
2489
where K : fmt:: Debug ,
2490
2490
V : fmt:: Debug ,
2491
2491
{
2492
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2492
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2493
2493
f. debug_list ( )
2494
2494
. entries ( self . inner . iter ( ) )
2495
2495
. finish ( )
@@ -2521,7 +2521,7 @@ impl<K, V> FusedIterator for IntoIter<K, V> {}
2521
2521
2522
2522
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
2523
2523
impl < 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 {
2525
2525
f. debug_list ( )
2526
2526
. entries ( self . inner . iter ( ) )
2527
2527
. finish ( )
@@ -2602,7 +2602,7 @@ impl<K, V> fmt::Debug for ValuesMut<'_, K, V>
2602
2602
where K : fmt:: Debug ,
2603
2603
V : fmt:: Debug ,
2604
2604
{
2605
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2605
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2606
2606
f. debug_list ( )
2607
2607
. entries ( self . inner . inner . iter ( ) )
2608
2608
. finish ( )
@@ -2637,7 +2637,7 @@ impl<K, V> fmt::Debug for Drain<'_, K, V>
2637
2637
where K : fmt:: Debug ,
2638
2638
V : fmt:: Debug ,
2639
2639
{
2640
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
2640
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
2641
2641
f. debug_list ( )
2642
2642
. entries ( self . inner . iter ( ) )
2643
2643
. finish ( )
@@ -3257,7 +3257,7 @@ impl Default for RandomState {
3257
3257
3258
3258
#[ stable( feature = "std_debug" , since = "1.16.0" ) ]
3259
3259
impl fmt:: Debug for RandomState {
3260
- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
3260
+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
3261
3261
f. pad ( "RandomState { .. }" )
3262
3262
}
3263
3263
}
0 commit comments