@@ -703,7 +703,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
703
703
/// Basic usage:
704
704
///
705
705
/// ```
706
- /// #![feature(map_first_last)]
707
706
/// use std::collections::BTreeMap;
708
707
///
709
708
/// let mut map = BTreeMap::new();
@@ -712,7 +711,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
712
711
/// map.insert(2, "a");
713
712
/// assert_eq!(map.first_key_value(), Some((&1, &"b")));
714
713
/// ```
715
- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
714
+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
716
715
pub fn first_key_value ( & self ) -> Option < ( & K , & V ) >
717
716
where
718
717
K : Ord ,
@@ -727,7 +726,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
727
726
/// # Examples
728
727
///
729
728
/// ```
730
- /// #![feature(map_first_last)]
731
729
/// use std::collections::BTreeMap;
732
730
///
733
731
/// let mut map = BTreeMap::new();
@@ -741,7 +739,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
741
739
/// assert_eq!(*map.get(&1).unwrap(), "first");
742
740
/// assert_eq!(*map.get(&2).unwrap(), "b");
743
741
/// ```
744
- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
742
+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
745
743
pub fn first_entry ( & mut self ) -> Option < OccupiedEntry < ' _ , K , V , A > >
746
744
where
747
745
K : Ord ,
@@ -765,7 +763,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
765
763
/// Draining elements in ascending order, while keeping a usable map each iteration.
766
764
///
767
765
/// ```
768
- /// #![feature(map_first_last)]
769
766
/// use std::collections::BTreeMap;
770
767
///
771
768
/// let mut map = BTreeMap::new();
@@ -776,7 +773,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
776
773
/// }
777
774
/// assert!(map.is_empty());
778
775
/// ```
779
- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
776
+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
780
777
pub fn pop_first ( & mut self ) -> Option < ( K , V ) >
781
778
where
782
779
K : Ord ,
@@ -792,15 +789,14 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
792
789
/// Basic usage:
793
790
///
794
791
/// ```
795
- /// #![feature(map_first_last)]
796
792
/// use std::collections::BTreeMap;
797
793
///
798
794
/// let mut map = BTreeMap::new();
799
795
/// map.insert(1, "b");
800
796
/// map.insert(2, "a");
801
797
/// assert_eq!(map.last_key_value(), Some((&2, &"a")));
802
798
/// ```
803
- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
799
+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
804
800
pub fn last_key_value ( & self ) -> Option < ( & K , & V ) >
805
801
where
806
802
K : Ord ,
@@ -815,7 +811,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
815
811
/// # Examples
816
812
///
817
813
/// ```
818
- /// #![feature(map_first_last)]
819
814
/// use std::collections::BTreeMap;
820
815
///
821
816
/// let mut map = BTreeMap::new();
@@ -829,7 +824,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
829
824
/// assert_eq!(*map.get(&1).unwrap(), "a");
830
825
/// assert_eq!(*map.get(&2).unwrap(), "last");
831
826
/// ```
832
- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
827
+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
833
828
pub fn last_entry ( & mut self ) -> Option < OccupiedEntry < ' _ , K , V , A > >
834
829
where
835
830
K : Ord ,
@@ -853,7 +848,6 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
853
848
/// Draining elements in descending order, while keeping a usable map each iteration.
854
849
///
855
850
/// ```
856
- /// #![feature(map_first_last)]
857
851
/// use std::collections::BTreeMap;
858
852
///
859
853
/// let mut map = BTreeMap::new();
@@ -864,7 +858,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
864
858
/// }
865
859
/// assert!(map.is_empty());
866
860
/// ```
867
- #[ unstable ( feature = "map_first_last" , issue = "62924 " ) ]
861
+ #[ stable ( feature = "map_first_last" , since = "CURRENT_RUSTC_VERSION " ) ]
868
862
pub fn pop_last ( & mut self ) -> Option < ( K , V ) >
869
863
where
870
864
K : Ord ,
0 commit comments