Skip to content

Commit b5a4e5d

Browse files
committed
remove gates
1 parent 7cd9505 commit b5a4e5d

File tree

1 file changed

+2
-4
lines changed
  • library/alloc/src/collections/btree/map

1 file changed

+2
-4
lines changed

library/alloc/src/collections/btree/map/entry.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,6 @@ impl<'a, K: Ord, V, A: Allocator + Clone> Entry<'a, K, V, A> {
275275
/// # Examples
276276
///
277277
/// ```
278-
/// #![feature(btree_entry_insert)]
279278
/// use std::collections::BTreeMap;
280279
///
281280
/// let mut map: BTreeMap<&str, String> = BTreeMap::new();
@@ -284,7 +283,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> Entry<'a, K, V, A> {
284283
/// assert_eq!(entry.key(), &"poneyland");
285284
/// ```
286285
#[inline]
287-
#[unstable(feature = "btree_entry_insert", issue = "65225")]
286+
#[stable(feature = "btree_entry_insert", since = "CURRENT_RUSTC_VERSION")]
288287
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K, V, A> {
289288
match self {
290289
Occupied(mut entry) => {
@@ -383,7 +382,6 @@ impl<'a, K: Ord, V, A: Allocator + Clone> VacantEntry<'a, K, V, A> {
383382
/// # Examples
384383
///
385384
/// ```
386-
/// #![feature(btree_entry_insert)]
387385
/// use std::collections::BTreeMap;
388386
/// use std::collections::btree_map::Entry;
389387
///
@@ -395,7 +393,7 @@ impl<'a, K: Ord, V, A: Allocator + Clone> VacantEntry<'a, K, V, A> {
395393
/// }
396394
/// assert_eq!(map["poneyland"], 37);
397395
/// ```
398-
#[unstable(feature = "btree_entry_insert", issue = "65225")]
396+
#[stable(feature = "btree_entry_insert", since = "CURRENT_RUSTC_VERSION")]
399397
pub fn insert_entry(mut self, value: V) -> OccupiedEntry<'a, K, V, A> {
400398
let handle = match self.handle {
401399
None => {

0 commit comments

Comments
 (0)