diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-26 13:42:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-26 13:42:35 +0200 |
| commit | aa9dc6952235a58d4c37b63bed15992f5225fbf0 (patch) | |
| tree | 473644e3095ec29d92b0c68880f49599c402cbfa /src/liballoc | |
| parent | aa89e91de671a28914e3ec7f8f3137100c3a19d5 (diff) | |
| parent | 35eae4bad2a1bd21593aa8a58af0e5b3de965bad (diff) | |
| download | rust-aa9dc6952235a58d4c37b63bed15992f5225fbf0.tar.gz rust-aa9dc6952235a58d4c37b63bed15992f5225fbf0.zip | |
Rollup merge of #71575 - jplatte:patch-4, r=Mark-Simulacrum
Fix stable(since) attribute for BTreeMap::remove_entry Stabilized in #70712. Maybe checking that the since attributes are added correctly should be automated through tidy? This is the third PR I'm opening that fixes a stable(since) attribute for something meant to be stabilized in 1.43 / 1.44 initially but then only stabilized in 1.45. (the other two are #71571, #71574)
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/btree/map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/collections/btree/map.rs b/src/liballoc/collections/btree/map.rs index 099687bd6b0..c0b976565e4 100644 --- a/src/liballoc/collections/btree/map.rs +++ b/src/liballoc/collections/btree/map.rs @@ -930,7 +930,7 @@ impl<K: Ord, V> BTreeMap<K, V> { /// assert_eq!(map.remove_entry(&1), Some((1, "a"))); /// assert_eq!(map.remove_entry(&1), None); /// ``` - #[stable(feature = "btreemap_remove_entry", since = "1.44.0")] + #[stable(feature = "btreemap_remove_entry", since = "1.45.0")] pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)> where K: Borrow<Q>, |
