@@ -703,7 +703,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
703703 /// Basic usage:
704704 ///
705705 /// ```
706- /// #![feature(map_first_last)]
707706 /// use std::collections::BTreeMap;
708707 ///
709708 /// let mut map = BTreeMap::new();
@@ -712,7 +711,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
712711 /// map.insert(2, "a");
713712 /// assert_eq!(map.first_key_value(), Some((&1, &"b")));
714713 /// ```
715- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
714+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
716715 pub fn first_key_value ( & self ) -> Option < ( & K , & V ) >
717716 where
718717 K : Ord ,
@@ -727,7 +726,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
727726 /// # Examples
728727 ///
729728 /// ```
730- /// #![feature(map_first_last)]
731729 /// use std::collections::BTreeMap;
732730 ///
733731 /// let mut map = BTreeMap::new();
@@ -741,7 +739,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
741739 /// assert_eq!(*map.get(&1).unwrap(), "first");
742740 /// assert_eq!(*map.get(&2).unwrap(), "b");
743741 /// ```
744- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
742+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
745743 pub fn first_entry ( & mut self ) -> Option < OccupiedEntry < ' _ , K , V , A > >
746744 where
747745 K : Ord ,
@@ -765,7 +763,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
765763 /// Draining elements in ascending order, while keeping a usable map each iteration.
766764 ///
767765 /// ```
768- /// #![feature(map_first_last)]
769766 /// use std::collections::BTreeMap;
770767 ///
771768 /// let mut map = BTreeMap::new();
@@ -776,7 +773,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
776773 /// }
777774 /// assert!(map.is_empty());
778775 /// ```
779- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
776+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
780777 pub fn pop_first ( & mut self ) -> Option < ( K , V ) >
781778 where
782779 K : Ord ,
@@ -792,15 +789,14 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
792789 /// Basic usage:
793790 ///
794791 /// ```
795- /// #![feature(map_first_last)]
796792 /// use std::collections::BTreeMap;
797793 ///
798794 /// let mut map = BTreeMap::new();
799795 /// map.insert(1, "b");
800796 /// map.insert(2, "a");
801797 /// assert_eq!(map.last_key_value(), Some((&2, &"a")));
802798 /// ```
803- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
799+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
804800 pub fn last_key_value ( & self ) -> Option < ( & K , & V ) >
805801 where
806802 K : Ord ,
@@ -815,7 +811,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
815811 /// # Examples
816812 ///
817813 /// ```
818- /// #![feature(map_first_last)]
819814 /// use std::collections::BTreeMap;
820815 ///
821816 /// let mut map = BTreeMap::new();
@@ -829,7 +824,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
829824 /// assert_eq!(*map.get(&1).unwrap(), "a");
830825 /// assert_eq!(*map.get(&2).unwrap(), "last");
831826 /// ```
832- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
827+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
833828 pub fn last_entry ( & mut self ) -> Option < OccupiedEntry < ' _ , K , V , A > >
834829 where
835830 K : Ord ,
@@ -853,7 +848,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
853848 /// Draining elements in descending order, while keeping a usable map each iteration.
854849 ///
855850 /// ```
856- /// #![feature(map_first_last)]
857851 /// use std::collections::BTreeMap;
858852 ///
859853 /// let mut map = BTreeMap::new();
@@ -864,7 +858,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
864858 /// }
865859 /// assert!(map.is_empty());
866860 /// ```
867- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
861+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
868862 pub fn pop_last ( & mut self ) -> Option < ( K , V ) >
869863 where
870864 K : Ord ,
0 commit comments