diff options
| author | bors <bors@rust-lang.org> | 2018-06-10 12:46:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-06-10 12:46:14 +0000 |
| commit | 900037e3c35d822a0487f74d2866433a7ca2f19c (patch) | |
| tree | 9a454d89228f81d60213bf64001c53242bf1e3de /src/liballoc | |
| parent | 684b8d3d7b5eb42c00cba7e14342c5cb3b6f292b (diff) | |
| parent | 861c7cb9fd37fc171f80a9f0b58f995ad67c6df0 (diff) | |
| download | rust-900037e3c35d822a0487f74d2866433a7ca2f19c.tar.gz rust-900037e3c35d822a0487f74d2866433a7ca2f19c.zip | |
Auto merge of #51079 - GuillaumeGomez:stabilize-entry-or-default, r=SimonSapin
Stabilize entry-or-default Fixes #44324. cc @SimonSapin
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/btree/map.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/liballoc/btree/map.rs b/src/liballoc/btree/map.rs index 9b6f91c039f..e6e454446e2 100644 --- a/src/liballoc/btree/map.rs +++ b/src/liballoc/btree/map.rs @@ -2184,14 +2184,13 @@ impl<'a, K: Ord, V> Entry<'a, K, V> { } impl<'a, K: Ord, V: Default> Entry<'a, K, V> { - #[unstable(feature = "entry_or_default", issue = "44324")] + #[stable(feature = "entry_or_default", since = "1.28.0")] /// Ensures a value is in the entry by inserting the default value if empty, /// and returns a mutable reference to the value in the entry. /// /// # Examples /// /// ``` - /// #![feature(entry_or_default)] /// # fn main() { /// use std::collections::BTreeMap; /// |
