Skip to content

Commit 15e18fd

Browse files
committed
---
yaml --- r: 225958 b: refs/heads/stable c: c9b40a3 h: refs/heads/master v: v3
1 parent ff31558 commit 15e18fd

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ refs/heads/tmp: e5d90d98402475b6e154ce216f9efcb80da1a747
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: 1fe32ca12c51afcd761d9962f51a74ff0d07a591
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: edf933538bc508052320889f9c05f24d75dd6b07
32+
refs/heads/stable: c9b40a30c0a8c5776920aec54039d0571e903f5a
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b

branches/stable/src/libcollections/vec_map.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -646,21 +646,20 @@ impl<'a, V> Entry<'a, V> {
646646
}
647647
}
648648

649-
#[unstable(feature = "entry",
650-
reason = "matches entry v3 specification, waiting for dust to settle")]
651-
/// Ensures a value is in the entry by inserting the default if empty, and returns
652-
/// a mutable reference to the value in the entry.
649+
#[stable(feature = "vecmap_entry", since = "1.2.0")]
650+
/// Ensures a value is in the entry by inserting the default if empty, and
651+
/// returns a mutable reference to the value in the entry.
653652
pub fn or_insert(self, default: V) -> &'a mut V {
654653
match self {
655654
Occupied(entry) => entry.into_mut(),
656655
Vacant(entry) => entry.insert(default),
657656
}
658657
}
659658

660-
#[unstable(feature = "entry",
661-
reason = "matches entry v3 specification, waiting for dust to settle")]
662-
/// Ensures a value is in the entry by inserting the result of the default function if empty,
663-
/// and returns a mutable reference to the value in the entry.
659+
#[stable(feature = "vecmap_entry", since = "1.2.0")]
660+
/// Ensures a value is in the entry by inserting the result of the default
661+
/// function if empty, and returns a mutable reference to the value in the
662+
/// entry.
664663
pub fn or_insert_with<F: FnOnce() -> V>(self, default: F) -> &'a mut V {
665664
match self {
666665
Occupied(entry) => entry.into_mut(),

0 commit comments

Comments
 (0)