Skip to content

Commit 94a8e38

Browse files
aturonalexcrichton
authored andcommitted
Stabilize btree_range, closes rust-lang#27787
1 parent 7136a86 commit 94a8e38

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

src/libcollections/btree/map.rs

+2-10
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,6 @@ impl<K: Ord, V> BTreeMap<K, V> {
724724
/// Basic usage:
725725
///
726726
/// ```
727-
/// #![feature(btree_range, collections_bound)]
728-
///
729727
/// use std::collections::BTreeMap;
730728
/// use std::collections::Bound::Included;
731729
///
@@ -738,9 +736,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
738736
/// }
739737
/// assert_eq!(Some((&5, &"b")), map.range(4..).next());
740738
/// ```
741-
#[unstable(feature = "btree_range",
742-
reason = "matches collection reform specification, waiting for dust to settle",
743-
issue = "27787")]
739+
#[stable(feature = "btree_range", since = "1.17.0")]
744740
pub fn range<T: ?Sized, R>(&self, range: R) -> Range<K, V>
745741
where T: Ord, K: Borrow<T>, R: RangeArgument<T>
746742
{
@@ -768,8 +764,6 @@ impl<K: Ord, V> BTreeMap<K, V> {
768764
/// Basic usage:
769765
///
770766
/// ```
771-
/// #![feature(btree_range)]
772-
///
773767
/// use std::collections::BTreeMap;
774768
///
775769
/// let mut map: BTreeMap<&str, i32> = ["Alice", "Bob", "Carol", "Cheryl"].iter()
@@ -782,9 +776,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
782776
/// println!("{} => {}", name, balance);
783777
/// }
784778
/// ```
785-
#[unstable(feature = "btree_range",
786-
reason = "matches collection reform specification, waiting for dust to settle",
787-
issue = "27787")]
779+
#[stable(feature = "btree_range", since = "1.17.0")]
788780
pub fn range_mut<T: ?Sized, R>(&mut self, range: R) -> RangeMut<K, V>
789781
where T: Ord, K: Borrow<T>, R: RangeArgument<T>
790782
{

src/libcollections/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ mod std {
129129
}
130130

131131
/// An endpoint of a range of keys.
132-
#[unstable(feature = "collections_bound", issue = "27787")]
132+
#[stable(feature = "collections_bound", since = "1.17.0")]
133133
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
134134
pub enum Bound<T> {
135135
/// An inclusive bound.

0 commit comments

Comments
 (0)