@@ -1524,7 +1524,7 @@ impl<'a, K, V> OccupiedEntry<'a, K, V> {
15241524
15251525#[ unstable( feature = "std_misc" ,
15261526 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 > {
15281528 /// Gets a mutable reference to the value in the entry.
15291529 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15301530 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>
15351535 /// with a lifetime bound to the map itself
15361536 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15371537 pub fn into_mut ( self ) -> & ' a mut V {
1538- self . elem . into_mut_refs ( ) . 2
1538+ self . elem . into_mut_refs ( ) . 1
15391539 }
15401540
15411541 /// 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>
15501550#[ unstable( feature = "std_misc" ,
15511551 reason = "matches collection reform v2 specification, waiting for dust to settle" ) ]
15521552impl < ' 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-
15591553 /// Takes the value out of the entry, and returns it
15601554 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
15611555 pub fn remove ( self ) -> V {
0 commit comments