@@ -286,7 +286,7 @@ pub struct Values<'a, K: 'a, V: 'a> {
286286}
287287
288288/// A mutable iterator over a BTreeMap's values.
289- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
289+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
290290pub struct ValuesMut < ' a , K : ' a , V : ' a > {
291291 inner : IterMut < ' a , K , V > ,
292292}
@@ -1144,7 +1144,7 @@ impl<'a, K, V> Iterator for Range<'a, K, V> {
11441144 }
11451145}
11461146
1147- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1147+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
11481148impl < ' a , K , V > Iterator for ValuesMut < ' a , K , V > {
11491149 type Item = & ' a mut V ;
11501150
@@ -1157,14 +1157,14 @@ impl<'a, K, V> Iterator for ValuesMut<'a, K, V> {
11571157 }
11581158}
11591159
1160- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1160+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
11611161impl < ' a , K , V > DoubleEndedIterator for ValuesMut < ' a , K , V > {
11621162 fn next_back ( & mut self ) -> Option < & ' a mut V > {
11631163 self . inner . next_back ( ) . map ( |( _, v) | v)
11641164 }
11651165}
11661166
1167- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1167+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
11681168impl < ' a , K , V > ExactSizeIterator for ValuesMut < ' a , K , V > {
11691169 fn len ( & self ) -> usize {
11701170 self . inner . len ( )
@@ -1575,7 +1575,6 @@ impl<K, V> BTreeMap<K, V> {
15751575 /// Basic usage:
15761576 ///
15771577 /// ```
1578- /// # #![feature(map_values_mut)]
15791578 /// use std::collections::BTreeMap;
15801579 ///
15811580 /// let mut a = BTreeMap::new();
@@ -1590,8 +1589,8 @@ impl<K, V> BTreeMap<K, V> {
15901589 /// assert_eq!(values, [String::from("hello!"),
15911590 /// String::from("goodbye!")]);
15921591 /// ```
1593- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1594- pub fn values_mut < ' a > ( & ' a mut self ) -> ValuesMut < ' a , K , V > {
1592+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
1593+ pub fn values_mut ( & mut self ) -> ValuesMut < K , V > {
15951594 ValuesMut { inner : self . iter_mut ( ) }
15961595 }
15971596
@@ -1656,7 +1655,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
16561655 }
16571656
16581657 /// Returns a reference to this entry's key.
1659- #[ unstable ( feature = "map_entry_keys" , issue = "32281 " ) ]
1658+ #[ stable ( feature = "map_entry_keys" , since = "1.10.0 " ) ]
16601659 pub fn key ( & self ) -> & K {
16611660 match * self {
16621661 Occupied ( ref entry) => entry. key ( ) ,
@@ -1668,7 +1667,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
16681667impl < ' a , K : Ord , V > VacantEntry < ' a , K , V > {
16691668 /// Gets a reference to the key that would be used when inserting a value
16701669 /// through the VacantEntry.
1671- #[ unstable ( feature = "map_entry_keys" , issue = "32281 " ) ]
1670+ #[ stable ( feature = "map_entry_keys" , since = "1.10.0 " ) ]
16721671 pub fn key ( & self ) -> & K {
16731672 & self . key
16741673 }
@@ -1718,7 +1717,7 @@ impl<'a, K: Ord, V> VacantEntry<'a, K, V> {
17181717
17191718impl < ' a , K : Ord , V > OccupiedEntry < ' a , K , V > {
17201719 /// Gets a reference to the key in the entry.
1721- #[ unstable ( feature = "map_entry_keys" , issue = "32281 " ) ]
1720+ #[ stable ( feature = "map_entry_keys" , since = "1.10.0 " ) ]
17221721 pub fn key ( & self ) -> & K {
17231722 self . handle . reborrow ( ) . into_kv ( ) . 0
17241723 }
0 commit comments