@@ -249,7 +249,7 @@ impl<K, Q: ?Sized> super::Recover<Q> for BTreeMap<K, ()>
249249
250250 fn replace ( & mut self , key : K ) -> Option < K > {
251251 self . ensure_root_is_owned ( ) ;
252- match search:: search_tree :: < marker:: Mut , K , ( ) , K > ( self . root . as_mut ( ) , & key) {
252+ match search:: search_tree :: < marker:: Mut < ' _ > , K , ( ) , K > ( self . root . as_mut ( ) , & key) {
253253 Found ( handle) => Some ( mem:: replace ( handle. into_kv_mut ( ) . 0 , key) ) ,
254254 GoDown ( handle) => {
255255 VacantEntry {
@@ -280,7 +280,7 @@ pub struct Iter<'a, K: 'a, V: 'a> {
280280
281281#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
282282impl < K : fmt:: Debug , V : fmt:: Debug > fmt:: Debug for Iter < ' _ , K , V > {
283- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
283+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
284284 f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
285285 }
286286}
@@ -315,7 +315,7 @@ pub struct IntoIter<K, V> {
315315
316316#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
317317impl < K : fmt:: Debug , V : fmt:: Debug > fmt:: Debug for IntoIter < K , V > {
318- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
318+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
319319 let range = Range {
320320 front : self . front . reborrow ( ) ,
321321 back : self . back . reborrow ( ) ,
@@ -338,7 +338,7 @@ pub struct Keys<'a, K: 'a, V: 'a> {
338338
339339#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
340340impl < K : fmt:: Debug , V > fmt:: Debug for Keys < ' _ , K , V > {
341- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
341+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
342342 f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
343343 }
344344}
@@ -357,7 +357,7 @@ pub struct Values<'a, K: 'a, V: 'a> {
357357
358358#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
359359impl < K , V : fmt:: Debug > fmt:: Debug for Values < ' _ , K , V > {
360- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
360+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
361361 f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
362362 }
363363}
@@ -390,7 +390,7 @@ pub struct Range<'a, K: 'a, V: 'a> {
390390
391391#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
392392impl < K : fmt:: Debug , V : fmt:: Debug > fmt:: Debug for Range < ' _ , K , V > {
393- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
393+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
394394 f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
395395 }
396396}
@@ -413,7 +413,7 @@ pub struct RangeMut<'a, K: 'a, V: 'a> {
413413
414414#[ stable( feature = "collection_debug" , since = "1.17.0" ) ]
415415impl < K : fmt:: Debug , V : fmt:: Debug > fmt:: Debug for RangeMut < ' _ , K , V > {
416- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
416+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
417417 let range = Range {
418418 front : self . front . reborrow ( ) ,
419419 back : self . back . reborrow ( ) ,
@@ -443,7 +443,7 @@ pub enum Entry<'a, K: 'a, V: 'a> {
443443
444444#[ stable( feature= "debug_btree_map" , since = "1.12.0" ) ]
445445impl < K : Debug + Ord , V : Debug > Debug for Entry < ' _ , K , V > {
446- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
446+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
447447 match * self {
448448 Vacant ( ref v) => f. debug_tuple ( "Entry" )
449449 . field ( v)
@@ -471,7 +471,7 @@ pub struct VacantEntry<'a, K: 'a, V: 'a> {
471471
472472#[ stable( feature= "debug_btree_map" , since = "1.12.0" ) ]
473473impl < K : Debug + Ord , V > Debug for VacantEntry < ' _ , K , V > {
474- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
474+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
475475 f. debug_tuple ( "VacantEntry" )
476476 . field ( self . key ( ) )
477477 . finish ( )
@@ -494,7 +494,7 @@ pub struct OccupiedEntry<'a, K: 'a, V: 'a> {
494494
495495#[ stable( feature= "debug_btree_map" , since = "1.12.0" ) ]
496496impl < K : Debug + Ord , V : Debug > Debug for OccupiedEntry < ' _ , K , V > {
497- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
497+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
498498 f. debug_struct ( "OccupiedEntry" )
499499 . field ( "key" , self . key ( ) )
500500 . field ( "value" , self . get ( ) )
@@ -818,7 +818,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
818818 /// assert_eq!(Some((&5, &"b")), map.range(4..).next());
819819 /// ```
820820 #[ stable( feature = "btree_range" , since = "1.17.0" ) ]
821- pub fn range < T : ?Sized , R > ( & self , range : R ) -> Range < K , V >
821+ pub fn range < T : ?Sized , R > ( & self , range : R ) -> Range < ' _ , K , V >
822822 where T : Ord , K : Borrow < T > , R : RangeBounds < T >
823823 {
824824 let root1 = self . root . as_ref ( ) ;
@@ -859,7 +859,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
859859 /// }
860860 /// ```
861861 #[ stable( feature = "btree_range" , since = "1.17.0" ) ]
862- pub fn range_mut < T : ?Sized , R > ( & mut self , range : R ) -> RangeMut < K , V >
862+ pub fn range_mut < T : ?Sized , R > ( & mut self , range : R ) -> RangeMut < ' _ , K , V >
863863 where T : Ord , K : Borrow < T > , R : RangeBounds < T >
864864 {
865865 let root1 = self . root . as_mut ( ) ;
@@ -892,7 +892,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
892892 /// assert_eq!(count["a"], 3);
893893 /// ```
894894 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
895- pub fn entry ( & mut self , key : K ) -> Entry < K , V > {
895+ pub fn entry ( & mut self , key : K ) -> Entry < ' _ , K , V > {
896896 // FIXME(@porglezomp) Avoid allocating if we don't insert
897897 self . ensure_root_is_owned ( ) ;
898898 match search:: search_tree ( self . root . as_mut ( ) , & key) {
@@ -1783,7 +1783,7 @@ impl<K: Ord, V: Ord> Ord for BTreeMap<K, V> {
17831783
17841784#[ stable( feature = "rust1" , since = "1.0.0" ) ]
17851785impl < K : Debug , V : Debug > Debug for BTreeMap < K , V > {
1786- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1786+ fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
17871787 f. debug_map ( ) . entries ( self . iter ( ) ) . finish ( )
17881788 }
17891789}
@@ -1940,7 +1940,7 @@ impl<K, V> BTreeMap<K, V> {
19401940 /// assert_eq!((*first_key, *first_value), (1, "a"));
19411941 /// ```
19421942 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1943- pub fn iter ( & self ) -> Iter < K , V > {
1943+ pub fn iter ( & self ) -> Iter < ' _ , K , V > {
19441944 Iter {
19451945 range : Range {
19461946 front : first_leaf_edge ( self . root . as_ref ( ) ) ,
@@ -1972,7 +1972,7 @@ impl<K, V> BTreeMap<K, V> {
19721972 /// }
19731973 /// ```
19741974 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
1975- pub fn iter_mut ( & mut self ) -> IterMut < K , V > {
1975+ pub fn iter_mut ( & mut self ) -> IterMut < ' _ , K , V > {
19761976 let root1 = self . root . as_mut ( ) ;
19771977 let root2 = unsafe { ptr:: read ( & root1) } ;
19781978 IterMut {
@@ -2049,7 +2049,7 @@ impl<K, V> BTreeMap<K, V> {
20492049 /// String::from("goodbye!")]);
20502050 /// ```
20512051 #[ stable( feature = "map_values_mut" , since = "1.10.0" ) ]
2052- pub fn values_mut ( & mut self ) -> ValuesMut < K , V > {
2052+ pub fn values_mut ( & mut self ) -> ValuesMut < ' _ , K , V > {
20532053 ValuesMut { inner : self . iter_mut ( ) }
20542054 }
20552055
0 commit comments