@@ -270,7 +270,7 @@ pub struct Iter<'a, K: 'a, V: 'a> {
270270 length : usize ,
271271}
272272
273- #[ stable( feature = "collection_debug" , since = "1.15 .0" ) ]
273+ #[ stable( feature = "collection_debug" , since = "1.17 .0" ) ]
274274impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for Iter < ' a , K , V > {
275275 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
276276 f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
@@ -279,18 +279,12 @@ impl<'a, K: 'a + fmt::Debug, V: 'a + fmt::Debug> fmt::Debug for Iter<'a, K, V> {
279279
280280/// A mutable iterator over a BTreeMap's entries.
281281#[ stable( feature = "rust1" , since = "1.0.0" ) ]
282+ #[ derive( Debug ) ]
282283pub struct IterMut < ' a , K : ' a , V : ' a > {
283284 range : RangeMut < ' a , K , V > ,
284285 length : usize ,
285286}
286287
287- #[ stable( feature = "collection_debug" , since = "1.15.0" ) ]
288- impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for IterMut < ' a , K , V > {
289- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
290- f. pad ( & format ! ( "BTreeMap::IterMut({:?})" , self . range) )
291- }
292- }
293-
294288/// An owning iterator over a BTreeMap's entries.
295289#[ stable( feature = "rust1" , since = "1.0.0" ) ]
296290pub struct IntoIter < K , V > {
@@ -299,7 +293,7 @@ pub struct IntoIter<K, V> {
299293 length : usize ,
300294}
301295
302- #[ stable( feature = "collection_debug" , since = "1.15 .0" ) ]
296+ #[ stable( feature = "collection_debug" , since = "1.17 .0" ) ]
303297impl < K : fmt:: Debug , V : fmt:: Debug > fmt:: Debug for IntoIter < K , V > {
304298 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
305299 let range = Range {
@@ -316,7 +310,7 @@ pub struct Keys<'a, K: 'a, V: 'a> {
316310 inner : Iter < ' a , K , V > ,
317311}
318312
319- #[ stable( feature = "collection_debug" , since = "1.15 .0" ) ]
313+ #[ stable( feature = "collection_debug" , since = "1.17 .0" ) ]
320314impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for Keys < ' a , K , V > {
321315 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
322316 f. debug_list ( ) . entries ( self . inner . clone ( ) ) . finish ( )
@@ -329,7 +323,7 @@ pub struct Values<'a, K: 'a, V: 'a> {
329323 inner : Iter < ' a , K , V > ,
330324}
331325
332- #[ stable( feature = "collection_debug" , since = "1.15 .0" ) ]
326+ #[ stable( feature = "collection_debug" , since = "1.17 .0" ) ]
333327impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for Values < ' a , K , V > {
334328 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
335329 f. debug_list ( ) . entries ( self . inner . clone ( ) ) . finish ( )
@@ -338,24 +332,18 @@ impl<'a, K: 'a + fmt::Debug, V: 'a + fmt::Debug> fmt::Debug for Values<'a, K, V>
338332
339333/// A mutable iterator over a BTreeMap's values.
340334#[ stable( feature = "map_values_mut" , since = "1.10.0" ) ]
335+ #[ derive( Debug ) ]
341336pub struct ValuesMut < ' a , K : ' a , V : ' a > {
342337 inner : IterMut < ' a , K , V > ,
343338}
344339
345- #[ stable( feature = "collection_debug" , since = "1.15.0" ) ]
346- impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for ValuesMut < ' a , K , V > {
347- fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
348- f. pad ( & format ! ( "BTreeMap::ValuesMut({:?})" , self . inner) )
349- }
350- }
351-
352340/// An iterator over a sub-range of BTreeMap's entries.
353341pub struct Range < ' a , K : ' a , V : ' a > {
354342 front : Handle < NodeRef < marker:: Immut < ' a > , K , V , marker:: Leaf > , marker:: Edge > ,
355343 back : Handle < NodeRef < marker:: Immut < ' a > , K , V , marker:: Leaf > , marker:: Edge > ,
356344}
357345
358- #[ stable( feature = "collection_debug" , since = "1.15 .0" ) ]
346+ #[ stable( feature = "collection_debug" , since = "1.17 .0" ) ]
359347impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for Range < ' a , K , V > {
360348 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
361349 f. debug_list ( ) . entries ( self . clone ( ) ) . finish ( )
@@ -371,7 +359,7 @@ pub struct RangeMut<'a, K: 'a, V: 'a> {
371359 _marker : PhantomData < & ' a mut ( K , V ) > ,
372360}
373361
374- #[ stable( feature = "collection_debug" , since = "1.15 .0" ) ]
362+ #[ stable( feature = "collection_debug" , since = "1.17 .0" ) ]
375363impl < ' a , K : ' a + fmt:: Debug , V : ' a + fmt:: Debug > fmt:: Debug for RangeMut < ' a , K , V > {
376364 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
377365 let range = Range {
0 commit comments