@@ -286,7 +286,7 @@ pub struct Values<'a, K: 'a, V: 'a> {
286
286
}
287
287
288
288
/// 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 " ) ]
290
290
pub struct ValuesMut < ' a , K : ' a , V : ' a > {
291
291
inner : IterMut < ' a , K , V > ,
292
292
}
@@ -1144,7 +1144,7 @@ impl<'a, K, V> Iterator for Range<'a, K, V> {
1144
1144
}
1145
1145
}
1146
1146
1147
- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1147
+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
1148
1148
impl < ' a , K , V > Iterator for ValuesMut < ' a , K , V > {
1149
1149
type Item = & ' a mut V ;
1150
1150
@@ -1157,14 +1157,14 @@ impl<'a, K, V> Iterator for ValuesMut<'a, K, V> {
1157
1157
}
1158
1158
}
1159
1159
1160
- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1160
+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
1161
1161
impl < ' a , K , V > DoubleEndedIterator for ValuesMut < ' a , K , V > {
1162
1162
fn next_back ( & mut self ) -> Option < & ' a mut V > {
1163
1163
self . inner . next_back ( ) . map ( |( _, v) | v)
1164
1164
}
1165
1165
}
1166
1166
1167
- #[ unstable ( feature = "map_values_mut" , reason = "recently added" , issue = "32551 ") ]
1167
+ #[ stable ( feature = "map_values_mut" , since = "1.10.0 " ) ]
1168
1168
impl < ' a , K , V > ExactSizeIterator for ValuesMut < ' a , K , V > {
1169
1169
fn len ( & self ) -> usize {
1170
1170
self . inner . len ( )
@@ -1575,7 +1575,6 @@ impl<K, V> BTreeMap<K, V> {
1575
1575
/// Basic usage:
1576
1576
///
1577
1577
/// ```
1578
- /// # #![feature(map_values_mut)]
1579
1578
/// use std::collections::BTreeMap;
1580
1579
///
1581
1580
/// let mut a = BTreeMap::new();
@@ -1590,8 +1589,8 @@ impl<K, V> BTreeMap<K, V> {
1590
1589
/// assert_eq!(values, [String::from("hello!"),
1591
1590
/// String::from("goodbye!")]);
1592
1591
/// ```
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 > {
1595
1594
ValuesMut { inner : self . iter_mut ( ) }
1596
1595
}
1597
1596
@@ -1656,7 +1655,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
1656
1655
}
1657
1656
1658
1657
/// 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 " ) ]
1660
1659
pub fn key ( & self ) -> & K {
1661
1660
match * self {
1662
1661
Occupied ( ref entry) => entry. key ( ) ,
@@ -1668,7 +1667,7 @@ impl<'a, K: Ord, V> Entry<'a, K, V> {
1668
1667
impl < ' a , K : Ord , V > VacantEntry < ' a , K , V > {
1669
1668
/// Gets a reference to the key that would be used when inserting a value
1670
1669
/// through the VacantEntry.
1671
- #[ unstable ( feature = "map_entry_keys" , issue = "32281 " ) ]
1670
+ #[ stable ( feature = "map_entry_keys" , since = "1.10.0 " ) ]
1672
1671
pub fn key ( & self ) -> & K {
1673
1672
& self . key
1674
1673
}
@@ -1718,7 +1717,7 @@ impl<'a, K: Ord, V> VacantEntry<'a, K, V> {
1718
1717
1719
1718
impl < ' a , K : Ord , V > OccupiedEntry < ' a , K , V > {
1720
1719
/// 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 " ) ]
1722
1721
pub fn key ( & self ) -> & K {
1723
1722
self . handle . reborrow ( ) . into_kv ( ) . 0
1724
1723
}
0 commit comments