Skip to content

Commit 090458c

Browse files
committed
---
yaml --- r: 213008 b: refs/heads/master c: c9b40a3 h: refs/heads/master v: v3
1 parent a981c94 commit 090458c

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: edf933538bc508052320889f9c05f24d75dd6b07
2+
refs/heads/master: c9b40a30c0a8c5776920aec54039d0571e903f5a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: ba0e1cd8147d452c356aacb29fb87568ca26f111
55
refs/heads/try: 1864973ae17213c5a58c4dd3f9af6d1b6c7d2e05

trunk/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)