@@ -1524,7 +1524,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
1524
1524
1525
1525
#[ unstable( feature = "std_misc" ,
1526
1526
reason = "matches collection reform v2 specification, waiting for dust to settle" ) ]
1527
- impl < K , V , M > OccupiedEntryState < K , V , M > where RawTable < K , V > : BorrowFromMut < M > {
1527
+ impl < ' a , K : ' a , V : ' a , M : ' a > OccupiedEntryState < K , V , M > where RawTable < K , V > : BorrowFromMut < M > {
1528
1528
/// Gets a mutable reference to the value in the entry.
1529
1529
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1530
1530
pub fn get_mut ( & mut self ) -> & mut V {
@@ -1535,7 +1535,7 @@ impl<K, V, M> OccupiedEntryState<K, V, M> where RawTable<K, V>: BorrowFromMut<M>
1535
1535
/// with a lifetime bound to the map itself
1536
1536
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1537
1537
pub fn into_mut ( self ) -> & ' a mut V {
1538
- self . elem . into_mut_refs ( ) . 2
1538
+ self . elem . into_mut_refs ( ) . 1
1539
1539
}
1540
1540
1541
1541
/// Sets the value of the entry, and returns the entry's old value
@@ -1550,12 +1550,6 @@ impl<K, V, M> OccupiedEntryState<K, V, M> where RawTable<K, V>: BorrowFromMut<M>
1550
1550
#[ unstable( feature = "std_misc" ,
1551
1551
reason = "matches collection reform v2 specification, waiting for dust to settle" ) ]
1552
1552
impl < ' a , K : ' a , V : ' a > OccupiedEntryState < K , V , & ' a mut RawTable < K , V > > {
1553
- /// Converts the OccupiedEntry into a mutable reference to the value in the entry
1554
- /// with a lifetime bound to the map itself
1555
- pub fn into_mut ( self ) -> & ' a mut V {
1556
- self . elem . into_mut_refs ( ) . 1
1557
- }
1558
-
1559
1553
/// Takes the value out of the entry, and returns it
1560
1554
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1561
1555
pub fn remove ( self ) -> V {
0 commit comments